Skip to content

Commit 3dc7fdb

Browse files
authored
Remove redundant AR checkbox and unity packages from example (juicycleff#835)
* Remove AR packages from the Example project. * Mention XR plugin management bug in AR docs. * Remove redundant AR toggle in Menu.
1 parent def96a5 commit 3dc7fdb

File tree

4 files changed

+7
-114
lines changed

4 files changed

+7
-114
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,13 @@ allprojects {
327327
![gif](https://github.com/juicycleff/flutter-unity-view-widget/blob/master/files/ar-demo.gif?raw=true)
328328

329329
The following setup for AR is done after making an export from Unity.
330+
331+
332+
<b>Warning: The `XR Plugin Management` package version `4.3.1 - 4.3.3` has bug that breaks Android exports. </b>
333+
334+
- The bug accidentally deletes your AndroidManifest.xml file after each build, resulting in a broken export.
335+
Switch to version `4.2.2` or `4.4` to avoid this.
336+
330337
<details>
331338
<summary>:information_source: <b>AR Foundation Android</b></summary>
332339

example/lib/menu_screen.dart

-27
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,37 @@ class MenuScreen extends StatefulWidget {
88
}
99

1010
class _MenuScreenState extends State<MenuScreen> {
11-
bool enableAR = true;
12-
1311
List<_MenuListItem> menus = [
1412
_MenuListItem(
1513
description: 'Simple demonstration of unity flutter library',
1614
route: '/simple',
1715
title: 'Simple Unity Demo',
18-
enableAR: false,
1916
),
2017
_MenuListItem(
2118
description: 'No interaction of unity flutter library',
2219
route: '/none',
2320
title: 'No Interaction Unity Demo',
24-
enableAR: false,
2521
),
2622
_MenuListItem(
2723
description: 'Unity load and unload unity demo',
2824
route: '/loader',
2925
title: 'Safe mode Demo',
30-
enableAR: false,
3126
),
3227
_MenuListItem(
3328
description:
3429
'This example shows various native API exposed by the library',
3530
route: '/api',
3631
title: 'Native exposed API demo',
37-
enableAR: false,
3832
),
3933
_MenuListItem(
4034
title: 'Test Orientation',
4135
route: '/orientation',
4236
description: 'test orientation change',
43-
enableAR: false,
4437
),
4538
_MenuListItem(
4639
description: 'Unity native activity demo',
4740
route: '/activity',
4841
title: 'Native Activity Demo ',
49-
enableAR: true,
5042
),
5143
];
5244

@@ -55,23 +47,6 @@ class _MenuScreenState extends State<MenuScreen> {
5547
return Scaffold(
5648
appBar: AppBar(
5749
title: const Text('Menu List'),
58-
actions: [
59-
Row(
60-
children: [
61-
const Text("Enable AR"),
62-
Checkbox(
63-
value: enableAR,
64-
onChanged: (changed) {
65-
if (changed != null) {
66-
setState(() {
67-
enableAR = changed;
68-
});
69-
}
70-
},
71-
),
72-
],
73-
),
74-
],
7550
),
7651
body: Center(
7752
child: ListView.builder(
@@ -97,12 +72,10 @@ class _MenuListItem {
9772
final String title;
9873
final String description;
9974
final String route;
100-
final bool enableAR;
10175

10276
_MenuListItem({
10377
required this.title,
10478
required this.description,
10579
required this.route,
106-
required this.enableAR,
10780
});
10881
}

example/unity/DemoApp/Packages/manifest.json

-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
"com.unity.textmeshpro": "3.0.6",
1010
"com.unity.timeline": "1.7.1",
1111
"com.unity.ugui": "1.0.0",
12-
"com.unity.xr.arcore": "4.2.3",
13-
"com.unity.xr.arfoundation": "4.2.3",
14-
"com.unity.xr.arkit": "4.2.3",
15-
"com.unity.xr.management": "4.2.0",
1612
"com.unity.modules.ai": "1.0.0",
1713
"com.unity.modules.androidjni": "1.0.0",
1814
"com.unity.modules.animation": "1.0.0",

example/unity/DemoApp/Packages/packages-lock.json

-83
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@
77
"dependencies": {},
88
"url": "https://packages.unity.com"
99
},
10-
"com.unity.editorcoroutines": {
11-
"version": "1.0.0",
12-
"depth": 1,
13-
"source": "registry",
14-
"dependencies": {},
15-
"url": "https://packages.unity.com"
16-
},
1710
"com.unity.ext.nunit": {
1811
"version": "1.0.6",
1912
"depth": 0,
@@ -46,15 +39,6 @@
4639
"dependencies": {},
4740
"url": "https://packages.unity.com"
4841
},
49-
"com.unity.subsystemregistration": {
50-
"version": "1.1.0",
51-
"depth": 1,
52-
"source": "registry",
53-
"dependencies": {
54-
"com.unity.modules.subsystems": "1.0.0"
55-
},
56-
"url": "https://packages.unity.com"
57-
},
5842
"com.unity.test-framework": {
5943
"version": "1.1.31",
6044
"depth": 0,
@@ -96,73 +80,6 @@
9680
"com.unity.modules.imgui": "1.0.0"
9781
}
9882
},
99-
"com.unity.xr.arcore": {
100-
"version": "4.2.3",
101-
"depth": 0,
102-
"source": "registry",
103-
"dependencies": {
104-
"com.unity.xr.arsubsystems": "4.2.3",
105-
"com.unity.xr.management": "4.0.1",
106-
"com.unity.modules.androidjni": "1.0.0",
107-
"com.unity.modules.unitywebrequest": "1.0.0"
108-
},
109-
"url": "https://packages.unity.com"
110-
},
111-
"com.unity.xr.arfoundation": {
112-
"version": "4.2.3",
113-
"depth": 0,
114-
"source": "registry",
115-
"dependencies": {
116-
"com.unity.xr.arsubsystems": "4.2.3",
117-
"com.unity.xr.management": "4.0.1",
118-
"com.unity.modules.particlesystem": "1.0.0"
119-
},
120-
"url": "https://packages.unity.com"
121-
},
122-
"com.unity.xr.arkit": {
123-
"version": "4.2.3",
124-
"depth": 0,
125-
"source": "registry",
126-
"dependencies": {
127-
"com.unity.editorcoroutines": "1.0.0",
128-
"com.unity.xr.arsubsystems": "4.2.3",
129-
"com.unity.xr.management": "4.0.1"
130-
},
131-
"url": "https://packages.unity.com"
132-
},
133-
"com.unity.xr.arsubsystems": {
134-
"version": "4.2.7",
135-
"depth": 1,
136-
"source": "registry",
137-
"dependencies": {
138-
"com.unity.subsystemregistration": "1.1.0",
139-
"com.unity.xr.management": "4.0.1"
140-
},
141-
"url": "https://packages.unity.com"
142-
},
143-
"com.unity.xr.legacyinputhelpers": {
144-
"version": "2.1.10",
145-
"depth": 1,
146-
"source": "registry",
147-
"dependencies": {
148-
"com.unity.modules.vr": "1.0.0",
149-
"com.unity.modules.xr": "1.0.0"
150-
},
151-
"url": "https://packages.unity.com"
152-
},
153-
"com.unity.xr.management": {
154-
"version": "4.2.0",
155-
"depth": 0,
156-
"source": "registry",
157-
"dependencies": {
158-
"com.unity.modules.subsystems": "1.0.0",
159-
"com.unity.modules.vr": "1.0.0",
160-
"com.unity.modules.xr": "1.0.0",
161-
"com.unity.xr.legacyinputhelpers": "2.1.7",
162-
"com.unity.subsystemregistration": "1.0.6"
163-
},
164-
"url": "https://packages.unity.com"
165-
},
16683
"com.unity.modules.ai": {
16784
"version": "1.0.0",
16885
"depth": 0,

0 commit comments

Comments
 (0)