Skip to content

Commit

Permalink
Added gradle wraper
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaGazman committed Mar 9, 2021
1 parent b8ec2d7 commit a9c3f73
Show file tree
Hide file tree
Showing 22 changed files with 82 additions and 48 deletions.
67 changes: 19 additions & 48 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,55 +1,26 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}

group = 'com.gazman.Signals'
version = '1.0'

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.gazman.Signals'
artifactId = 'final'
version = '1.0'
}
}
}
}

android {
compileSdkVersion 30

defaultConfig {
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '1.4.31'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
repositories {
google()
jcenter()
}
kotlinOptions {
jvmTarget = '1.8'
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

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

api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation 'junit:junit:4.13.2'
task clean(type: Delete) {
delete rootProject.buildDir
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Sat Oct 17 17:04:36 EDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
1 change: 1 addition & 0 deletions library/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
55 changes: 55 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}

group = 'com.gazman.Signals'
version = '1.0'

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.gazman.Signals'
artifactId = 'final'
version = '1.0'
}
}
}
}

android {
compileSdkVersion 30

defaultConfig {
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}

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 {

api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation 'junit:junit:4.13.2'
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ':library'

0 comments on commit a9c3f73

Please sign in to comment.