Skip to content

Commit

Permalink
remove google-services.json and update .gitignore to prevent future c…
Browse files Browse the repository at this point in the history
…ommits
  • Loading branch information
aderan committed Sep 23, 2024
1 parent 31371c3 commit 6d21ae8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/google-services.json.gpg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
� 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�`�
|1(v}g�1�k�ؕ2Y4߁\��0$q��n=$/�E��*�f�j!��Wf�4��F�q��&Z��X�G�-�s�K &�U
�����=~1O����m�?�'�L��n(�K�-��QF\��~� }TEم^o��������k�L����u~�_s�ф���1ai%B����3���0p�U<��l�
Expand Down
3 changes: 3 additions & 0 deletions .github/scripts/decrypt_secret.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ gpg --quiet --batch --yes --decrypt --passphrase="$KEYSTORE_SECRET_PASSPHRASE" \
# decrpyt gradle properties
gpg --quiet --batch --yes --decrypt --passphrase="$GRADLE_SECRET_PASSPHRASE" \
--output $HOME/flat/ci-gradle.properties $GITHUB_WORKSPACE/.github/ci-gradle.properties.gpg
# decrpyt google-services.json
gpg --quiet --batch --yes --decrypt --passphrase="$GRADLE_SECRET_PASSPHRASE" \
--output $GITHUB_WORKSPACE/app/google-services.json $GITHUB_WORKSPACE/.github/google-services.json.gpg

mkdir -p ~/.gradle
cp $HOME/flat/ci-gradle.properties ~/.gradle/gradle.properties
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,7 @@ lint/tmp/
# lint/reports/

# Android Profiling
*.hprof
*.hprof

# Firebase
.app/google-services.json
11 changes: 9 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@ plugins {
id 'kotlin-parcelize'
id "androidx.navigation.safeargs"

id 'com.google.gms.google-services'
id "com.google.firebase.crashlytics"
}

def googleServicesPath = "$projectDir/google-services.json"
if (file(googleServicesPath).exists()) {
apply plugin: 'com.google.gms.google-services'
println "Applying Google Services plugin."
} else {
println "Skipping Google Services plugin as google-services.json not found."
}

android {
compileSdk 34

Expand Down Expand Up @@ -134,7 +141,7 @@ android {
productFlavors {
create("flat") {
applicationId = "io.agora.flat"

buildConfigField "String", "DEFAULT_CALLING_CODE", "\"+86\""
buildConfigField "String", "DEFAULT_ENV", "\"cn_prod\""
}
Expand Down

0 comments on commit 6d21ae8

Please sign in to comment.