Skip to content

Commit

Permalink
Add build configuration for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
na-ji committed Mar 6, 2017
1 parent 7c5102d commit 84e40d3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ android/keystores/debug.keystore

# Security
google-services.json
*.jks
13 changes: 13 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions libs/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class Auth {
// iosClientId: '<FROM DEVELOPPER CONSOLE>', // 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(() => {
Expand Down

0 comments on commit 84e40d3

Please sign in to comment.