Commit f1dc23f6 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Configure gcm

parent 3d77288e
......@@ -14,7 +14,7 @@ android {
versionCode 1
versionName "2.0.0-beta1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled false
multiDexEnabled true
}
buildTypes {
......@@ -76,6 +76,8 @@ dependencies {
implementation libraries.androidSvg
implementation "com.google.android.gms:play-services-gcm:11.8.0"
testImplementation libraries.junit
androidTestImplementation (libraries.expressoCore , {
exclude group: 'com.android.support', module: 'support-annotations'
......@@ -90,4 +92,6 @@ kotlin {
experimental {
coroutines "enable"
}
}
\ No newline at end of file
}
apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
......@@ -4,6 +4,12 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:name="chat.rocket.android.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="chat.rocket.android.permission.C2D_MESSAGE" />
<application
android:name=".app.RocketChatApplication"
......@@ -35,6 +41,32 @@
android:name=".app.ChatRoomActivity"
android:theme="@style/AppTheme">
</activity>
<receiver
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="chat.rocket.android" />
</intent-filter>
</receiver>
<!--<service-->
<!--android:name=".push.TokenRotationService"-->
<!--android:exported="false">-->
<!--<intent-filter>-->
<!--<action android:name="com.google.android.gms.iid.InstanceID" />-->
<!--</intent-filter>-->
<!--</service>-->
<service android:name=".push.PushTokenService" android:exported="true">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
</application>
</manifest>
\ No newline at end of file
......@@ -11,6 +11,7 @@ buildscript {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${versions.dokka}"
classpath 'com.google.gms:google-services:3.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment