Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
f1dc23f6
Commit
f1dc23f6
authored
Jan 03, 2018
by
Leonardo Aramaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure gcm
parent
3d77288e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
build.gradle
app/build.gradle
+6
-2
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+32
-0
build.gradle
build.gradle
+1
-0
No files found.
app/build.gradle
View file @
f1dc23f6
...
...
@@ -14,7 +14,7 @@ android {
versionCode
1
versionName
"2.0.0-beta1"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled
fals
e
multiDexEnabled
tru
e
}
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
app/src/main/AndroidManifest.xml
View file @
f1dc23f6
...
...
@@ -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
build.gradle
View file @
f1dc23f6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment