Update number version and add https migration

This commit is contained in:
Margaux Clerc 2016-02-22 17:39:39 +01:00
parent 179546dacd
commit 21c03ae5fe
2 changed files with 9 additions and 1 deletions

View file

@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.linphone"
android:versionCode="1000" android:installLocation="auto">
android:versionCode="1002" android:installLocation="auto">
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23"/>
<!-- Permissions for Push Notification -->

View file

@ -136,6 +136,14 @@ public class LinphoneActivity extends Activity implements OnClickListener, Conta
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
//Obiane specifics
//HTTP to HTTPS migration
if(LinphonePreferences.instance().getRemoteProvisioningUrl() != null) {
if(LinphonePreferences.instance().getRemoteProvisioningUrl().startsWith("http://")) {
LinphonePreferences.instance().setRemoteProvisioningUrl(LinphonePreferences.instance().getRemoteProvisioningUrl().replace("http://", "https://"));
}
}
if (!LinphoneManager.isInstanciated()) {
Log.e("No service running: avoid crash by starting the launch", this.getClass().getName());
finish();