diff --git a/android/mainSample/build.gradle b/android/mainSample/build.gradle index 0f184037b..3f6c1a644 100644 --- a/android/mainSample/build.gradle +++ b/android/mainSample/build.gradle @@ -13,10 +13,10 @@ android { minSdkVersion 24 targetSdkVersion 34 - // versionCode getGitCommitCount() - // versionName getTag() + versionCode getGitCommitCount() + versionName getTag() buildConfigField "String", 'GIT_REPOSITORY', "\"" + getGitOriginRemote() + "\"" - buildConfigField "String", 'VERSION', "\"" + versionName + "\"" + buildConfigField "String", 'VERSION', "\"" + getTag() + "\"" } buildTypes { diff --git a/android/mainSample/src/main/java/com/example/virosample/SystemInfoFragment.kt b/android/mainSample/src/main/java/com/example/virosample/SystemInfoFragment.kt index 26580be33..de2f3d985 100644 --- a/android/mainSample/src/main/java/com/example/virosample/SystemInfoFragment.kt +++ b/android/mainSample/src/main/java/com/example/virosample/SystemInfoFragment.kt @@ -16,7 +16,7 @@ class SystemInfoFragment : PreferenceFragmentCompat() { addPreferencesFromResource(R.xml.prefs) // TODO after next release you can use info from library //findPreference(PREFERENCE_ + "APPVERSION")?.summary = com.viro.renderer.BuildConfig.VIRO_VERSION - findPreference(PREFERENCE_ + "APPVERSION")?.summary = BuildConfig.VERSION_NAME + findPreference(PREFERENCE_ + "APPVERSION")?.summary = BuildConfig.VERSION findPreference(PREFERENCE_ + "APPVERSION")?.title = "${findPreference(PREFERENCE_ + "APPVERSION")?.title} [${BuildConfig.FLAVOR}]" findPreference(PREFERENCE_ + "BOARD")?.summary = Build.BOARD