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
ea4adbdc
Commit
ea4adbdc
authored
4 years ago
by
Benoît Harrault
Browse files
Options
Downloads
Plain Diff
Merge branch '2-fix-build-application-package' into 'master'
Resolve "Fix build application package" Closes
#2
See merge request
!2
parents
5b8fca20
78e4ed54
No related branches found
No related tags found
1 merge request
!2
Resolve "Fix build application package"
Pipeline
#874
passed
4 years ago
Stage: update
Stage: build-debug
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
android/app/build.gradle
+32
-12
32 additions, 12 deletions
android/app/build.gradle
android/gradle.properties
+2
-0
2 additions, 0 deletions
android/gradle.properties
with
34 additions
and
12 deletions
android/app/build.gradle
+
32
−
12
View file @
ea4adbdc
...
@@ -6,41 +6,61 @@ if (localPropertiesFile.exists()) {
...
@@ -6,41 +6,61 @@ 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'
)
def
flutterRoot
=
localProperties
.
getProperty
(
'flutter.sdk'
)
if
(
flutterRoot
==
null
)
{
if
(
flutterRoot
==
null
)
{
throw
new
GradleException
(
"Flutter SDK not found. Define location with flutter.sdk in the local.properties file."
)
throw
new
GradleException
(
"Flutter SDK not found. Define location with flutter.sdk in the local.properties file."
)
}
}
def
flutter
VersionCode
=
local
Properties
.
getProperty
(
'
flutter
.versionCode'
)
def
app
VersionCode
=
gradle
Properties
.
getProperty
(
'
app
.versionCode'
)
if
(
flutter
VersionCode
==
null
)
{
if
(
app
VersionCode
==
null
)
{
flutter
VersionCode
=
'1'
app
VersionCode
=
'1'
}
}
def
flutter
VersionName
=
local
Properties
.
getProperty
(
'
flutter
.versionName'
)
def
app
VersionName
=
gradle
Properties
.
getProperty
(
'
app
.versionName'
)
if
(
flutter
VersionName
==
null
)
{
if
(
app
VersionName
==
null
)
{
flutter
VersionName
=
'1.0'
app
VersionName
=
'1.0'
}
}
apply
plugin:
'com.android.application'
apply
plugin:
'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
def
keystoreProperties
=
new
Properties
()
def
keystorePropertiesFile
=
rootProject
.
file
(
'key.properties'
)
if
(
keystorePropertiesFile
.
exists
())
{
keystoreProperties
.
load
(
new
FileInputStream
(
keystorePropertiesFile
))
}
android
{
android
{
compileSdkVersion
30
compileSdkVersion
30
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"org.benoitharrault.random"
applicationId
"org.benoitharrault.random"
minSdkVersion
16
minSdkVersion
16
targetSdkVersion
30
targetSdkVersion
30
versionCode
flutterVersionCode
.
toInteger
()
versionCode
appVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
appVersionName
archivesBaseName
=
"$applicationId"
+
"_"
+
"$versionCode"
}
}
signingConfigs
{
release
{
keyAlias
keystoreProperties
[
'keyAlias'
]
keyPassword
keystoreProperties
[
'keyPassword'
]
storeFile
keystoreProperties
[
'storeFile'
]
?
file
(
keystoreProperties
[
'storeFile'
])
:
null
storePassword
keystoreProperties
[
'storePassword'
]
}
}
buildTypes
{
buildTypes
{
release
{
release
{
// TODO: Add your own signing config for the release build.
signingConfig
signingConfigs
.
release
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig
signingConfigs
.
debug
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
android/gradle.properties
+
2
−
0
View file @
ea4adbdc
org.gradle.jvmargs
=
-Xmx1536M
org.gradle.jvmargs
=
-Xmx1536M
android.useAndroidX
=
true
android.useAndroidX
=
true
android.enableJetifier
=
true
android.enableJetifier
=
true
app.versionName
=
1.0.0
app.versionCode
=
1
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