Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
Add Flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
k4zy committed Apr 17, 2018
1 parent 6892cb8 commit 9dca3fe
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions android/app/build.gradle
Expand Up @@ -50,6 +50,28 @@ android {
}
}
}

flavorDimensions "default"
productFlavors {
staging {
buildConfigField "String", "CODEPUSH_ID", '"staging_codepush_id"'
buildConfigField "String", "OAUTH_UID", '"staging_uid"'
buildConfigField "String", "OAUTH_SECRET", '"staging_secret"'
buildConfigField "String", "API_URL", '"https://staging.example.com"'
buildConfigField "String", "AUTH_URL", '"https://staging-auth.example.com"'
buildConfigField "String", "WEB_URL", '"https://staging.example.com"'
applicationId 'your.package.name.staging'
}
production {
buildConfigField "String", "CODEPUSH_ID", '"production_codepush_id"'
buildConfigField "String", "OAUTH_UID", '"production_uid"'
buildConfigField "String", "OAUTH_SECRET", '"produciton_secret"'
buildConfigField "String", "API_URL", '"https://example.com"'
buildConfigField "String", "AUTH_URL", '"https://auth.example.com"'
buildConfigField "String", "WEB_URL", '"https://example.com"'
}
}

}

dependencies {
Expand Down

0 comments on commit 9dca3fe

Please sign in to comment.