Skip to content
This repository was archived by the owner on Jan 1, 2023. It is now read-only.

Commit 4df3ef6

Browse files
Change to unbundled wear1 release
1 parent 7c0f8f3 commit 4df3ef6

File tree

4 files changed

+31
-33
lines changed

4 files changed

+31
-33
lines changed

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,15 @@ allprojects {
1717
repositories {
1818
jcenter()
1919
google()
20+
flatDir {
21+
dirs 'libs'
22+
}
2023
}
2124
}
25+
26+
ext {
27+
supportVersion = "27.0.2"
28+
playServicesVersion = "11.8.0"
29+
compileSdkVersion = 26
30+
buildToolsVersion = "26.0.2"
31+
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
# org.gradle.parallel=true
1919

2020
# Always increase version code by 2 since we now package wear seperately and release multi apk
21-
VERSION_NAME=2.0
22-
VERSION_CODE=10
21+
VERSION_NAME=2.1
22+
VERSION_CODE=12

mobile/build.gradle

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ apply plugin: 'com.android.application'
33
project.archivesBaseName = "TTW";
44

55
android {
6-
compileSdkVersion 27
7-
buildToolsVersion '26.0.2'
6+
compileSdkVersion rootProject.ext.compileSdkVersion
7+
buildToolsVersion rootProject.ext.buildToolsVersion
88

99
defaultConfig {
1010
applicationId "org.codechimp.ttw"
1111
minSdkVersion 19
12-
targetSdkVersion 27
12+
targetSdkVersion 26
1313
versionName project.VERSION_NAME
1414
versionCode Integer.parseInt(project.VERSION_CODE)
15+
wearAppUnbundled true
1516
}
1617

1718
signingConfigs { release }
@@ -31,24 +32,24 @@ android {
3132
}
3233
}
3334

35+
3436
configurations {
35-
wear1Release
37+
wear1ReleaseWearApp
3638
}
3739

3840
dependencies {
3941
implementation fileTree(dir: 'libs', include: ['*.jar'])
4042
implementation project(':locale-api')
4143

42-
wear1Release project(path: ':wear', configuration: 'wear1Release')
43-
44-
implementation 'com.android.support:appcompat-v7:27.0.2'
45-
implementation 'com.android.support:recyclerview-v7:27.0.2'
46-
implementation "com.android.support:percent:27.0.2"
47-
implementation 'com.google.android.gms:play-services-wearable:11.8.0'
48-
implementation 'com.google.android.support:wearable:2.1.0'
49-
implementation 'com.android.support:support-v4:27.0.2'
50-
44+
implementation "com.google.android.gms:play-services-wearable:$rootProject.ext.playServicesVersion"
45+
implementation "com.android.support:appcompat-v7:$rootProject.ext.supportVersion"
46+
implementation "com.android.support:recyclerview-v7:$rootProject.ext.supportVersion"
47+
implementation "com.android.support:percent:$rootProject.ext.supportVersion"
48+
implementation "com.android.support:preference-v14:$rootProject.ext.supportVersion"
49+
implementation "com.android.support:design:$rootProject.ext.supportVersion"
50+
implementation "com.android.support:support-v4:$rootProject.ext.supportVersion"
5151
provided 'com.google.android.wearable:wearable:2.1.0'
52+
implementation 'com.google.android.support:wearable:2.1.0'
5253
}
5354

5455
// Signing properties goes in project root (NOT app)

wear/build.gradle

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ android {
77
// phone module's build.gradle file
88
publishNonDefault true
99

10-
compileSdkVersion 27
11-
buildToolsVersion '26.0.2'
10+
compileSdkVersion rootProject.ext.compileSdkVersion
11+
buildToolsVersion rootProject.ext.buildToolsVersion
1212

1313
defaultConfig {
1414
applicationId "org.codechimp.ttw"
1515
minSdkVersion 23
16-
targetSdkVersion 27
16+
targetSdkVersion 26
1717
versionName project.VERSION_NAME
1818
versionCode Integer.parseInt(project.VERSION_CODE) + 1
1919
}
@@ -28,29 +28,16 @@ android {
2828
}
2929
}
3030

31-
flavorDimensions "wear"
32-
33-
productFlavors {
34-
wear1 {
35-
dimension "wear"
36-
// Use the defaultConfig value
37-
}
38-
wear2 {
39-
dimension "wear"
40-
minSdkVersion 24
41-
}
42-
}
43-
4431
android.applicationVariants.all { variant ->
4532
variant.outputs.all {
46-
outputFileName = "TTW-${variant.name}-${project.VERSION_NAME}.apk"
33+
outputFileName = "TTW-Wear-${variant.name}-${project.VERSION_NAME}.apk"
4734
}
4835
}
4936
}
5037

5138
dependencies {
5239
implementation fileTree(dir: 'libs', include: ['*.jar'])
53-
implementation 'com.google.android.gms:play-services-wearable:11.6.0'
40+
implementation "com.google.android.gms:play-services-wearable:$rootProject.ext.playServicesVersion"
5441

5542
provided 'com.google.android.wearable:wearable:2.1.0'
5643
}

0 commit comments

Comments
 (0)