Commit b91e8b45 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

publish via task with rename and copy file

parent b5f86776
...@@ -16,6 +16,17 @@ apply plugin: 'com.google.firebase.crashlytics' ...@@ -16,6 +16,17 @@ apply plugin: 'com.google.firebase.crashlytics'
//apply plugin: 'io.fabric' //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 { android {
compileSdkVersion compileSdkVersion_RoomPark compileSdkVersion compileSdkVersion_RoomPark
defaultConfig { defaultConfig {
...@@ -47,11 +58,52 @@ android { ...@@ -47,11 +58,52 @@ android {
ext.alwaysUpdateBuildId = false ext.alwaysUpdateBuildId = false
} }
release { release {
signingConfig signingConfigs.release
minifyEnabled false minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
debuggable false 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 { androidExtensions {
experimental = true experimental = true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment