Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
org.benoitharrault.random
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.random
Commits
9944d125
Commit
9944d125
authored
5 months ago
by
Benoît Harrault
Browse files
Options
Downloads
Plain Diff
Merge branch '83-fix-build-process' into 'master'
Resolve "Fix build process" Closes
#83
See merge request
!80
parents
9151f6ff
23c1eb81
No related branches found
Branches containing commit
Tags
Release_1.0.62_63
Tags containing commit
1 merge request
!80
Resolve "Fix build process"
Pipeline
#6185
canceled
5 months ago
Stage: build-debug
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
android/app/build.gradle
+3
-3
3 additions, 3 deletions
android/app/build.gradle
pubspec.yaml
+1
-1
1 addition, 1 deletion
pubspec.yaml
test.sh
+0
-12
0 additions, 12 deletions
test.sh
with
4 additions
and
16 deletions
android/app/build.gradle
+
3
−
3
View file @
9944d125
...
...
@@ -66,10 +66,10 @@ import com.android.build.OutputFile
android
.
applicationVariants
.
all
{
variant
->
variant
.
outputs
.
each
{
output
->
def
base
AbiVersionCode
=
project
.
ext
.
abiCodes
.
get
(
output
.
getFilter
(
OutputFile
.
ABI
))
def
per
AbiVersionCode
Increment
=
project
.
ext
.
abiCodes
.
get
(
output
.
getFilter
(
OutputFile
.
ABI
))
if
(
base
AbiVersionCode
!=
null
)
{
output
.
versionCodeOverride
=
baseAbiV
ersionCode
*
1000
+
variant
.
v
ersionCode
if
(
per
AbiVersionCode
Increment
!=
null
)
{
output
.
versionCodeOverride
=
variant
.
v
ersionCode
*
1000
+
perAbiV
ersionCode
Increment
}
}
}
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
1
−
1
View file @
9944d125
...
...
@@ -3,7 +3,7 @@ description: A random application, for testing purpose only.
publish_to
:
"
none"
version
:
1.0.6
1
+6
2
version
:
1.0.6
2
+6
3
environment
:
sdk
:
"
^3.0.0"
...
...
This diff is collapsed.
Click to expand it.
test.sh
deleted
100755 → 0
+
0
−
12
View file @
9151f6ff
#!/bin/bash -i
BASE_APK_FOLDER
=
"build/app/outputs/flutter-apk"
VERSION_NAME
=
"
$(
grep
'^version:'
pubspec.yaml |
cut
-d
' '
-f2
|
cut
-d
'+'
-f1
)
"
VERSION_CODE
=
"
$(
grep
'^version:'
pubspec.yaml |
cut
-d
' '
-f2
|
cut
-d
'+'
-f2
)
"
APP_NAME
=
"
$(
grep
'namespace'
android/app/build.gradle |
cut
-d
'"'
-f2
)
"
if
[
"
$(
find
"
${
BASE_APK_FOLDER
}
"
-name
"*.apk"
)
"
!=
""
]
;
then
for
APK
in
${
BASE_APK_FOLDER
}
/
*
.apk
;
do
mv
-v
"
${
APK
}
"
"
$(
echo
"
${
APK
}
"
|
sed
"s|
\.
apk|_
${
VERSION_CODE
}
.apk|"
|
sed
"s|/app-|/
${
APP_NAME
}
-|"
)
"
done
fi
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