summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpastychang <pastychang@google.com>2019-02-26 17:38:27 +0800
committerpastychang <pastychang@google.com>2019-03-07 12:15:47 +0800
commitb5345f3d3b611fcf3513c613d1663f424414a12f (patch)
tree7b8a037f2d9ac2a35fa2220c1aca6bf79878b58e
parentf948fc0b86c8706cc7dddecfcd5cb34d17f38171 (diff)
downloadsetupcompat-b5345f3d3b611fcf3513c613d1663f424414a12f.tar.gz
Add gradle build file for setupcompat
Test: Manual Bug: 125027526 Change-Id: I86b86da958888527c12dd527078e568d0774d2a6
-rw-r--r--AndroidManifest.xml7
-rw-r--r--build.gradle48
2 files changed, 49 insertions, 6 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 473e33e..c8081c1 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -15,10 +15,5 @@
limitations under the License.
-->
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.google.android.setupcompat">
+<manifest package="com.google.android.setupcompat"/>
- <uses-sdk
- android:minSdkVersion="14"
- android:targetSdkVersion="28" />
-</manifest>
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..508f3c5
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,48 @@
+/**
+ * Include this gradle file if you are building against this as a standalone gradle library project,
+ * as opposed to building it as part of the git-tree. This is typically the file you want to include
+ * if you create a new project in Android Studio.
+ *
+ * For example, you can include the following in your settings.gradle file:
+ * include ':setupcompat'
+ * project(':setupcompat').projectDir = new File(PATH_TO_THIS_DIRECTORY)
+ *
+ * And then you can include the :setupcompat project as one of your dependencies
+ * dependencies {
+ * implementation project(path: ':setupcompat')
+ * }
+ */
+
+apply plugin: 'com.android.library'
+
+android {
+ compileSdkVersion 28
+
+ defaultConfig {
+ minSdkVersion 14
+ targetSdkVersion 28
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.flags'
+ }
+ }
+
+ sourceSets.main {
+ manifest.srcFile 'AndroidManifest.xml'
+ java.srcDirs = ['main/java']
+ aidl.srcDirs = ['main/aidl']
+ res.srcDirs = ['main/res']
+ }
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+}
+
+dependencies {
+ implementation "androidx.annotation:annotation:1.0.0"
+}