Skip to content

Commit

Permalink
Add VERSION_NAME as buildConfigField to build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
bilal-alsharifi committed Nov 6, 2020
1 parent d065a4b commit 72751ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/sdl_android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ android {
targetSdkVersion 29
versionCode 17
versionName new File(projectDir.path, ('/../../VERSION')).text.trim()
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
buildConfigField "String", "VERSION_NAME", '\"' + versionName + '\"'
resValue "string", "SDL_LIB_VERSION", '\"' + versionName + '\"'
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
buildTypes {
release {
Expand Down

0 comments on commit 72751ad

Please sign in to comment.