Skip to content

Commit

Permalink
removed firebase. moved to optional library.
Browse files Browse the repository at this point in the history
  • Loading branch information
bscheurman committed Sep 21, 2016
1 parent 2056f06 commit 67893c9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/Restcomm_demo/app/build.gradle
Expand Up @@ -48,7 +48,7 @@ dependencies {
compile 'com.android.support:appcompat-v7:22.2.0'

// TODO: To set up the project to use actual Restcomm SDK, please edit settings.gradle to set actual path to sdk
compile project(':restcomm.android.sdk')
//compile project(':restcomm.android.sdk')
// TODO: Otherwise for now, I shipped .aar file with the modified SDK
//compile(name:'restcomm.android.client.sdk-debug', ext:'aar')

Expand Down
Expand Up @@ -29,7 +29,7 @@
import com.cortxt.app.corelib.Utils.QosAPI;
import com.cortxt.app.corelib.Utils.QosInfo;
import com.cortxt.app.utillib.DataObjects.EventType;
import com.cortxt.app.utillib.Utils.FirebaseInvite;
//import com.cortxt.app.utillib.Utils.FirebaseInvite;
import com.cortxt.app.utillib.Utils.LoggerUtil;

import java.util.HashMap;
Expand Down
Expand Up @@ -69,5 +69,8 @@ public static boolean isServiceModeEnabled ()
public static void startRilReader (Context context, boolean bStart, boolean useLogcat)
{
}
public static void checkFirebaseRegistration (Context context)
{
}

}
1 change: 1 addition & 0 deletions qoslib/build.gradle
Expand Up @@ -70,6 +70,7 @@ repositories {
}
dependencies {
//compile project(':mmcextension')
compile 'com.android.support:appcompat-v7:22.2.0'
debugCompile project(path: ':mmcextension', configuration: "libraryDebug")
releaseCompile project(path: ':mmcextension', configuration: "libraryRelease")
}
4 changes: 2 additions & 2 deletions qoslib/src/main/AndroidManifest.xml
Expand Up @@ -34,8 +34,8 @@
android:name="com.google.android.maps.v2.API_KEY"
android:value="@string/google_maps_api_key"/>

<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<!--meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" /-->

<application>
<uses-library android:name="com.google.android.maps" />
Expand Down
8 changes: 5 additions & 3 deletions qoslib/src/main/java/com/cortxt/app/corelib/MainService.java
Expand Up @@ -49,7 +49,7 @@
import com.cortxt.app.corelib.Services.LibPhoneStateListener;
import com.cortxt.app.utillib.Utils.Global;
import com.cortxt.app.utillib.Utils.GpsListener;
import com.cortxt.com.mmcextension.firebase.MyFirebaseInstanceIDService;
//import com.cortxt.com.mmcextension.firebase.MyFirebaseInstanceIDService;
import com.cortxt.com.mmcextension.VQ.VQManager;
import com.cortxt.app.corelib.Services.TrackingManager;
import com.cortxt.app.corelib.Services.Events.EventManager;
Expand Down Expand Up @@ -224,7 +224,8 @@ public void onCreate() {
verifyRegistration();

if (getApiKey(this) != null)
MyFirebaseInstanceIDService.checkFCMRegistration (MainService.this);
MMCSystemUtil.checkFirebaseRegistration (this);

// mReportManager.checkPlayServices(this, true);
}
catch (Exception e) {
Expand Down Expand Up @@ -1115,7 +1116,8 @@ public void run() {
mApikey = null;
mReportManager.authorizeDevice(getLogin(MainService.this), QosAPI.getPassword(MainService.this), false);
// Ensure registered for Firebase Cloud Messages
MyFirebaseInstanceIDService.checkFCMRegistration (MainService.this);
MMCSystemUtil.checkFirebaseRegistration (MainService.this);

// mReportManager.checkPlayServices(MainService.this, true);
}
} catch (Exception e) {
Expand Down

0 comments on commit 67893c9

Please sign in to comment.