Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
org.benoitharrault.hangman
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
android
org.benoitharrault.hangman
Merge requests
!12
Resolve "Improve signing process and get application version"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Improve signing process and get application version"
15-improve-signing-process-and-get-application-version
into
master
Overview
0
Commits
1
Pipelines
2
Changes
3
Merged
Benoît Harrault
requested to merge
15-improve-signing-process-and-get-application-version
into
master
4 years ago
Overview
0
Commits
1
Pipelines
2
Changes
3
Expand
Closes
#15 (closed)
Edited
4 years ago
by
Benoît Harrault
0
0
Merge request reports
Viewing commit
08666761
Show latest version
3 files
+
19
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
08666761
Fix get version code/name
· 08666761
Benoît Harrault
authored
4 years ago
android/app/build.gradle
+
16
−
8
Options
@@ -6,19 +6,27 @@ if (localPropertiesFile.exists()) {
}
}
def
gradleProperties
=
new
Properties
()
def
gradlePropertiesFile
=
rootProject
.
file
(
'gradle.properties'
)
if
(
gradlePropertiesFile
.
exists
())
{
gradlePropertiesFile
.
withReader
(
'UTF-8'
)
{
reader
->
gradleProperties
.
load
(
reader
)
}
}
def
flutterRoot
=
localProperties
.
getProperty
(
'flutter.sdk'
)
if
(
flutterRoot
==
null
)
{
throw
new
FileNotFoundException
(
"Flutter SDK not found. Define location with flutter.sdk in the local.properties file."
)
}
def
flutter
VersionCode
=
local
Properties
.
getProperty
(
'
flutter
.versionCode'
)
if
(
flutter
VersionCode
==
null
)
{
flutter
VersionCode
=
'1'
def
app
VersionCode
=
gradle
Properties
.
getProperty
(
'
app
.versionCode'
)
if
(
app
VersionCode
==
null
)
{
app
VersionCode
=
'1'
}
def
flutter
VersionName
=
local
Properties
.
getProperty
(
'
flutter
.versionName'
)
if
(
flutter
VersionName
==
null
)
{
flutter
VersionName
=
'1.0'
def
app
VersionName
=
gradle
Properties
.
getProperty
(
'
app
.versionName'
)
if
(
app
VersionName
==
null
)
{
app
VersionName
=
'1.0'
}
apply
plugin:
'com.android.application'
@@ -41,8 +49,8 @@ android {
applicationId
"org.benoitharrault.hangman"
minSdkVersion
21
targetSdkVersion
29
versionCode
flutter
VersionCode
.
toInteger
()
versionName
flutter
VersionName
versionCode
app
VersionCode
.
toInteger
()
versionName
app
VersionName
archivesBaseName
=
"$applicationId"
+
"_"
+
"$versionCode"
}
Loading