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
Commits
2cce5162
Commit
2cce5162
authored
4 years ago
by
Benoît Harrault
Browse files
Options
Downloads
Plain Diff
Merge branch '15-improve-signing-process-and-get-application-version' into 'master'
Resolve "Improve signing process and get application version" Closes
#15
See merge request
!12
parents
f37e7f8e
08666761
No related branches found
No related tags found
1 merge request
!12
Resolve "Improve signing process and get application version"
Pipeline
#880
canceled
4 years ago
Stage: test
Stage: update
Stage: build
Changes
3
Pipelines
5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
android/app/build.gradle
+16
-8
16 additions, 8 deletions
android/app/build.gradle
android/gradle.properties
+2
-0
2 additions, 0 deletions
android/gradle.properties
with
19 additions
and
9 deletions
.gitlab-ci.yml
+
1
−
1
View file @
2cce5162
...
...
@@ -29,7 +29,7 @@ android:build:
# Android signing
-
echo "$ANDROID_KEYSTORE_FILE" | base64 -d > android/app/my.keystore
-
echo storeFile=my.keystore > android/key.properties
-
echo storePassword=$ANDROID_KEY
_
STORE_PASSWORD >> android/key.properties
-
echo storePassword=$ANDROID_KEYSTORE_PASSWORD >> android/key.properties
-
echo keyAlias=$ANDROID_KEY_ALIAS >> android/key.properties
-
echo keyPassword=$ANDROID_KEY_PASSWORD >> android/key.properties
# build flutter app
...
...
This diff is collapsed.
Click to expand it.
android/app/build.gradle
+
16
−
8
View file @
2cce5162
...
...
@@ -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"
}
...
...
This diff is collapsed.
Click to expand it.
android/gradle.properties
+
2
−
0
View file @
2cce5162
...
...
@@ -2,3 +2,5 @@ org.gradle.jvmargs=-Xmx1536M
android.useAndroidX
=
true
android.enableJetifier
=
true
android.enableR8
=
true
app.versionName
=
1.1.4
app.versionCode
=
4
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment