]> hydra-www.ietfng.org Git - acmetensortoys-ctfws-android/commitdiff
Bump Android tools versions, disable wear apk
authorNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sat, 27 Oct 2018 03:46:10 +0000 (04:46 +0100)
committerNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sat, 27 Oct 2018 14:11:49 +0000 (15:11 +0100)
build.gradle
mobile/build.gradle
mobile/src/main/AndroidManifest.xml
wear/build.gradle

index c33a638bda0d9801bbe8ec3c2de2ddf2e9e2e83f..ae9fbafb932ff37984723a7fd7af09f51381a755 100644 (file)
@@ -3,9 +3,10 @@
 buildscript {
     repositories {
         jcenter()
+        google()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:3.0.0'
+        classpath 'com.android.tools.build:gradle:3.2.1'
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
@@ -15,6 +16,7 @@ buildscript {
 allprojects {
     repositories {
         jcenter()
+        google()
     }
 }
 
index 249bcc067ae9ec1a50a2b16d8af627b8bcb513dd..07ac5451e9f5fef3f49c25d7dd3f4eef43402d9f 100644 (file)
@@ -1,12 +1,11 @@
 apply plugin: 'com.android.application'
 
 android {
-    compileSdkVersion 25
-    buildToolsVersion '26.0.2'
+    compileSdkVersion 28
     defaultConfig {
         applicationId "com.acmetensortoys.ctfwstimer"
         minSdkVersion 16
-        targetSdkVersion 25
+        targetSdkVersion 28
         versionCode 8
         versionName "1.0.2"
         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -45,24 +44,26 @@ repositories {
 }
 
 dependencies {
-    compile fileTree(dir: 'libs', include: ['*.jar'])
-    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+    api fileTree(dir: 'libs', include: ['*.jar'])
+    androidTestImplementation ('com.android.support.test.espresso:espresso-core:2.2.2', {
         exclude group: 'com.android.support', module: 'support-annotations'
     })
-    wearApp project(':wear')
 
-    compile project(":lib")
+    api project(":lib")
 
-    compile 'com.android.support:appcompat-v7:25.3.1'
-    compile 'com.android.support:support-v4:25.3.1'
+    api 'com.android.support:appcompat-v7:28.0.0'
+    api 'com.android.support:support-v4:28.0.0'
+    implementation 'com.android.support:support-annotations:28.0.0'
 
-    // Needed for wear data synchronization; blech
-    playCompile 'com.google.android.gms:play-services-wearable:11.0.4'
+    // Nah.
+    // wearApp project(':wear')
+    //// Needed for wear data synchronization; blech
+    // playApi 'com.google.android.gms:play-services-wearable:16.0.1'
 
-    compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0'
-    compile('org.eclipse.paho:org.eclipse.paho.android.service:1.1.1') {
+    api 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0'
+    api('org.eclipse.paho:org.eclipse.paho.android.service:1.1.1') {
         exclude module: 'support-v4'
     }
 
-    testCompile 'junit:junit:4.12'
+    testImplementation 'junit:junit:4.12'
 }
index 19754ef6620b0ce5cd6e1c3bb950f6f7ca27844c..b0d53bdaefad249f4712a19c63aca2e263e32d1c 100644 (file)
@@ -4,6 +4,7 @@
 
     <!-- Required for Paho MQTT client -->
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
     <uses-permission android:name="android.permission.INTERNET" />
     <uses-permission android:name="android.permission.WAKE_LOCK" />
 
index 7634680aa76b822798ac497b441e1af2fb8c4e12..685837a9e3bf3c97cb6dbe7a044801d906afa8ee 100644 (file)
@@ -1,12 +1,11 @@
 apply plugin: 'com.android.application'
 
 android {
-    compileSdkVersion 25
-    buildToolsVersion '26.0.2'
+    compileSdkVersion 28
     defaultConfig {
         applicationId "com.acmetensortoys.ctfwstimer"
         minSdkVersion 21
-        targetSdkVersion 25
+        targetSdkVersion 28
         versionCode 1
         versionName "1.0"
     }
@@ -19,8 +18,11 @@ android {
 }
 
 dependencies {
-    compile fileTree(dir: 'libs', include: ['*.jar'])
-    provided 'com.google.android.wearable:wearable:2.0.0'
-    compile 'com.google.android.support:wearable:2.0.0'
-    compile 'com.google.android.gms:play-services-wearable:11.0.4'
+    api 'com.android.support.constraint:constraint-layout:1.1.3'
+    api fileTree(dir: 'libs', include: ['*.jar'])
+
+    api project(":lib")
+
+    compileOnly 'com.google.android.wearable:wearable:2.3.0'
+    api 'com.google.android.support:wearable:2.3.0'
 }