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. Besides, SetupDesign library is dependent with 5 * SetupCompat library, you should also include setupcompat library in project. 6 * 7 * For example, you can include the following in your settings.gradle file: 8 * include ':setupdesign' 9 * project(':setupdesign').projectDir = new File(PATH_TO_THIS_DIRECTORY) 10 * include ':setupcompat' 11 * project(':setupcompat').projectDir = new File(PATH_TO_THIS_DIRECTORY) 12 * 13 * And then you can include the :setupdesign project as one of your dependencies 14 * dependencies { 15 * implementation project(path: ':setupdesign') 16 * } 17 */ 18 19apply plugin: 'com.android.library' 20 21android { 22 compileSdkVersion 28 23 24 defaultConfig { 25 minSdkVersion 14 26 targetSdkVersion 28 27 } 28 29 buildTypes { 30 release { 31 minifyEnabled false 32 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.flags' 33 } 34 } 35 36 sourceSets { 37 main { 38 manifest.srcFile 'main/AndroidManifest.xml' 39 java.srcDirs = ['main/src'] 40 res.srcDirs = ['main/res', 'strings/res'] 41 } 42 } 43} 44 45dependencies { 46 implementation project(':setupcompat') 47 implementation "androidx.annotation:annotation:1.0.0" 48 implementation "androidx.recyclerview:recyclerview:1.0.0" 49 implementation 'androidx.appcompat:appcompat:1.0.2' 50} 51