Skip to content

Commit 12972a7

Browse files
committed
Library has no VERSIUON_NAME any more; now there is a own solution
1 parent 4594785 commit 12972a7

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

LogcatCoreLib/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ android {
88
defaultConfig {
99
versionName getTag()
1010
versionCode getGitCommitCount()
11+
buildConfigField "String", "VERSIONNAME", "\"" + getTag() + "\""
1112

1213
minSdkVersion 16
1314
project.archivesBaseName = "LogcatCore"

LogcatCountlyLib/src/main/java/info/hannes/countly/Analytics.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Analytics : IAnalytics {
6969
} catch (ignore: PackageManager.NameNotFoundException) {
7070
}
7171
segmentation["app_version"] = version
72-
segmentation["logging_version"] = BuildConfig.VERSION_NAME
72+
segmentation["logging_version"] = BuildConfig.VERSIONNAME
7373

7474
val config = CountlyConfig()
7575
.setAppKey(countlyKey)

sample/src/main/java/info/hannes/logcat/CrashlyticApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CrashlyticApplication : Application() {
2020
Timber.plant(FileLoggingTree(it, this))
2121
}
2222

23-
FirebaseCrashlytics.getInstance().setCustomKey("VERSION_NAME", BuildConfig.VERSION_NAME)
23+
FirebaseCrashlytics.getInstance().setCustomKey("VERSION_NAME", BuildConfig.VERSIONNAME)
2424
Timber.plant(CrashlyticsTree(Settings.Secure.getString(applicationContext.contentResolver, Settings.Secure.ANDROID_ID)))
2525

2626
Timber.d("Debug test")

0 commit comments

Comments
 (0)