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:
parent
46ab9eb5d5
commit
feb3764cf5
2 changed files with 6 additions and 15 deletions
9
Makefile
9
Makefile
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue