Skip to content
Permalink
Browse files

[ci skip]: Start commonizing some repetetive build logic

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
  • Loading branch information...
msfjarvis committed Oct 25, 2019
1 parent e969d13 commit c851571e33189c345329ea3934ad1af15edbe6fb
Showing with 20 additions and 40 deletions.
  1. +0 −11 app/build.gradle
  2. +20 −1 build.gradle
  3. +0 −14 crypto/build.gradle
  4. +0 −14 native/build.gradle
@@ -4,12 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.io.FileInputStream
import java.io.IOException
import java.util.Properties

plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
}
@@ -26,7 +22,6 @@ final def gitHash = { ->
}

android {
compileSdkVersion 29
dataBinding.enabled = true
if (System.getenv('DRONE') != 'true') {
android.applicationVariants.all { final variant ->
@@ -35,13 +30,8 @@ android {
}
}
}
buildToolsVersion = '29.0.2'
defaultConfig {
applicationId 'me.msfjarvis.viscerion'
minSdkVersion 21
targetSdkVersion 29
versionCode VersionConfiguration.versionCode
versionName VersionConfiguration.versionName
resConfigs 'de', 'en', 'fr', 'pt-rBR', 'ru'
}
compileOptions {
@@ -97,7 +87,6 @@ dependencies {
implementation Libs.databinding_adapters
implementation Libs.databinding_runtime
implementation Libs.fragment_ktx
implementation Libs.kotlin_stdlib_jdk8
implementation Libs.material
implementation Libs.barcode_kaiteki
implementation Libs.koin_android
@@ -12,7 +12,6 @@ buildscript {
dependencies {
classpath Libs.com_android_tools_build_gradle
classpath Libs.kotlin_gradle_plugin
// classpath 'com.diffplug.spotless:spotless-plugin-gradle:3.25.0'
}
}

@@ -30,6 +29,26 @@ subprojects {
jcenter()
maven { url 'https://jitpack.io' }
}
if (plugins.hasPlugin('kotlin-android')) {
dependencies {
implementation Libs.kotlin_stdlib_jdk8
}
}
if (it.name == 'app') {
apply plugin: 'com.android.application'
} else {
apply plugin: 'com.android.library'
}
android {
compileSdkVersion 29
buildToolsVersion = '29.0.2'
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode VersionConfiguration.versionCode
versionName VersionConfiguration.versionName
}
}
}

project(':app') {
@@ -3,21 +3,7 @@
* Copyright © 2018-2019 Harsh Shandilya <msfjarvis@gmail.com>. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
plugins {
id 'com.android.library'
}

android {
compileSdkVersion 29
buildToolsVersion '29.0.2'

defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName '1.0'
}

buildTypes {
release {
minifyEnabled = true
@@ -3,21 +3,7 @@
* Copyright © 2018-2019 Harsh Shandilya <msfjarvis@gmail.com>. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
plugins {
id 'com.android.library'
}

android {
compileSdkVersion 29
buildToolsVersion '29.0.2'

defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName '1.0'
}

buildTypes {
release {
externalNativeBuild {

0 comments on commit c851571

Please sign in to comment.
You can’t perform that action at this time.