Skip to content

Commit

Permalink
Revert "Migration build.gradle to kts"
Browse files Browse the repository at this point in the history
This reverts commit 3f9f927.
  • Loading branch information
Rakhimulin Damir committed Jan 26, 2021
1 parent 9912ae1 commit 4ed2112
Show file tree
Hide file tree
Showing 19 changed files with 134 additions and 172 deletions.
25 changes: 25 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
buildscript {
ext.kotlin_version = "1.4.10"
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0-alpha04'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21"
}
}

allprojects {
repositories {
mavenCentral()
google()
maven { url "https://jitpack.io" }
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
24 changes: 0 additions & 24 deletions build.gradle.kts

This file was deleted.

7 changes: 0 additions & 7 deletions buildSrc/build.gradle.kts

This file was deleted.

1 change: 0 additions & 1 deletion buildSrc/build/kotlin/buildSrcjar-classes.txt

This file was deleted.

Binary file removed buildSrc/build/libs/buildSrc.jar
Binary file not shown.

This file was deleted.

Empty file.
8 changes: 0 additions & 8 deletions buildSrc/build/source-roots/buildSrc/source-roots.txt

This file was deleted.

2 changes: 0 additions & 2 deletions buildSrc/build/tmp/jar/MANIFEST.MF

This file was deleted.

29 changes: 0 additions & 29 deletions buildSrc/src/main/kotlin/Dependencies.kt

This file was deleted.

4 changes: 0 additions & 4 deletions buildSrc/src/main/kotlin/Modules.kt

This file was deleted.

61 changes: 61 additions & 0 deletions rekukler/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}

group = 'com.github.Rere-kt'

android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

defaultConfig {
minSdkVersion 23
targetSdkVersion 30
versionCode 1
versionName "1.0"
consumerProguardFiles "consumer-rules.pro"
}

buildFeatures {
viewBinding true
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0'

}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.github.Rere-kt'
artifactId = 'rekukler'
version = '1.0'
}
}
}
}
46 changes: 0 additions & 46 deletions rekukler/build.gradle.kts

This file was deleted.

2 changes: 1 addition & 1 deletion rekukler/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.kts.
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
Expand Down
43 changes: 43 additions & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
}

android {
compileSdkVersion 30
buildToolsVersion "30.0.2"

defaultConfig {
applicationId "com.rerekt.sample"
minSdkVersion 23
targetSdkVersion 30
versionCode 1
versionName "1.0"
}

buildFeatures {
viewBinding true
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {
implementation project(":rekukler")
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.1'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
}
45 changes: 0 additions & 45 deletions sample/build.gradle.kts

This file was deleted.

2 changes: 1 addition & 1 deletion sample/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.kts.kts.
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rootProject.name = "Rekukler"
include ':sample'
include ':rekukler'
3 changes: 0 additions & 3 deletions settings.gradle.kts

This file was deleted.

0 comments on commit 4ed2112

Please sign in to comment.