A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
Android_UPL.xml
Go to the documentation of this file.
1
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
2
<!--AndroidCamera plugin additions-->
3
<
root
xmlns:android
=
"http://schemas.android.com/apk/res/android"
>
4
<!-- init section is always evaluated once per architecture
5
<init>
6
<log text="AndroidCamera init"/>
7
<setBool result="bSupported" value="true"/>
8
<if condition="bSupported">
9
<true>
10
<setBoolFromProperty result="bEnablePermission" ini="Engine" section="/Script/AndroidCameraEditor.AndroidCameraRuntimeSettings" property="bEnablePermission" default="true"/>
11
<if condition="bEnablePermission">
12
<true>
13
<log text="Camera permission will be added in AndroidManifest.xml"/>
14
<setBoolFromProperty result="bRequiresAnyCamera" ini="Engine" section="/Script/AndroidCameraEditor.AndroidCameraRuntimeSettings" property="bRequiresAnyCamera" default="false"/>
15
<setBoolFromProperty result="bRequiresBackFacingCamera" ini="Engine" section="/Script/AndroidCameraEditor.AndroidCameraRuntimeSettings" property="bRequiresBackFacingCamera" default="false"/>
16
<setBoolFromProperty result="bRequiresFrontFacingCamera" ini="Engine" section="/Script/AndroidCameraEditor.AndroidCameraRuntimeSettings" property="bRequiresFrontFacingCamera" default="false"/>
17
<setBoolOr result="bRequiresFrontOrBackFacingCamera" arg1="$B(bRequiresBackFacingCamera)" arg2="$B(bRequiresFrontFacingCamera)"/>
18
</true>
19
</if>
20
</true>
21
<false>
22
<log text="Camera not supported for this architecture, disabled."/>
23
</false>
24
</if>
25
</init> -->
26
27
<!-- optional updates applied to AndroidManifest.xml
28
<androidManifestUpdates>
29
<if condition="bSupported">
30
<true>
31
<if condition="bEnablePermission">
32
<true>
33
<addPermission android:name="android.permission.CAMERA"/>
34
<if condition="bRequiresFrontOrBackFacingCamera">
35
<false>
36
<if condition="bRequiresAnyCamera">
37
<true>
38
<addFeature android:name="android.hardware.camera.any" android:required="true"/>
39
</true>
40
<false>
41
<addFeature android:name="android.hardware.camera" android:required="false"/>
42
<addFeature android:name="android.hardware.camera.front" android:required="false"/>
43
</false>
44
</if>
45
</false>
46
<true>
47
<if condition="bRequiresBackFacingCamera">
48
<true>
49
<addFeature android:name="android.hardware.camera" android:required="true"/>
50
</true>
51
<false>
52
<addFeature android:name="android.hardware.camera" android:required="false"/>
53
</false>
54
</if>
55
<if condition="bRequiresFrontFacingCamera">
56
<true>
57
<addFeature android:name="android.hardware.camera.front" android:required="true"/>
58
</true>
59
<false>
60
<addFeature android:name="android.hardware.camera.front" android:required="false"/>
61
</false>
62
</if>
63
</true>
64
</if>
65
</true>
66
</if>
67
</true>
68
</if>
69
</androidManifestUpdates> -->
70
71
<!-- optional additions to proguard
72
<proguardAdditions>
73
<insert>
74
-keep class com.epicgames.ue4.CameraPlayer14 {
75
public *;
76
}
77
-keep class com.epicgames.ue4.CameraPlayer14$FrameUpdateInfo {
78
public *;
79
}
80
-keep class com.epicgames.ue4.CameraPlayer14$AudioTrackInfo {
81
public *;
82
}
83
-keep class com.epicgames.ue4.CameraPlayer14$CaptionTrackInfo {
84
public *;
85
}
86
-keep class com.epicgames.ue4.CameraPlayer14$VideoTrackInfo {
87
public *;
88
}
89
</insert>
90
</proguardAdditions> -->
91
92
<!-- optional files or directories to copy to Intermediate/Android/APK
93
<resourceCopies>
94
<if condition="bSupported">
95
<true>
96
<copyDir src="$S(PluginDir)/Java" dst="$S(BuildDir)" />
97
</true>
98
</if>
99
</resourceCopies> -->
100
101
<!-- optional additions to the GameActivity imports in GameActivity.java
102
<gameActivityImportAdditions>
103
<if condition="bSupported">
104
<true>
105
<insert>
106
</insert>
107
</true>
108
</if>
109
</gameActivityImportAdditions> -->
110
111
<!-- optional additions to the GameActivity class in GameActivity.java -->
112
<
gameActivityClassAdditions
>
113
<
insert
>
114
public
class
PicoVirtualKeyboardInput
extends
VirtualKeyboardInput
115
{
116
public
PicoVirtualKeyboardInput
(
Context
context
,
AttributeSet
attrs
,
int
defStyle
)
117
{
118
super
(
context
,
attrs
,
defStyle
);
119
}
120
121
public
PicoVirtualKeyboardInput
(
Context
context
,
AttributeSet
attrs
)
122
{
123
super
(
context
,
attrs
);
124
}
125
126
public
PicoVirtualKeyboardInput
(
Context
context
)
127
{
128
super
(
context
);
129
}
130
131
public
void
setVisibility
(
int
visibility
)
132
{
133
super.setVisibility
(8);
134
}
135
}
136
</
insert
>
137
</
gameActivityClassAdditions
>
138
139
<!-- optional additions to GameActivity onCreate in GameActivity.java -->
140
<
gameActivityOnCreateAdditions
>
141
<
insert
>
142
newVirtualKeyboardInput
=
new
PicoVirtualKeyboardInput
(
this
);
143
newVirtualKeyboardInput.setVisibility
(
View.GONE
);
144
</
insert
>
145
</
gameActivityOnCreateAdditions
>
146
147
<!-- optional additions to GameActivity onDestroy in GameActivity.java
148
<gameActivityOnDestroyAdditions>
149
</gameActivityOnDestroyAdditions>
150
-->
151
152
<!-- optional additions to GameActivity onStop in GameActivity.java
153
<gameActivityOnStopAdditions>
154
<if condition="bSupported">
155
<true>
156
<insert>
157
</insert>
158
</true>
159
</if>
160
</gameActivityOnStopAdditions> -->
161
162
163
<!-- optional additions to GameActivity onPause in GameActivity.java
164
<gameActivityOnPauseAdditions>
165
<if condition="bSupported">
166
<true>
167
<insert>
168
</insert>
169
</true>
170
</if>
171
</gameActivityOnPauseAdditions> -->
172
173
<!-- optional additions to GameActivity onResume in GameActivity.java
174
<gameActivityOnResumeAdditions>
175
<if condition="bSupported">
176
<true>
177
<insert>
178
</insert>
179
</true>
180
</if>
181
</gameActivityOnResumeAdditions> -->
182
183
<!-- optional additions to GameActivity onActivityResult in GameActivity.java
184
<gameActivityOnActivityResultAdditions>
185
</gameActivityOnActivityResultAdditions>
186
-->
187
188
<!-- optional libraries to load in GameActivity.java before libUE4.so
189
<soLoadLibrary>
190
</soLoadLibrary> -->
191
</
root
>
SDKDemo
Plugins
UnrealEngineSDK
PixoCore
Source
PixoCore
Android_UPL.xml
Generated
Wed Oct 9 2024 19:52:53
by Doxygen version
1.10.0