Creato script build_all
This commit is contained in:
parent
b98530358d
commit
487bcae59f
BIN
.idea/caches/build_file_checksums.ser
generated
BIN
.idea/caches/build_file_checksums.ser
generated
Binary file not shown.
294
app/build.gradle
294
app/build.gradle
@ -1,175 +1,153 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
maven { url 'https://maven.fabric.io/public' }
|
maven { url 'https://maven.fabric.io/public' }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'io.fabric.tools:gradle:1.27.0'
|
classpath 'io.fabric.tools:gradle:1.27.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'com.google.firebase.firebase-perf'
|
apply plugin: 'com.google.firebase.firebase-perf'
|
||||||
apply plugin: 'io.fabric'
|
apply plugin: 'io.fabric'
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
apply plugin: 'kotlin-android-extensions'
|
apply plugin: 'kotlin-android-extensions'
|
||||||
apply plugin: 'com.google.gms.google-services'
|
apply plugin: 'com.google.gms.google-services'
|
||||||
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
def appVersionCode = 35
|
def appVersionCode = 35
|
||||||
def appVersionName = '1.0.32'
|
def appVersionName = '1.0.32'
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
keyAlias 'wms key'
|
keyAlias 'wms key'
|
||||||
keyPassword 'inpmiy'
|
keyPassword 'inpmiy'
|
||||||
storeFile file('Integry.jks')
|
storeFile file('Integry.jks')
|
||||||
storePassword 'inpmiy'
|
storePassword 'inpmiy'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
applicationVariants.all { variant ->
|
applicationVariants.all { variant ->
|
||||||
variant.outputs.all { output ->
|
variant.outputs.all { output ->
|
||||||
output.outputFileName = "android-release_v2.apk"
|
output.outputFileName = "android-release_v2.apk"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
compileSdkVersion 28
|
compileSdkVersion 28
|
||||||
buildToolsVersion '28.0.3'
|
buildToolsVersion '28.0.3'
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "it.integry.integrywmsnative"
|
applicationId "it.integry.integrywmsnative"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
versionCode appVersionCode
|
versionCode appVersionCode
|
||||||
versionName appVersionName
|
versionName appVersionName
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataBinding {
|
dataBinding {
|
||||||
enabled = true
|
enabled = true
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
targetCompatibility 1.8
|
targetCompatibility 1.8
|
||||||
sourceCompatibility 1.8
|
sourceCompatibility 1.8
|
||||||
}
|
}
|
||||||
productFlavors {
|
productFlavors {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
build {
|
||||||
|
doLast {
|
||||||
|
delete "$projectDir/build/outputs/apk/release/version_v2.txt"
|
||||||
|
file("$projectDir/build/outputs/apk/release/version_v2.txt").text = appVersionCode + '\n' + appVersionName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tasks.register("hello") { a ->
|
gradle.projectsEvaluated {
|
||||||
doLast {
|
tasks.withType(JavaCompile.class) {
|
||||||
println "${a}"
|
options.compilerArgs << "-Xmaxerrs" << "10000"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def packages = ['vgalimenti', 'biolevante', 'ime']
|
lintOptions {
|
||||||
|
abortOnError false
|
||||||
|
}
|
||||||
|
|
||||||
dynamicFeatures.each { item -> dynamicFeatures.remove(item) }
|
dynamicFeatures = [":dynamic__base"]
|
||||||
|
|
||||||
packages.each { config ->
|
|
||||||
println ":dynamic_${config}"
|
|
||||||
|
|
||||||
dynamicFeatures.add(":dynamic_${config}")
|
|
||||||
|
|
||||||
project(':app').tasks.build.execute()
|
|
||||||
|
|
||||||
dynamicFeatures.remove(":dynamic_${config}")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
build {
|
}
|
||||||
doLast {
|
|
||||||
delete "$projectDir/build/outputs/apk/release/version_v2.txt"
|
|
||||||
file("$projectDir/build/outputs/apk/release/version_v2.txt").text = appVersionCode + '\n' + appVersionName
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gradle.projectsEvaluated {
|
dependencies {
|
||||||
tasks.withType(JavaCompile.class) {
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
options.compilerArgs << "-Xmaxerrs" << "10000"
|
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.1', {
|
||||||
}
|
exclude group: 'com.android.support', module: 'support-annotations'
|
||||||
}
|
})
|
||||||
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||||
lintOptions {
|
implementation 'com.orhanobut:logger:2.2.0'
|
||||||
abortOnError false
|
implementation 'com.google.firebase:firebase-core:16.0.7'
|
||||||
}
|
implementation 'com.google.firebase:firebase-crash:16.2.1'
|
||||||
|
implementation 'com.google.firebase:firebase-perf:16.2.3'
|
||||||
dynamicFeatures = [":dynamic__base"]
|
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.8'
|
||||||
|
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
|
||||||
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||||
}
|
implementation 'com.google.android.material:material:1.1.0-alpha03'
|
||||||
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
|
||||||
dependencies {
|
implementation 'androidx.cardview:cardview:1.0.0'
|
||||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha02'
|
||||||
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.1', {
|
implementation 'androidx.preference:preference:1.1.0-alpha02'
|
||||||
exclude group: 'com.android.support', module: 'support-annotations'
|
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
|
||||||
})
|
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
implementation 'com.squareup.retrofit2:converter-gson:2.0.0'
|
||||||
implementation 'com.orhanobut:logger:2.2.0'
|
implementation 'com.annimon:stream:1.2.1'
|
||||||
implementation 'com.google.firebase:firebase-core:16.0.7'
|
implementation 'androidx.lifecycle:lifecycle-runtime:2.0.0'
|
||||||
implementation 'com.google.firebase:firebase-crash:16.2.1'
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
|
||||||
implementation 'com.google.firebase:firebase-perf:16.2.3'
|
implementation 'androidx.lifecycle:lifecycle-common-java8:2.0.0'
|
||||||
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.8'
|
kapt "androidx.lifecycle:lifecycle-compiler:2.0.0"
|
||||||
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
|
implementation 'com.danielpuiu:ghostfish:2.0.0'
|
||||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
annotationProcessor "com.danielpuiu:ghostfish-compiler:2.0.0"
|
||||||
implementation 'com.google.android.material:material:1.1.0-alpha03'
|
//MVVM
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
|
||||||
implementation 'androidx.cardview:cardview:1.0.0'
|
annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.0.0"
|
||||||
implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha02'
|
implementation 'com.jakewharton.rxbinding2:rxbinding:2.1.1'
|
||||||
implementation 'androidx.preference:preference:1.1.0-alpha02'
|
implementation 'com.jakewharton.rxbinding2:rxbinding-support-v4:2.1.1'
|
||||||
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
|
implementation 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.1.1'
|
||||||
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
|
implementation 'com.jakewharton.rxbinding2:rxbinding-design:2.1.1'
|
||||||
implementation 'com.squareup.retrofit2:converter-gson:2.0.0'
|
implementation 'com.jakewharton.rxbinding2:rxbinding-recyclerview-v7:2.1.1'
|
||||||
implementation 'com.annimon:stream:1.2.1'
|
implementation 'com.jakewharton:butterknife:10.0.0'
|
||||||
implementation 'androidx.lifecycle:lifecycle-runtime:2.0.0'
|
annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
|
||||||
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
|
implementation 'br.com.zbra:android-linq:1.1.0'
|
||||||
implementation 'androidx.lifecycle:lifecycle-common-java8:2.0.0'
|
//FAB
|
||||||
kapt "androidx.lifecycle:lifecycle-compiler:2.0.0"
|
implementation 'com.github.clans:fab:1.6.4'
|
||||||
implementation 'com.danielpuiu:ghostfish:2.0.0'
|
//CUSTOM VIEWS
|
||||||
annotationProcessor "com.danielpuiu:ghostfish-compiler:2.0.0"
|
implementation 'com.github.NaimishTrivedi:FBToast:1.0'
|
||||||
//MVVM
|
implementation 'de.hdodenhof:circleimageview:2.2.0'
|
||||||
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
|
implementation 'net.cachapa.expandablelayout:expandablelayout:2.9.2'
|
||||||
annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.0.0"
|
implementation 'com.github.frankiesardo:linearlistview:1.0.1@aar'
|
||||||
implementation 'com.jakewharton.rxbinding2:rxbinding:2.1.1'
|
implementation 'com.github.andrefrsousa:SuperBottomSheet:1.2.1@aar'
|
||||||
implementation 'com.jakewharton.rxbinding2:rxbinding-support-v4:2.1.1'
|
implementation 'com.fede987:status-bar-alert:1.0.1'
|
||||||
implementation 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.1.1'
|
implementation 'com.fxn769:stash:1.2'
|
||||||
implementation 'com.jakewharton.rxbinding2:rxbinding-design:2.1.1'
|
testImplementation 'junit:junit:4.12'
|
||||||
implementation 'com.jakewharton.rxbinding2:rxbinding-recyclerview-v7:2.1.1'
|
implementation project(':waterfall_toolbar')
|
||||||
implementation 'com.jakewharton:butterknife:10.0.0'
|
implementation 'com.mikhaellopez:lazydatepicker:1.0.0'
|
||||||
annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
|
implementation 'com.github.demoNo:AutoScrollViewPager:v1.0.2'
|
||||||
implementation 'br.com.zbra:android-linq:1.1.0'
|
//AppUpdate
|
||||||
//FAB
|
implementation 'com.github.javiersantos:AppUpdater:2.7'
|
||||||
implementation 'com.github.clans:fab:1.6.4'
|
//Barcode
|
||||||
//CUSTOM VIEWS
|
implementation project(':pointmobilescannerlibrary')
|
||||||
implementation 'com.github.NaimishTrivedi:FBToast:1.0'
|
implementation project(path: ':barcode_base_library')
|
||||||
implementation 'de.hdodenhof:circleimageview:2.2.0'
|
}
|
||||||
implementation 'net.cachapa.expandablelayout:expandablelayout:2.9.2'
|
repositories {
|
||||||
implementation 'com.github.frankiesardo:linearlistview:1.0.1@aar'
|
mavenCentral()
|
||||||
implementation 'com.github.andrefrsousa:SuperBottomSheet:1.2.1@aar'
|
maven { url 'https://maven.fabric.io/public' }
|
||||||
implementation 'com.fede987:status-bar-alert:1.0.1'
|
}
|
||||||
implementation 'com.fxn769:stash:1.2'
|
|
||||||
testImplementation 'junit:junit:4.12'
|
|
||||||
implementation project(':waterfall_toolbar')
|
|
||||||
implementation 'com.mikhaellopez:lazydatepicker:1.0.0'
|
|
||||||
implementation 'com.github.demoNo:AutoScrollViewPager:v1.0.2'
|
|
||||||
//AppUpdate
|
|
||||||
implementation 'com.github.javiersantos:AppUpdater:2.7'
|
|
||||||
//Barcode
|
|
||||||
implementation project(':pointmobilescannerlibrary')
|
|
||||||
implementation project(path: ':barcode_base_library')
|
|
||||||
}
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
maven { url 'https://maven.fabric.io/public' }
|
|
||||||
}
|
|
||||||
|
|||||||
1
build_all.bat
Normal file
1
build_all.bat
Normal file
@ -0,0 +1 @@
|
|||||||
|
build_azienda.bat vgalimenti
|
||||||
@ -1,7 +1,6 @@
|
|||||||
@echo off
|
rem @echo off
|
||||||
|
|
||||||
SET nome_azienda=vgalimenti
|
|
||||||
|
|
||||||
|
SET nome_azienda=%1
|
||||||
|
|
||||||
setlocal enabledelayedexpansion
|
setlocal enabledelayedexpansion
|
||||||
set INTEXTFILE=build.gradle
|
set INTEXTFILE=build.gradle
|
||||||
@ -10,6 +9,8 @@ set SEARCHTEXT=:dynamic__base
|
|||||||
set REPLACETEXT=:dynamic_%nome_azienda%
|
set REPLACETEXT=:dynamic_%nome_azienda%
|
||||||
set OUTPUTLINE=
|
set OUTPUTLINE=
|
||||||
|
|
||||||
|
cd app
|
||||||
|
|
||||||
for /f "tokens=1,* delims=¶" %%A in ( '"findstr /n ^^ %INTEXTFILE%"') do (
|
for /f "tokens=1,* delims=¶" %%A in ( '"findstr /n ^^ %INTEXTFILE%"') do (
|
||||||
SET string=%%A
|
SET string=%%A
|
||||||
for /f "delims=: tokens=1,*" %%a in ("!string!") do set "string=%%b"
|
for /f "delims=: tokens=1,*" %%a in ("!string!") do set "string=%%b"
|
||||||
@ -23,10 +24,11 @@ for /f "tokens=1,* delims=
|
|||||||
del %INTEXTFILE%
|
del %INTEXTFILE%
|
||||||
rename %OUTTEXTFILE% %INTEXTFILE%
|
rename %OUTTEXTFILE% %INTEXTFILE%
|
||||||
|
|
||||||
pause
|
cd ..
|
||||||
|
|
||||||
gradle build
|
call gradlew app:build --stacktrace
|
||||||
|
|
||||||
|
cd app
|
||||||
|
|
||||||
for /f "tokens=1,* delims=¶" %%A in ( '"findstr /n ^^ %INTEXTFILE%"') do (
|
for /f "tokens=1,* delims=¶" %%A in ( '"findstr /n ^^ %INTEXTFILE%"') do (
|
||||||
SET string=%%A
|
SET string=%%A
|
||||||
@ -40,3 +42,10 @@ for /f "tokens=1,* delims=
|
|||||||
)
|
)
|
||||||
del %INTEXTFILE%
|
del %INTEXTFILE%
|
||||||
rename %OUTTEXTFILE% %INTEXTFILE%
|
rename %OUTTEXTFILE% %INTEXTFILE%
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
mkdir app\build\outputs\apk\release\%nome_azienda%
|
||||||
|
|
||||||
|
move app\build\outputs\apk\release\*.apk app\build\outputs\apk\release\%nome_azienda%\
|
||||||
|
move app\build\outputs\apk\release\*.txt app\build\outputs\apk\release\%nome_azienda%\
|
||||||
Loading…
x
Reference in New Issue
Block a user