diff --git a/.github/workflows/develop_PR_builder.yml b/.github/workflows/develop_PR_builder.yml index b6da73a8..d3da9196 100644 --- a/.github/workflows/develop_PR_builder.yml +++ b/.github/workflows/develop_PR_builder.yml @@ -44,6 +44,7 @@ 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 @@ -51,6 +52,7 @@ jobs: 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 diff --git a/build-logic/convention/src/main/kotlin/com/teampophory/pophory/plugin/CommonConfigs.kt b/build-logic/convention/src/main/kotlin/com/teampophory/pophory/plugin/CommonConfigs.kt index a29f8e56..b000b192 100644 --- a/build-logic/convention/src/main/kotlin/com/teampophory/pophory/plugin/CommonConfigs.kt +++ b/build-logic/convention/src/main/kotlin/com/teampophory/pophory/plugin/CommonConfigs.kt @@ -25,6 +25,7 @@ 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 @@ -32,6 +33,7 @@ internal fun Project.configureAndroidCommonPlugin() { buildConfigField("String", "KAKAO_API_KEY", "\"${kakaoApiKey}\"") buildConfigField("String", "POPHORY_BASE_URL", "\"${pophoryBaseUrl}\"") + buildConfigField("String", "AMPLITUDE_KEY", "\"${amplitudeKey}\"") } buildFeatures.apply { viewBinding = true