diff --git a/Examples/restcomm-helloworld/app/app.iml b/Examples/restcomm-helloworld/app/app.iml index d3b6a79d..861f5e6f 100644 --- a/Examples/restcomm-helloworld/app/app.iml +++ b/Examples/restcomm-helloworld/app/app.iml @@ -84,8 +84,6 @@ - - @@ -93,6 +91,7 @@ + diff --git a/Examples/restcomm-olympus/app/app.iml b/Examples/restcomm-olympus/app/app.iml index f4d335a0..6f541d9e 100644 --- a/Examples/restcomm-olympus/app/app.iml +++ b/Examples/restcomm-olympus/app/app.iml @@ -57,13 +57,6 @@ - - - - - - - @@ -71,6 +64,13 @@ + + + + + + + @@ -92,13 +92,6 @@ - - - - - - - @@ -106,6 +99,13 @@ + + + + + + + @@ -120,7 +120,6 @@ - @@ -133,9 +132,6 @@ - - - @@ -143,44 +139,31 @@ - - - - - - - - - - - - - @@ -189,7 +172,6 @@ - @@ -197,7 +179,5 @@ - - \ No newline at end of file diff --git a/Examples/restcomm-olympus/app/build.gradle b/Examples/restcomm-olympus/app/build.gradle index 1d8c0935..d52af8b2 100644 --- a/Examples/restcomm-olympus/app/build.gradle +++ b/Examples/restcomm-olympus/app/build.gradle @@ -67,6 +67,7 @@ android { // Not specifying applicationIdSuffix since release uses the default applicationId: org.restcomm.android.olympus buildConfigField "boolean", "ENABLE_TEST_FAIRY_RUNTIME", "true" buildConfigField "String", "TESTFAIRY_APP_TOKEN", TESTFAIRY_APP_TOKEN + buildConfigField "String", "TEST_PUSH_FCM_KEY", TEST_PUSH_FCM_KEY minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' diff --git a/Examples/restcomm-olympus/app/src/main/java/org/restcomm/android/olympus/SigninActivity.java b/Examples/restcomm-olympus/app/src/main/java/org/restcomm/android/olympus/SigninActivity.java index 63285530..6eed6b74 100644 --- a/Examples/restcomm-olympus/app/src/main/java/org/restcomm/android/olympus/SigninActivity.java +++ b/Examples/restcomm-olympus/app/src/main/java/org/restcomm/android/olympus/SigninActivity.java @@ -256,7 +256,7 @@ private void updatePrefs() /** Push notifications will not work if these parameters are replaced with real values: **/ /** PUSH_NOTIFICATIONS_APPLICATION_NAME, PUSH_NOTIFICATIONS_FCM_SERVER_KEY **/ prefEdit.putString(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_APPLICATION_NAME, "Olympus"); - prefEdit.putString(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_FCM_SERVER_KEY, ""); + prefEdit.putString(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_FCM_SERVER_KEY, BuildConfig.TEST_PUSH_FCM_KEY); prefEdit.putString(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_ACCOUNT_EMAIL, txtPushAccount.getText().toString()); prefEdit.putString(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_ACCOUNT_PASSWORD, txtPushPassword.getText().toString()); diff --git a/Examples/restcomm-olympus/app/src/main/java/org/restcomm/android/olympus/Util/Utils.java b/Examples/restcomm-olympus/app/src/main/java/org/restcomm/android/olympus/Util/Utils.java index 80b940a1..24a0f7c0 100644 --- a/Examples/restcomm-olympus/app/src/main/java/org/restcomm/android/olympus/Util/Utils.java +++ b/Examples/restcomm-olympus/app/src/main/java/org/restcomm/android/olympus/Util/Utils.java @@ -26,6 +26,7 @@ import android.content.Intent; import android.content.SharedPreferences; +import org.restcomm.android.olympus.BuildConfig; import org.restcomm.android.olympus.CallActivity; import org.restcomm.android.olympus.MessageActivity; import org.restcomm.android.sdk.RCDevice;