Skip to content

Commit

Permalink
Add amplitude key in secret and properties
Browse files Browse the repository at this point in the history
  • Loading branch information
l2hyunwoo committed Jul 24, 2023
1 parent 4785154 commit 499c46b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/develop_PR_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ jobs:
KEY_ALIAS: ${{ secrets.SENTRY_DSN }}
KEY_PASSWORD: ${{ secrets.SENTRY_DSN }}
STORE_PASSWORD: ${{ secrets.SENTRY_DSN }}
AMPLITUDE_KEY: ${{ secrets.SENTRY_DSN }}
run: |
echo sentryDsn=\"$SENTRY_DSN\" >> ./local.properties
echo kakaoApiKey=$KAKAO_API_KEY >> ./local.properties
echo pophoryBaseUrl=$POPHORY_BASE_URL >> ./local.properties
echo keyAlias=$KEY_ALIAS >> ./local.properties
echo keyPassword=KEY_PASSWORD >> ./local.properties
echo storePassword=$STORE_PASSWORD >> ./local.properties
echo amplitudeKey=$AMPLITUDE_KEY >> ./local.properties
- name: Access Firebase Service
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ internal fun Project.configureAndroidCommonPlugin() {
defaultConfig {
val kakaoApiKey = properties["kakaoApiKey"] as? String ?: ""
val pophoryBaseUrl = properties["pophoryBaseUrl"] as? String ?: ""
val amplitudeKey = properties["amplitudeKey"] as? String ?: ""

manifestPlaceholders["sentryDsn"] = properties["sentryDsn"] as String
manifestPlaceholders["kakaoApiKey"] = properties["kakaoApiKey"] as String
manifestPlaceholders["pophoryBaseUrl"] = properties["pophoryBaseUrl"] as String

buildConfigField("String", "KAKAO_API_KEY", "\"${kakaoApiKey}\"")
buildConfigField("String", "POPHORY_BASE_URL", "\"${pophoryBaseUrl}\"")
buildConfigField("String", "AMPLITUDE_KEY", "\"${amplitudeKey}\"")
}
buildFeatures.apply {
viewBinding = true
Expand Down

0 comments on commit 499c46b

Please sign in to comment.