Skip to content

Commit 254dd24

Browse files
authored
Merge pull request #47 from chong-shao/fix_gradle_file
2 parents 30e1835 + 9e33e5e commit 254dd24

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Getting started
1616
1. [Add Firebase to your Android Project](https://firebase.google.com/docs/android/setup).
1717
2. Create a service account as described in [Adding Firebase to your Server](https://firebase.google.com/docs/admin/setup) and download the JSON file.
1818
- Copy the private key JSON file to this folder and rename it to `service-account.json`.
19-
3. Change the `PROJECT_ID` variable in `Configure.java` to your project ID.
19+
3. Change the build.gradle file under config/, to replace '[YOUR_SERVICE_ACCOUNT_JSON_DIR]' to the directory of `service-account.json`.
2020

2121
Run
2222
---

config/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repositories {
88
mavenCentral()
99
}
1010

11-
run.doFirst { environment 'GOOGLE_APPLICATION_CREDENTIALS', '/Users/chongshao/dev/quickstart-java/config/service-account.json' }
11+
# run.doFirst { environment 'GOOGLE_APPLICATION_CREDENTIALS', '[YOUR_SERVICE_ACCOUNT_JSON_DIR]' }
1212

1313
run {
1414
if (project.hasProperty("action")) {

messaging/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Getting started
1717

1818
1. Create a service account as described in [Adding Firebase to your Server](https://firebase.google.com/docs/admin/setup) and download the JSON file.
1919
- Copy the json file to this folder and rename it to `service-account.json`.
20-
2. Change the `PROJECT_ID` variable in `com.google.firebase.quickstart.Messaging.java` to your project ID.
20+
2. Change the build.gradle file under messaging/, to replace '[YOUR_SERVICE_ACCOUNT_JSON_DIR]' to the directory of `service-account.json`.
2121

2222
Run
2323
---

messaging/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repositories {
1212
mavenCentral()
1313
}
1414

15-
run.doFirst { environment 'GOOGLE_APPLICATION_CREDENTIALS', '/Users/chongshao/dev/quickstart-java/messaging/service-account.json' }
15+
run.doFirst { environment 'GOOGLE_APPLICATION_CREDENTIALS', '[YOUR_SERVICE_ACCOUNT_JSON_DIR]' }
1616

1717
run {
1818
if (project.hasProperty("message")) {

0 commit comments

Comments
 (0)