Skip to content

Commit

Permalink
Fix versionname for mainSample
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Oct 13, 2024
1 parent 7c10864 commit 1197104
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions android/mainSample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SystemInfoFragment : PreferenceFragmentCompat() {
addPreferencesFromResource(R.xml.prefs)
// TODO after next release you can use info from library
//findPreference<Preference>(PREFERENCE_ + "APPVERSION")?.summary = com.viro.renderer.BuildConfig.VIRO_VERSION
findPreference<Preference>(PREFERENCE_ + "APPVERSION")?.summary = BuildConfig.VERSION_NAME
findPreference<Preference>(PREFERENCE_ + "APPVERSION")?.summary = BuildConfig.VERSION
findPreference<Preference>(PREFERENCE_ + "APPVERSION")?.title =
"${findPreference<Preference>(PREFERENCE_ + "APPVERSION")?.title} [${BuildConfig.FLAVOR}]"
findPreference<Preference>(PREFERENCE_ + "BOARD")?.summary = Build.BOARD
Expand Down

0 comments on commit 1197104

Please sign in to comment.