Skip to content

Commit a837ee7

Browse files
committed
Migrate the Messaging class to use Admin SDK.
1 parent f75816c commit a837ee7

File tree

7 files changed

+168
-166
lines changed

7 files changed

+168
-166
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ allprojects {
33
mavenCentral()
44
mavenLocal()
55
}
6+
dependencies {
7+
// Add the dependency for the Google services Gradle plugin
8+
classpath 'com.google.gms:google-services:4.3.15'
9+
}
610
}
711

812
task clean(type: Delete) {

messaging/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ repositories {
1212
mavenCentral()
1313
}
1414

15+
run.doFirst { environment 'GOOGLE_APPLICATION_CREDENTIALS', '/Users/chongshao/dev/quickstart-java/messaging/service-account.json' }
16+
1517
run {
1618
if (project.hasProperty("message")) {
1719
args = args << "${message}"
@@ -25,3 +27,8 @@ dependencies {
2527
compile 'com.google.auth:google-auth-library-oauth2-http:0.26.0'
2628
compile 'com.google.code.gson:gson:2.8.7'
2729
}
30+
31+
dependencies {
32+
implementation 'com.google.firebase:firebase-admin:9.1.1'
33+
}
34+
4.39 KB
Binary file not shown.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Wed Jul 12 13:52:55 PDT 2017
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
5-
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip
5+
zipStorePath=wrapper/dists

messaging/gradlew

Lines changed: 34 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

messaging/gradlew.bat

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)