[Switch submodule branch] Merge branch 'master' of gitlab.linphone.org:BC/public/linphone-android into dev_group_chat
This commit is contained in:
commit
fb4ea31502
15 changed files with 37 additions and 85 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="16"
|
android:minSdkVersion="16"
|
||||||
android:targetSdkVersion="26"/>
|
android:targetSdkVersion="27"/>
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
|
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
|
||||||
|
|
11
AndroidManifestSdk.xml
Executable file
11
AndroidManifestSdk.xml
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest package="org.linphone"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:installLocation="auto"
|
||||||
|
android:versionCode="4001"
|
||||||
|
android:versionName="4.0.0">
|
||||||
|
|
||||||
|
<uses-sdk
|
||||||
|
android:minSdkVersion="16"
|
||||||
|
android:targetSdkVersion="27"/>
|
||||||
|
</manifest>
|
|
@ -1,3 +1,5 @@
|
||||||
|
[](https://gitlab.linphone.org/BC/public/linphone-android/commits/master)
|
||||||
|
|
||||||
Linphone is a free VoIP and video softphone based on the SIP protocol.
|
Linphone is a free VoIP and video softphone based on the SIP protocol.
|
||||||
|
|
||||||
# COMPILATION INSTRUCTIONS
|
# COMPILATION INSTRUCTIONS
|
||||||
|
|
|
@ -47,7 +47,7 @@ dependencies {
|
||||||
if (firebaseEnable()) {
|
if (firebaseEnable()) {
|
||||||
implementation 'com.google.firebase:firebase-messaging:15.0.2'
|
implementation 'com.google.firebase:firebase-messaging:15.0.2'
|
||||||
}
|
}
|
||||||
implementation 'com.android.support:support-v4:26.0.1'
|
implementation 'com.android.support:support-v4:27.0.1'
|
||||||
implementation project(':liblinphone-sdk')
|
implementation project(':liblinphone-sdk')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,6 +79,7 @@ excludePackage.add('**/LICENSE.txt')
|
||||||
android {
|
android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
compileSdkVersion 26
|
compileSdkVersion 26
|
||||||
|
buildToolsVersion "27.0.3"
|
||||||
applicationId getPackageName()
|
applicationId getPackageName()
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
||||||
|
@ -155,7 +156,7 @@ android {
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
pickFirst 'META-INF/NOTICE'
|
pickFirst 'META-INF/NOTICE'
|
||||||
pickFirst 'META-INF/LICENSE'
|
pickFirst 'META-INF/LICENSE'
|
||||||
pickFirst 'META-INF/MANIFEST.MF'
|
exclude 'META-INF/MANIFEST.MF'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ android {
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
compileSdkVersion 26
|
compileSdkVersion 26
|
||||||
buildToolsVersion "26.0.0"
|
buildToolsVersion "27.0.3"
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ allprojects {
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile group: 'org.apache.commons', name: 'commons-compress', version: '+'
|
compile group: 'org.apache.commons', name: 'commons-compress', version: '1.16.1'
|
||||||
compile 'com.android.support:support-v4:26.0.2'
|
compile 'com.android.support:support-v4:26.0.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ excludePackage.add('**/LICENSE.txt')
|
||||||
android {
|
android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
compileSdkVersion 26
|
compileSdkVersion 26
|
||||||
|
buildToolsVersion "27.0.3"
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +62,7 @@ android {
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
manifest.srcFile 'AndroidManifestLibrary.xml'
|
manifest.srcFile 'AndroidManifestSdk.xml'
|
||||||
java.srcDirs = srcDirs
|
java.srcDirs = srcDirs
|
||||||
resources.srcDirs = srcDirs
|
resources.srcDirs = srcDirs
|
||||||
aidl.srcDirs = srcDirs
|
aidl.srcDirs = srcDirs
|
||||||
|
|
|
@ -584,7 +584,7 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
|
||||||
BluetoothManagerDestroy();
|
BluetoothManagerDestroy();
|
||||||
try {
|
try {
|
||||||
mTimer.cancel();
|
mTimer.cancel();
|
||||||
mLc = null;
|
destroyLinphoneCore();
|
||||||
}
|
}
|
||||||
catch (RuntimeException e) {
|
catch (RuntimeException e) {
|
||||||
Log.e(e);
|
Log.e(e);
|
||||||
|
@ -623,6 +623,7 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void restartCore() {
|
public void restartCore() {
|
||||||
destroyCore();
|
destroyCore();
|
||||||
startLibLinphone(mServiceContext);
|
startLibLinphone(mServiceContext);
|
||||||
|
@ -917,51 +918,6 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
|
||||||
mLc = null;
|
mLc = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
|
|
||||||
private void doDestroy() {
|
|
||||||
ContactsManagerDestroy();
|
|
||||||
BluetoothManagerDestroy();
|
|
||||||
try {
|
|
||||||
mTimer.cancel();
|
|
||||||
destroyLinphoneCore();
|
|
||||||
}
|
|
||||||
catch (RuntimeException e) {
|
|
||||||
Log.e(e);
|
|
||||||
}
|
|
||||||
finally {
|
|
||||||
try {
|
|
||||||
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.M) {
|
|
||||||
mServiceContext.unregisterReceiver(mNetworkReceiver);
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
Log.e(e);
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
mServiceContext.unregisterReceiver(mHookReceiver);
|
|
||||||
} catch (Exception e) {
|
|
||||||
Log.e(e);
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
mServiceContext.unregisterReceiver(mKeepAliveReceiver);
|
|
||||||
} catch (Exception e) {
|
|
||||||
Log.e(e);
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
mServiceContext.unregisterReceiver(mCallReceiver);
|
|
||||||
} catch (Exception e) {
|
|
||||||
Log.e(e);
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
dozeManager(false);
|
|
||||||
} catch (IllegalArgumentException iae) {
|
|
||||||
Log.e(iae);
|
|
||||||
} catch (Exception e) {
|
|
||||||
Log.e(e);
|
|
||||||
}
|
|
||||||
instance = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void dozeManager(boolean enable) {
|
public void dozeManager(boolean enable) {
|
||||||
if (enable) {
|
if (enable) {
|
||||||
Log.i("[Doze Mode]: register");
|
Log.i("[Doze Mode]: register");
|
||||||
|
@ -1045,7 +1001,7 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
|
||||||
if (instance == null) return;
|
if (instance == null) return;
|
||||||
getInstance().changeStatusToOffline();
|
getInstance().changeStatusToOffline();
|
||||||
sExited = true;
|
sExited = true;
|
||||||
instance.doDestroy();
|
instance.destroyCore();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getString(int key) {
|
private String getString(int key) {
|
||||||
|
|
|
@ -370,6 +370,13 @@ public class LinphonePreferences {
|
||||||
prxCfg.setQualityReportingCollector(tempQualityReportingCollector);
|
prxCfg.setQualityReportingCollector(tempQualityReportingCollector);
|
||||||
prxCfg.setQualityReportingInterval(tempQualityReportingInterval);
|
prxCfg.setQualityReportingInterval(tempQualityReportingInterval);
|
||||||
|
|
||||||
|
String regId = LinphonePreferences.instance().getPushNotificationRegistrationID();
|
||||||
|
String appId = LinphonePreferences.instance().getString(R.string.push_sender_id);
|
||||||
|
if (regId != null && LinphonePreferences.instance().isPushNotificationEnabled()) {
|
||||||
|
String contactInfos = "app-id=" + appId + ";pn-type=" + LinphonePreferences.instance().getString(R.string.push_type) + ";pn-tok=" + regId + ";pn-silent=1";
|
||||||
|
prxCfg.setContactUriParameters(contactInfos);
|
||||||
|
}
|
||||||
|
|
||||||
if(tempPrefix != null){
|
if(tempPrefix != null){
|
||||||
prxCfg.setDialPrefix(tempPrefix);
|
prxCfg.setDialPrefix(tempPrefix);
|
||||||
}
|
}
|
||||||
|
|
|
@ -609,11 +609,7 @@ public final class LinphoneUtils {
|
||||||
if ("com.android.externalstorage.documents".equals(uri.getAuthority())) {
|
if ("com.android.externalstorage.documents".equals(uri.getAuthority())) {
|
||||||
final String docId = DocumentsContract.getDocumentId(uri);
|
final String docId = DocumentsContract.getDocumentId(uri);
|
||||||
final String[] split = docId.split(":");
|
final String[] split = docId.split(":");
|
||||||
final String type = split[0];
|
if (split.length >= 1) return Environment.getExternalStorageDirectory() + "/" + split[1];
|
||||||
|
|
||||||
if ("primary".equalsIgnoreCase(type)) {
|
|
||||||
return Environment.getExternalStorageDirectory() + "/" + split[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO handle non-primary volumes
|
// TODO handle non-primary volumes
|
||||||
}// Docs storage
|
}// Docs storage
|
||||||
|
|
|
@ -39,6 +39,7 @@ public class FirebaseMessaging extends FirebaseMessagingService {
|
||||||
android.util.Log.i("FirebaseMessaging","[Push Notification] Received");
|
android.util.Log.i("FirebaseMessaging","[Push Notification] Received");
|
||||||
|
|
||||||
if (!LinphoneService.isReady()) {
|
if (!LinphoneService.isReady()) {
|
||||||
|
android.util.Log.i("FirebaseMessaging","[Push Notification] Starting Service");
|
||||||
startService(new Intent(ACTION_MAIN).setClass(this, LinphoneService.class));
|
startService(new Intent(ACTION_MAIN).setClass(this, LinphoneService.class));
|
||||||
} else if (LinphoneManager.isInstanciated() && LinphoneManager.getLc().getCallsNb() == 0) {
|
} else if (LinphoneManager.isInstanciated() && LinphoneManager.getLc().getCallsNb() == 0) {
|
||||||
LinphoneUtils.dispatchOnUIThread(new Runnable(){
|
LinphoneUtils.dispatchOnUIThread(new Runnable(){
|
||||||
|
|
2
submodules/externals/mbedtls
vendored
2
submodules/externals/mbedtls
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit d9385339a5c2979786cfc844c0527593c14662c5
|
Subproject commit 83d21d543c26a31943b2bd08c66b029f2ef742be
|
|
@ -1 +1 @@
|
||||||
Subproject commit b1e084c4c842b6dd5722f418184bf6ec228e5058
|
Subproject commit c448d2e0018ca9baa45afe216241fc354cc4edef
|
|
@ -1 +1 @@
|
||||||
Subproject commit f6e4cc2142821b2c8ac80c644405d9cd42b3216e
|
Subproject commit 9add24c2041e1bcf7b51ae580575ef56aa408f3e
|
23
test.patch
23
test.patch
|
@ -1,23 +0,0 @@
|
||||||
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
|
|
||||||
index 9ee95b62..bb763a24 100755
|
|
||||||
--- a/AndroidManifest.xml
|
|
||||||
+++ b/AndroidManifest.xml
|
|
||||||
@@ -287,15 +287,15 @@
|
|
||||||
</intent-filter>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
- <provider
|
|
||||||
+ <!--<provider
|
|
||||||
android:name="android.support.v4.content.FileProvider"
|
|
||||||
- android:authorities="org.linphone.provider"
|
|
||||||
+ android:authorities="org.linphone.provider${linphone_app_id}"
|
|
||||||
android:exported="false"
|
|
||||||
android:grantUriPermissions="true">
|
|
||||||
<meta-data
|
|
||||||
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
||||||
android:resource="@xml/provider_paths"/>
|
|
||||||
- </provider>
|
|
||||||
+ </provider>-->
|
|
||||||
|
|
||||||
<activity
|
|
||||||
android:name=".tutorials.TutorialLauncherActivity"
|
|
Loading…
Reference in a new issue