Skip to content

Commit 109400d

Browse files
committed
add app-metrica gradle plugin for uploading mapping file
1 parent 5a24ce2 commit 109400d

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

app/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apply plugin: 'kotlin-parcelize'
44
apply plugin: 'kotlin-kapt'
55
apply plugin: 'androidx.navigation.safeargs.kotlin'
66
apply plugin: 'com.google.gms.google-services'
7+
apply plugin: 'appmetrica-plugin'
78

89
ext {
910
compose_version = "1.0.5"
@@ -33,8 +34,9 @@ android {
3334

3435
buildTypes {
3536
release {
36-
minifyEnabled false
37+
minifyEnabled true
3738
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
39+
signingConfig signingConfigs.debug
3840
}
3941
debug {
4042
applicationIdSuffix = ".debug"
@@ -161,3 +163,6 @@ dependencies {
161163
implementation 'com.jakewharton.timber:timber:5.0.1'
162164
}
163165

166+
appmetrica {
167+
postApiKey = "${APP_METRICA_POST_API_KEY}"
168+
}

app/gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ VERSION_NAME=2.2.0
44
PRODUCTION_URL_WEBAPI_BASE_URL=http://kindnesswand.com/api/v1/
55
STAGING_URL_WEBAPI_BASE_URL=http://dev.kindnesswand.com/api/v1/
66
GOOGLE_MAPS_API_KEY=googleApiKey
7-
APP_METRICA_API_KEY=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
7+
APP_METRICA_API_KEY=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
8+
APP_METRICA_POST_API_KEY=bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ buildscript {
1818

1919
classpath 'com.google.gms:google-services:4.3.3'
2020
classpath "com.github.ben-manes:gradle-versions-plugin:0.39.0"
21+
classpath "com.yandex.android:appmetrica-build-plugin:0.3.0"
2122
}
2223
}
2324

0 commit comments

Comments
 (0)