Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
b91e8b45
Commit
b91e8b45
authored
May 12, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
publish via task with rename and copy file
parent
b5f86776
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
build.gradle
app/build.gradle
+52
-0
No files found.
app/build.gradle
View file @
b91e8b45
...
...
@@ -16,6 +16,17 @@ apply plugin: 'com.google.firebase.crashlytics'
//apply plugin: 'io.fabric'
// Create a variable called keystorePropertiesFile, and initialize it to your
// keystore.properties file, in the rootProject folder.
def
keystorePropertiesFile
=
rootProject
.
file
(
"../roomParkKeystore.properties"
)
// Initialize a new Properties() object called keystoreProperties.
def
keystoreProperties
=
new
Properties
()
// Load your keystore.properties file into the keystoreProperties object.
keystoreProperties
.
load
(
new
FileInputStream
(
keystorePropertiesFile
))
android
{
compileSdkVersion
compileSdkVersion_RoomPark
defaultConfig
{
...
...
@@ -47,11 +58,52 @@ android {
ext
.
alwaysUpdateBuildId
=
false
}
release
{
signingConfig
signingConfigs
.
release
minifyEnabled
false
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
debuggable
false
}
}
applicationVariants
.
all
{
variant
->
if
(
variant
.
name
.
contains
(
"release"
))
{
variant
.
outputs
.
each
{
output
->
output
.
outputFileName
=
new
File
(
"Expeditor_v"
)
}
}
}
//
// applicationVariants.all { variant ->
// variant.outputs.all {
// outputFileName = new File(keystoreProperties['outputFolder'])
// }
// }
task
copyReleaseBundle
(
type:
Copy
)
{
from
'build\\outputs\\bundle\\release'
into
'..'
// folder above the app folder
include
'**/*release.aab'
}
task
renameBundle
(
type:
Copy
)
{
from
"$buildDir/outputs/bundle/release"
into
"../../"
rename
'app-release.aab'
,
"roomParkBundle.aab"
}
task
publishRelease
(
type:
GradleBuild
)
{
tasks
=
[
'bundleRelease'
,
'renameBundle'
]
}
afterEvaluate
{
packageRelease
.
finalizedBy
(
copyReleaseBundle
)
}
androidExtensions
{
experimental
=
true
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment