@@ -67,8 +67,9 @@ class AndroidBuild extends JavaBuild {
67
67
static public String MIN_SDK_WATCHFACE ;
68
68
69
69
// Versions of all required dependencies
70
- static public String TARGET_SDK ;
71
- static public String TARGET_PLATFORM ;
70
+ static public String TARGET_SDK ;
71
+ static public String TARGET_WEAR_SDK_ARM ;
72
+ static public String TARGET_WEAR_SDK ;
72
73
static public String GRADLE_PLUGIN_VER ;
73
74
static public String APPCOMPAT_VER ;
74
75
static public String V4LEGACY_VER ;
@@ -1024,8 +1025,21 @@ static public void initVersions(File file) {
1024
1025
TARGET_SDK = defTargetSDK ;
1025
1026
Preferences .set ("android.sdk.target" , TARGET_SDK );
1026
1027
}
1027
- TARGET_PLATFORM = "android-" + TARGET_SDK ;
1028
-
1028
+
1029
+ TARGET_WEAR_SDK_ARM = Preferences .get ("android.sdk.target.wear_arm" );
1030
+ String defTargetWearSDKArm = props .getProperty ("android-platform-wear-arm" );
1031
+ if (TARGET_WEAR_SDK_ARM == null || PApplet .parseInt (TARGET_WEAR_SDK_ARM ) != PApplet .parseInt (defTargetWearSDKArm )) {
1032
+ TARGET_WEAR_SDK_ARM = defTargetWearSDKArm ;
1033
+ Preferences .set ("android.sdk.target.wear_arm" , TARGET_WEAR_SDK_ARM );
1034
+ }
1035
+
1036
+ TARGET_WEAR_SDK = Preferences .get ("android.sdk.target.wear" );
1037
+ String defTargetWearSDK = props .getProperty ("android-platform-wear" );
1038
+ if (TARGET_WEAR_SDK == null || PApplet .parseInt (TARGET_WEAR_SDK ) != PApplet .parseInt (defTargetWearSDK )) {
1039
+ TARGET_WEAR_SDK = defTargetWearSDK ;
1040
+ Preferences .set ("android.sdk.target.wear" , TARGET_WEAR_SDK );
1041
+ }
1042
+
1029
1043
APPCOMPAT_VER = Preferences .get ("android.sdk.appcompat" );
1030
1044
String defAppCompatVer = props .getProperty ("androidx.appcompat%appcompat" );
1031
1045
if (APPCOMPAT_VER == null || !versionCheck (APPCOMPAT_VER , defAppCompatVer )) {
0 commit comments