https://github.com/jjoe64/GraphView
Raw File
Tip revision: 047769ac3fbf06055fef3ab49ae515a0ec8b5322 authored by Jonas Gehring on 22 January 2020, 13:03:00 UTC
Merge pull request #654 from pm-coffee/master
Tip revision: 047769a
build.gradle
buildscript {
    repositories {
        mavenCentral()
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.3'
    }
}

wrapper {
    gradleVersion = '5.6'
}

apply plugin: 'com.android.library'


android {
    compileSdkVersion 27
    buildToolsVersion '28.0.3'

    defaultConfig {
        minSdkVersion 9
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
        }
    }
      lintOptions {
          abortOnError false
      }

}

dependencies {
    implementation 'androidx.core:core:1.0.0-beta01'
}


//this is used to generate .jar files and push to maven repo
// This is the actual solution, as in http://stackoverflow.com/a/19037807/1002054
task clearJar(type: Delete) {
    delete 'build/outputs/myCompiledLibrary.jar'
}

task makeJar(type: Copy) {
    from('build/intermediates/bundles/release/')
    into('build/outputs/')
    include('classes.jar')
    rename ('classes.jar', 'myCompiledLibrary.jar')
}

makeJar.dependsOn(clearJar, build)


apply from: './maven_push.gradle'

repositories {
    google()
    mavenCentral()
    jcenter()
}
back to top