mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Reformatted build.gradle
This commit is contained in:
parent
baf9944dc9
commit
b0cec7d768
202
build.gradle
202
build.gradle
@ -1,126 +1,126 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
ext.versions = [
|
ext.versions = [
|
||||||
kotlin: '1.5.10'
|
kotlin: '1.5.10'
|
||||||
]
|
]
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:' + versions.kotlin
|
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:' + versions.kotlin
|
||||||
classpath 'com.android.tools.build:gradle:4.2.1'
|
classpath 'com.android.tools.build:gradle:4.2.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
archivesBaseName = 'droidify'
|
archivesBaseName = 'droidify'
|
||||||
applicationId 'com.looker.droidify'
|
applicationId 'com.looker.droidify'
|
||||||
minSdkVersion 28
|
minSdkVersion 28
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 2
|
versionCode 2
|
||||||
versionName '0.2'
|
versionName '0.2'
|
||||||
|
|
||||||
def languages = [ 'en' ]
|
def languages = ['en']
|
||||||
buildConfigField 'String[]', 'LANGUAGES', '{ "' + languages.join('", "') + '" }'
|
buildConfigField 'String[]', 'LANGUAGES', '{ "' + languages.join('", "') + '" }'
|
||||||
resConfigs languages
|
resConfigs languages
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets.all {
|
|
||||||
def javaDir = it.java.srcDirs.find { it.name == 'java' }
|
|
||||||
it.java.srcDirs += new File(javaDir.parentFile, 'kotlin')
|
|
||||||
}
|
|
||||||
|
|
||||||
compileOptions {
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = compileOptions.sourceCompatibility.toString()
|
|
||||||
}
|
|
||||||
|
|
||||||
buildTypes {
|
|
||||||
debug {
|
|
||||||
minifyEnabled false
|
|
||||||
shrinkResources false
|
|
||||||
}
|
}
|
||||||
release {
|
|
||||||
minifyEnabled true
|
sourceSets.all {
|
||||||
shrinkResources false
|
def javaDir = it.java.srcDirs.find { it.name == 'java' }
|
||||||
|
it.java.srcDirs += new File(javaDir.parentFile, 'kotlin')
|
||||||
}
|
}
|
||||||
all {
|
|
||||||
crunchPngs false
|
compileOptions {
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
lintOptions {
|
kotlinOptions {
|
||||||
warning 'InvalidPackage'
|
jvmTarget = compileOptions.sourceCompatibility.toString()
|
||||||
ignore 'InvalidVectorPath'
|
}
|
||||||
}
|
|
||||||
|
|
||||||
packagingOptions {
|
buildTypes {
|
||||||
exclude '/DebugProbesKt.bin'
|
debug {
|
||||||
exclude '/kotlin/**.kotlin_builtins'
|
minifyEnabled false
|
||||||
exclude '/kotlin/**.kotlin_metadata'
|
shrinkResources false
|
||||||
exclude '/META-INF/**.kotlin_module'
|
}
|
||||||
exclude '/META-INF/**.pro'
|
release {
|
||||||
exclude '/META-INF/**.version'
|
minifyEnabled true
|
||||||
exclude '/okhttp3/internal/publicsuffix/*'
|
shrinkResources false
|
||||||
}
|
}
|
||||||
|
all {
|
||||||
def keystorePropertiesFile = rootProject.file('keystore.properties')
|
crunchPngs false
|
||||||
if (keystorePropertiesFile.exists()) {
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
|
||||||
def keystoreProperties = new Properties()
|
}
|
||||||
keystoreProperties.load(keystorePropertiesFile.newDataInputStream())
|
}
|
||||||
|
|
||||||
def signing = [
|
lintOptions {
|
||||||
storeFile: keystoreProperties['store.file'],
|
warning 'InvalidPackage'
|
||||||
storePassword: keystoreProperties['store.password'],
|
ignore 'InvalidVectorPath'
|
||||||
keyAlias: keystoreProperties['key.alias'],
|
}
|
||||||
keyPassword: keystoreProperties['key.password']
|
|
||||||
]
|
packagingOptions {
|
||||||
|
exclude '/DebugProbesKt.bin'
|
||||||
if (!signing.any { _, v -> v == null }) {
|
exclude '/kotlin/**.kotlin_builtins'
|
||||||
signingConfigs {
|
exclude '/kotlin/**.kotlin_metadata'
|
||||||
primary {
|
exclude '/META-INF/**.kotlin_module'
|
||||||
storeFile file(signing.storeFile)
|
exclude '/META-INF/**.pro'
|
||||||
storePassword signing.storePassword
|
exclude '/META-INF/**.version'
|
||||||
keyAlias signing.keyAlias
|
exclude '/okhttp3/internal/publicsuffix/*'
|
||||||
keyPassword signing.keyPassword
|
}
|
||||||
v2SigningEnabled false
|
|
||||||
|
def keystorePropertiesFile = rootProject.file('keystore.properties')
|
||||||
|
if (keystorePropertiesFile.exists()) {
|
||||||
|
def keystoreProperties = new Properties()
|
||||||
|
keystoreProperties.load(keystorePropertiesFile.newDataInputStream())
|
||||||
|
|
||||||
|
def signing = [
|
||||||
|
storeFile : keystoreProperties['store.file'],
|
||||||
|
storePassword: keystoreProperties['store.password'],
|
||||||
|
keyAlias : keystoreProperties['key.alias'],
|
||||||
|
keyPassword : keystoreProperties['key.password']
|
||||||
|
]
|
||||||
|
|
||||||
|
if (!signing.any { _, v -> v == null }) {
|
||||||
|
signingConfigs {
|
||||||
|
primary {
|
||||||
|
storeFile file(signing.storeFile)
|
||||||
|
storePassword signing.storePassword
|
||||||
|
keyAlias signing.keyAlias
|
||||||
|
keyPassword signing.keyPassword
|
||||||
|
v2SigningEnabled false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
debug.signingConfig signingConfigs.primary
|
||||||
|
release.signingConfig signingConfigs.primary
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
buildTypes {
|
|
||||||
debug.signingConfig signingConfigs.primary
|
|
||||||
release.signingConfig signingConfigs.primary
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:' + versions.kotlin
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:' + versions.kotlin
|
||||||
implementation 'androidx.fragment:fragment-ktx:1.3.4'
|
implementation 'androidx.fragment:fragment-ktx:1.3.4'
|
||||||
implementation 'androidx.viewpager2:viewpager2:1.0.0'
|
implementation 'androidx.viewpager2:viewpager2:1.0.0'
|
||||||
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
|
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
|
||||||
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2'
|
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2'
|
||||||
implementation 'io.reactivex.rxjava3:rxjava:3.0.4'
|
implementation 'io.reactivex.rxjava3:rxjava:3.0.4'
|
||||||
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
|
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
|
||||||
implementation 'com.fasterxml.jackson.core:jackson-core:2.12.1'
|
implementation 'com.fasterxml.jackson.core:jackson-core:2.12.1'
|
||||||
implementation 'com.squareup.picasso:picasso:2.71828'
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user