UNPKG

3.89 kBPlain TextView Raw
1ext {
2 androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.1.0'
3 androidxCoreVersion = project.hasProperty('androidxCoreVersion') ? rootProject.ext.androidxCoreVersion : '1.2.0'
4 androidxMaterialVersion = project.hasProperty('androidxMaterialVersion') ? rootProject.ext.androidxMaterialVersion : '1.1.0-rc02'
5 androidxBrowserVersion = project.hasProperty('androidxBrowserVersion') ? rootProject.ext.androidxBrowserVersion : '1.2.0'
6 androidxLocalbroadcastmanagerVersion = project.hasProperty('androidxLocalbroadcastmanagerVersion') ? rootProject.ext.androidxLocalbroadcastmanagerVersion : '1.0.0'
7 androidxExifInterfaceVersion = project.hasProperty('androidxExifInterfaceVersion') ? rootProject.ext.androidxExifInterfaceVersion : '1.2.0'
8 firebaseMessagingVersion = project.hasProperty('firebaseMessagingVersion') ? rootProject.ext.firebaseMessagingVersion : '20.1.2'
9 playServicesLocationVersion = project.hasProperty('playServicesLocationVersion') ? rootProject.ext.playServicesLocationVersion : '17.0.0'
10 junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.12'
11 androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.1'
12 androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.2.0'
13 cordovaAndroidVersion = project.hasProperty('cordovaAndroidVersion') ? rootProject.ext.cordovaAndroidVersion : '7.0.0'
14}
15
16
17buildscript {
18 repositories {
19 google()
20 jcenter()
21 }
22 dependencies {
23 classpath 'com.android.tools.build:gradle:3.6.1'
24 }
25}
26
27tasks.withType(Javadoc).all { enabled = false }
28
29apply plugin: 'com.android.library'
30
31android {
32 compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 29
33 defaultConfig {
34 minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
35 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 29
36 versionCode 1
37 versionName "1.0"
38 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
39 }
40 buildTypes {
41 release {
42 minifyEnabled false
43 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
44 }
45 }
46 lintOptions {
47 abortOnError false
48 }
49 compileOptions {
50 sourceCompatibility JavaVersion.VERSION_1_8
51 targetCompatibility JavaVersion.VERSION_1_8
52 }
53}
54
55repositories {
56 google()
57 jcenter()
58 mavenCentral()
59}
60
61dependencies {
62 implementation fileTree(dir: 'libs', include: ['*.jar'])
63 implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
64 implementation "androidx.core:core:$androidxCoreVersion"
65 implementation "com.google.android.material:material:$androidxMaterialVersion"
66 implementation "androidx.browser:browser:$androidxBrowserVersion"
67 implementation "androidx.localbroadcastmanager:localbroadcastmanager:$androidxLocalbroadcastmanagerVersion"
68 implementation "androidx.exifinterface:exifinterface:$androidxExifInterfaceVersion"
69 implementation "com.google.firebase:firebase-messaging:$firebaseMessagingVersion"
70 implementation "com.google.android.gms:play-services-location:$playServicesLocationVersion"
71 testImplementation "junit:junit:$junitVersion"
72 androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
73 androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
74 implementation "org.apache.cordova:framework:$cordovaAndroidVersion"
75 testImplementation 'org.json:json:20140107'
76 testImplementation 'org.mockito:mockito-inline:2.25.1'
77}
78