From d083d665dfb9a97066e8f2e026ccd7d7d9d25060 Mon Sep 17 00:00:00 2001 From: Nicolas Dougoud Date: Thu, 29 Apr 2021 21:03:42 +0200 Subject: [PATCH] add firebase on watch app --- .github/workflows/build_and_deploy.yml | 6 +++ wear/build.gradle | 4 ++ wear/google-services.json | 74 ++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 wear/google-services.json diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 1852476..a55961e 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -25,6 +25,12 @@ jobs: source: "private/googleplay.json" target: "mobile/googleplay.json" + - name: Copy file + uses: canastro/copy-file-action@master + with: + source: "private/googleplay.json" + target: "wear/googleplay.json" + - name: install dependencies uses: ruby/setup-ruby@v1 with: diff --git a/wear/build.gradle b/wear/build.gradle index 6f5a4d9..b3b3aea 100644 --- a/wear/build.gradle +++ b/wear/build.gradle @@ -61,4 +61,8 @@ dependencies { compileOnly 'com.google.android.wearable:wearable:2.8.1' implementation 'com.squareup.dagger:dagger:1.2.5' annotationProcessor 'com.squareup.dagger:dagger-compiler:1.2.5' + + implementation platform('com.google.firebase:firebase-bom:26.8.0') + implementation 'com.google.firebase:firebase-crashlytics' + implementation 'com.google.firebase:firebase-analytics' } diff --git a/wear/google-services.json b/wear/google-services.json new file mode 100644 index 0000000..205ae2b --- /dev/null +++ b/wear/google-services.json @@ -0,0 +1,74 @@ +{ + "project_info": { + "project_number": "861628624705", + "project_id": "timeforcoffee-976", + "storage_bucket": "timeforcoffee-976.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:861628624705:android:54e12e54138a2f54697bc0", + "android_client_info": { + "package_name": "ch.liip.timeforcoffee" + } + }, + "oauth_client": [ + { + "client_id": "", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "" + }, + { + "current_key": "" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "", + "client_type": 3 + } + ] + } + } + }, + { + "client_info": { + "mobilesdk_app_id": "1:861628624705:android:93fb4b76535f332a697bc0", + "android_client_info": { + "package_name": "ch.liip.timeforcoffee.dev" + } + }, + "oauth_client": [ + { + "client_id": "", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "" + }, + { + "current_key": "" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "", + "client_type": 3 + } + ] + } + } + } + ], + "configuration_version": "1" +}