pastychang | b5345f3 | 2019-02-26 17:38:27 +0800 | [diff] [blame] | 1 | /** |
| 2 | * Include this gradle file if you are building against this as a standalone gradle library project, |
| 3 | * as opposed to building it as part of the git-tree. This is typically the file you want to include |
| 4 | * if you create a new project in Android Studio. |
| 5 | * |
| 6 | * For example, you can include the following in your settings.gradle file: |
| 7 | * include ':setupcompat' |
| 8 | * project(':setupcompat').projectDir = new File(PATH_TO_THIS_DIRECTORY) |
| 9 | * |
| 10 | * And then you can include the :setupcompat project as one of your dependencies |
| 11 | * dependencies { |
| 12 | * implementation project(path: ':setupcompat') |
| 13 | * } |
| 14 | */ |
| 15 | |
| 16 | apply plugin: 'com.android.library' |
| 17 | |
| 18 | android { |
Hunter Knepshield | 5c8cae4 | 2019-05-09 17:36:57 -0700 | [diff] [blame] | 19 | // Not specifying compileSdkVersion here so clients can specify it; must be at least Q |
pastychang | b5345f3 | 2019-02-26 17:38:27 +0800 | [diff] [blame] | 20 | |
| 21 | defaultConfig { |
| 22 | minSdkVersion 14 |
| 23 | targetSdkVersion 28 |
| 24 | } |
| 25 | |
| 26 | buildTypes { |
| 27 | release { |
| 28 | minifyEnabled false |
| 29 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.flags' |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | sourceSets.main { |
| 34 | manifest.srcFile 'AndroidManifest.xml' |
Setup Wizard Team | 1ed3073 | 2019-03-14 10:00:10 +0800 | [diff] [blame] | 35 | java.srcDirs = ['main/java', 'partnerconfig/java'] |
pastychang | b5345f3 | 2019-02-26 17:38:27 +0800 | [diff] [blame] | 36 | aidl.srcDirs = ['main/aidl'] |
| 37 | res.srcDirs = ['main/res'] |
| 38 | } |
| 39 | |
| 40 | compileOptions { |
| 41 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 42 | targetCompatibility JavaVersion.VERSION_1_8 |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | dependencies { |
| 47 | implementation "androidx.annotation:annotation:1.0.0" |
| 48 | } |