1 | buildscript {
|
2 | repositories {
|
3 | jcenter()
|
4 | google()
|
5 | }
|
6 | dependencies {
|
7 | classpath 'com.android.tools.build:gradle:3.3.2'
|
8 | classpath 'com.novoda:bintray-release:0.9.1'
|
9 | }
|
10 | }
|
11 |
|
12 | tasks.withType(Javadoc).all { enabled = false }
|
13 |
|
14 | apply plugin: 'com.android.library'
|
15 | apply plugin: 'com.novoda.bintray-release'
|
16 |
|
17 | android {
|
18 | compileSdkVersion 28
|
19 | defaultConfig {
|
20 | minSdkVersion 21
|
21 | targetSdkVersion 28
|
22 | versionCode 1
|
23 | versionName "1.0"
|
24 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
25 | }
|
26 | buildTypes {
|
27 | release {
|
28 | minifyEnabled false
|
29 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
30 | }
|
31 | }
|
32 | lintOptions {
|
33 | abortOnError false
|
34 | }
|
35 | }
|
36 |
|
37 | repositories {
|
38 | google()
|
39 | jcenter()
|
40 | mavenCentral()
|
41 | }
|
42 |
|
43 | dependencies {
|
44 | implementation fileTree(dir: 'libs', include: ['*.jar'])
|
45 | implementation 'com.android.support:appcompat-v7:28.0.0'
|
46 | implementation 'com.android.support:support-compat:28.0.0'
|
47 | implementation 'com.android.support:design:28.0.0'
|
48 | implementation 'com.android.support:customtabs:28.0.0'
|
49 | implementation 'com.google.firebase:firebase-messaging:18.0.0'
|
50 | testImplementation 'junit:junit:4.12'
|
51 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
52 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
53 | implementation 'org.apache.cordova:framework:7.0.0'
|
54 | }
|
55 |
|
56 | def version = System.getenv("BINTRAY_PKG_VERSION")
|
57 |
|
58 | publish {
|
59 | userOrg = 'ionic-team'
|
60 | repoName = 'capacitor'
|
61 | groupId = 'ionic-team'
|
62 | artifactId = 'capacitor-android'
|
63 | if (version != null) {
|
64 | publishVersion = System.getenv("BINTRAY_PKG_VERSION")
|
65 | } else {
|
66 | publishVersion = '0.0.0'
|
67 | }
|
68 | desc = 'Capacitor Android Runtime'
|
69 | website = 'https://github.com/ionic-team/capacitor'
|
70 | }
|
71 |
|
72 |
|