diff --git a/.gitignore b/.gitignore index 2651e50..9515811 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ android/keystores/debug.keystore # Security google-services.json +*.jks diff --git a/android/app/build.gradle b/android/app/build.gradle index 6b288f0..47d9e47 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -96,6 +96,18 @@ android { abiFilters "armeabi-v7a", "x86" } } + + signingConfigs { + release { + if (project.hasProperty('LAGOON_RELEASE_STORE_FILE')) { + storeFile file(LAGOON_RELEASE_STORE_FILE) + storePassword LAGOON_RELEASE_STORE_PASSWORD + keyAlias LAGOON_RELEASE_KEY_ALIAS + keyPassword LAGOON_RELEASE_KEY_PASSWORD + } + } + } + splits { abi { reset() @@ -108,6 +120,7 @@ android { release { minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + signingConfig signingConfigs.release } } // applicationVariants are e.g. debug, release diff --git a/libs/auth.js b/libs/auth.js index 8a33964..cd79c64 100644 --- a/libs/auth.js +++ b/libs/auth.js @@ -43,9 +43,9 @@ class Auth { // iosClientId: '', // only for iOS // client ID of type WEB for your server (needed to verify user ID and offline access) // Maxence : - webClientId: '582515175129-tjavfgnaejmfddtehv6g435emn3jf576.apps.googleusercontent.com', + // webClientId: '582515175129-tjavfgnaejmfddtehv6g435emn3jf576.apps.googleusercontent.com', // Naji : - //webClientId: '557464199167-4lbgvd3o6c6qjtqitqf1h8vkl9017csl.apps.googleusercontent.com', + webClientId: '557464199167-4lbgvd3o6c6qjtqitqf1h8vkl9017csl.apps.googleusercontent.com', offlineAccess: true // if you want to access Google API on behalf of the user FROM YOUR SERVER }) .then(() => {