Skip to content

Commit ccd1ec0

Browse files
committed
updated debug projects to use SDK 33 and built-in google-vr libs
1 parent 9da4d5e commit ccd1ec0

File tree

25 files changed

+89
-56
lines changed

25 files changed

+89
-56
lines changed

debug/apps/arscene/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 29
4+
compileSdkVersion 33
55
defaultConfig {
66
applicationId "processing.tests.arscene"
77
minSdkVersion 23
8-
targetSdkVersion 29
8+
targetSdkVersion 33
99
versionCode 1
1010
versionName "1.0"
1111
}
@@ -21,13 +21,14 @@ android {
2121
sourceCompatibility JavaVersion.VERSION_1_8
2222
targetCompatibility JavaVersion.VERSION_1_8
2323
}
24+
namespace 'arscene'
2425
}
2526

2627
dependencies {
2728
implementation fileTree(include: ['*.jar'], dir: 'libs')
28-
testImplementation 'junit:junit:4.13'
29+
testImplementation 'junit:junit:4.13.2'
2930
implementation project(':libs:processing-core')
3031
implementation project(':libs:processing-ar')
31-
implementation 'androidx.appcompat:appcompat:1.2.0'
32-
implementation 'com.google.ar:core:1.22.0'
32+
implementation 'androidx.appcompat:appcompat:1.6.0'
33+
implementation 'com.google.ar:core:1.35.0'
3334
}

debug/apps/arscene/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
44
android:versionCode="1"
5-
android:versionName="1.0"
6-
package="arscene">
5+
android:versionName="1.0">
76
<uses-permission android:name="android.permission.CAMERA"/>
87
<uses-feature android:name="android.hardware.camera.ar" android:required="true"/>
98
<uses-feature android:glEsVersion="0x00020000" android:required="true"/>

debug/apps/arscene/src/main/java/arscene/MainActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ protected void onResume() {
4646

4747
@Override
4848
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
49+
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
4950
if (!hasCameraPermission()) {
5051
Toast.makeText(this, CAMERA_PERMISSION_MESSAGE, Toast.LENGTH_LONG).show();
5152
if (!shouldShowRequestPermissionRationale()) {

debug/apps/fast2d/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 29
4+
compileSdkVersion 33
55
defaultConfig {
66
applicationId "processing.tests.fast2d"
77
minSdkVersion 17
8-
targetSdkVersion 29
8+
targetSdkVersion 33
99
versionCode 1
1010
versionName "1.0"
1111
}
@@ -21,11 +21,12 @@ android {
2121
sourceCompatibility JavaVersion.VERSION_1_8
2222
targetCompatibility JavaVersion.VERSION_1_8
2323
}
24+
namespace 'fast2d'
2425
}
2526

2627
dependencies {
2728
implementation fileTree(include: ['*.jar'], dir: 'libs')
28-
testImplementation 'junit:junit:4.13'
29+
testImplementation 'junit:junit:4.13.2'
2930
implementation project(':libs:processing-core')
30-
implementation 'androidx.appcompat:appcompat:1.2.0'
31+
implementation 'androidx.appcompat:appcompat:1.6.0'
3132
}

debug/apps/fast2d/src/main/AndroidManifest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="fast2d">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0">
33
<application
44
android:allowBackup="true"
55
android:icon="@mipmap/ic_launcher"
@@ -8,7 +8,8 @@
88
android:theme="@style/AppTheme"
99
android:hardwareAccelerated="true"
1010
android:largeHeap="true">
11-
<activity android:name=".MainActivity">
11+
<activity android:name=".MainActivity"
12+
android:exported="true">
1213
<intent-filter>
1314
<action android:name="android.intent.action.MAIN"/>
1415
<category android:name="android.intent.category.LAUNCHER"/>

debug/apps/fast2d/src/main/java/fast2d/MainActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ protected void onCreate(Bundle savedInstanceState) {
7272

7373
@Override
7474
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
75+
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
7576
if (sketch != null) {
7677
sketch.onRequestPermissionsResult(
77-
requestCode, permissions, grantResults);
78+
requestCode, permissions, grantResults);
7879
}
7980
}
8081

debug/apps/simple/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 29
4+
compileSdkVersion 33
55
defaultConfig {
66
applicationId "processing.tests.simple"
77
minSdkVersion 17
8-
targetSdkVersion 29
8+
targetSdkVersion 33
99
versionCode 1
1010
versionName "1.0"
1111
}
@@ -21,11 +21,12 @@ android {
2121
sourceCompatibility JavaVersion.VERSION_1_8
2222
targetCompatibility JavaVersion.VERSION_1_8
2323
}
24+
namespace 'simple'
2425
}
2526

2627
dependencies {
2728
implementation fileTree(include: ['*.jar'], dir: 'libs')
28-
testImplementation 'junit:junit:4.13'
29+
testImplementation 'junit:junit:4.13.2'
2930
implementation project(':libs:processing-core')
30-
implementation 'androidx.appcompat:appcompat:1.2.0'
31+
implementation 'androidx.appcompat:appcompat:1.6.0'
3132
}

debug/apps/simple/src/main/AndroidManifest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="simple">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0">
33
<application
44
android:allowBackup="true"
55
android:icon="@mipmap/ic_launcher"
@@ -8,7 +8,8 @@
88
android:theme="@style/AppTheme"
99
android:hardwareAccelerated="true"
1010
android:largeHeap="true">
11-
<activity android:name=".MainActivity">
11+
<activity android:name=".MainActivity"
12+
android:exported="true">
1213
<intent-filter>
1314
<action android:name="android.intent.action.MAIN"/>
1415
<category android:name="android.intent.category.LAUNCHER"/>

debug/apps/simple/src/main/java/simple/MainActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ protected void onCreate(Bundle savedInstanceState) {
2828

2929
@Override
3030
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
31+
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
3132
if (sketch != null) {
3233
sketch.onRequestPermissionsResult(
33-
requestCode, permissions, grantResults);
34+
requestCode, permissions, grantResults);
3435
}
3536
}
3637

debug/apps/vrcube/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 29
4+
compileSdkVersion 33
55
defaultConfig {
66
applicationId "processing.tests.vrcube"
77
minSdkVersion 19
8-
targetSdkVersion 29
8+
targetSdkVersion 33
99
versionCode 1
1010
versionName "1.0"
1111
}
@@ -21,13 +21,14 @@ android {
2121
sourceCompatibility JavaVersion.VERSION_1_8
2222
targetCompatibility JavaVersion.VERSION_1_8
2323
}
24+
namespace 'vrcube'
2425
}
2526

2627
dependencies {
2728
implementation fileTree(include: ['*.jar'], dir: 'libs')
28-
testImplementation 'junit:junit:4.13'
29+
testImplementation 'junit:junit:4.13.2'
2930
implementation project(':libs:processing-core')
31+
implementation project(':libs:google-vr')
3032
implementation project(':libs:processing-vr')
31-
implementation 'androidx.appcompat:appcompat:1.2.0'
32-
implementation 'com.google.vr:sdk-base:1.180.0'
33+
implementation 'androidx.appcompat:appcompat:1.6.0'
3334
}

0 commit comments

Comments
 (0)