1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-1096 Analytics | Tech | Enable analytics for debug nightly builds (#3031)

This commit is contained in:
Evgenii Kozlov 2023-03-21 19:08:33 +01:00 committed by GitHub
parent 46ab9eb5d5
commit feb3764cf5
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 15 deletions

View file

@ -10,10 +10,13 @@ enable_dated_version_name:
distribute_debug:
./gradlew bundleDebug appDistributionUploadDebug
enable_analytics_for_debug:
./gradlew :analytics:enableAnalyticsForDebugBuilds
pr_check: compile_android_test_sources test_debug_all
setup_local_mw:
./gradlew libs:publishToMavenLocal
enable_analytics_for_debug:
sed -i -e 's/config.enableAnalyticsForDebugBuilds=false/config.enableAnalyticsForDebugBuilds=true/g' analytics/gradle.properties
disable_analytics_for_debug:
sed -i -e 's/config.enableAnalyticsForDebugBuilds=true/config.enableAnalyticsForDebugBuilds=false/g' analytics/gradle.properties

View file

@ -20,16 +20,4 @@ dependencies {
implementation libs.coroutinesAndroid
implementation libs.timber
implementation libs.amplitude
}
tasks.register("enableAnalyticsForDebugBuilds") {
doLast {
enableAnalyticsForDebugBuilds()
}
}
def enableAnalyticsForDebugBuilds() {
def file = file('gradle.properties')
def content = "config.enableAnalyticsForDebugBuilds=true"
file.text = content.toString()
}