diff --git a/.gitignore b/.gitignore index 3543521..42afabf 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/build +/build \ No newline at end of file diff --git a/build.gradle b/build.gradle index 28044d2..b6ab8ae 100644 --- a/build.gradle +++ b/build.gradle @@ -1,37 +1,25 @@ -buildscript { - ext.build_gradle_version = '3.6.1' +apply plugin: 'com.android.application' - repositories { - maven { url 'https://maven.aliyun.com/repository/public/' } - maven { url 'https://maven.aliyun.com/repository/google/' } - maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' } - maven { url 'https://dl.bintray.com/ppartisan/maven/' } - maven { url "https://clojars.org/repo/" } - maven { url "https://jitpack.io" } - google() - mavenLocal() - mavenCentral() - } - dependencies { - classpath "com.android.tools.build:gradle:$build_gradle_version" - +android { + compileSdkVersion 29 + buildToolsVersion "29.0.3" + + defaultConfig { + applicationId "com.drjava.testapp" + minSdkVersion 21 + targetSdkVersion 29 + versionCode 1 + versionName "1.0" } - -} -allprojects { - repositories { - maven { url 'https://maven.aliyun.com/repository/public/' } - maven { url 'https://maven.aliyun.com/repository/google/' } - maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' } - maven { url 'https://dl.bintray.com/ppartisan/maven/' } - maven { url "https://clojars.org/repo/" } - maven { url "https://jitpack.io" } - mavenLocal() - mavenCentral() - google() + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } } } -task clean(type: Delete) { - delete rootProject.buildDir -} \ No newline at end of file +dependencies { + implementation fileTree(dir: "libs", include: ["*.jar"]) +} diff --git a/proguard-rules.pro b/proguard-rules.pro new file mode 100644 index 0000000..64b4a05 --- /dev/null +++ b/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file