Skip to content

Commit 1eb2017

Browse files
committed
remove google-services.json and update .gitignore to prevent future commits
1 parent fd90f8b commit 1eb2017

File tree

5 files changed

+19
-51
lines changed

5 files changed

+19
-51
lines changed

.github/google-services.json.gpg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
� T�}�0r������&2TWMuC�Q� v5>k�����Ѳ�ȼV+_T업�������`�!�:nO:<�-:w뙳,�J�=n���ݚ�]a ��갾�m��6�~:�"Z����R�Xkl8C+��H�'�:~,T_��[4�@����)�`ڃ�"�{B�+uWԅ���Q#��w�#��}�c��^�]�_-�X�(�,��f\�Jxa�0Y�7�*Wt���9$,g���py�s ��!����i���5W�`�
2+
|1(v}g�1�k�ؕ2Y4߁\��0$q��n=$/�E��*�f�j!��Wf�4��F�q��&Z��X�G�-�s�K &�U
3+
�����=~1O����m�?�'�L��n(�K�-��QF\��~� }TEم^o��������k�L����u~�_s�ф���1ai%B����3���0p�U<��l�

.github/scripts/decrypt_secret.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ gpg --quiet --batch --yes --decrypt --passphrase="$KEYSTORE_SECRET_PASSPHRASE" \
77
# decrpyt gradle properties
88
gpg --quiet --batch --yes --decrypt --passphrase="$GRADLE_SECRET_PASSPHRASE" \
99
--output $HOME/flat/ci-gradle.properties $GITHUB_WORKSPACE/.github/ci-gradle.properties.gpg
10+
# decrpyt google-services.json
11+
gpg --quiet --batch --yes --decrypt --passphrase="$GRADLE_SECRET_PASSPHRASE" \
12+
--output $GITHUB_WORKSPACE/app/google-services.json $GITHUB_WORKSPACE/.github/google-services.json.gpg
1013

1114
mkdir -p ~/.gradle
1215
cp $HOME/flat/ci-gradle.properties ~/.gradle/gradle.properties

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,7 @@ lint/tmp/
8080
# lint/reports/
8181

8282
# Android Profiling
83-
*.hprof
83+
*.hprof
84+
85+
# Firebase
86+
.app/google-services.json

app/build.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@ plugins {
66
id 'kotlin-parcelize'
77
id "androidx.navigation.safeargs"
88

9-
id 'com.google.gms.google-services'
109
id "com.google.firebase.crashlytics"
1110
}
1211

12+
def googleServicesPath = "$projectDir/google-services.json"
13+
if (file(googleServicesPath).exists()) {
14+
apply plugin: 'com.google.gms.google-services'
15+
println "Applying Google Services plugin."
16+
} else {
17+
println "Skipping Google Services plugin as google-services.json not found."
18+
}
19+
1320
android {
1421
compileSdk 34
1522

@@ -134,7 +141,7 @@ android {
134141
productFlavors {
135142
create("flat") {
136143
applicationId = "io.agora.flat"
137-
144+
138145
buildConfigField "String", "DEFAULT_CALLING_CODE", "\"+86\""
139146
buildConfigField "String", "DEFAULT_ENV", "\"cn_prod\""
140147
}

app/google-services.json

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)