2023-01-17 19:21:34 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
@author Mamadou Babaei <mamadou@senseglove.com>
|
|
|
|
|
|
|
|
|
|
@section LICENSE
|
|
|
|
|
|
|
|
|
|
(The MIT License)
|
|
|
|
|
|
2024-02-03 04:39:36 +01:00
|
|
|
Copyright (c) 2020 - 2024 SenseGlove
|
2023-01-17 19:21:34 +01:00
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
|
copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
|
SOFTWARE.
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!-- https://docs.unrealengine.com/en-US/SharingAndReleasing/Mobile/UnrealPluginLanguage/index.html -->
|
|
|
|
|
|
|
|
|
|
<root xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
|
|
|
|
|
|
<init>
|
|
|
|
|
<log text="SenseGloveAndroid [INIT]: adding properties to the manifest and Gradle"/>
|
|
|
|
|
<trace enable="true"/>
|
|
|
|
|
|
|
|
|
|
<setBool result="bSupportedArch" value="false"/>
|
|
|
|
|
|
|
|
|
|
<isArch arch="armeabi-v7a">
|
2024-06-30 21:36:18 +02:00
|
|
|
<setBool result="bSupportedArch" value="false"/>
|
2023-01-17 19:21:34 +01:00
|
|
|
</isArch>
|
|
|
|
|
|
|
|
|
|
<isArch arch="arm64-v8a">
|
|
|
|
|
<setBool result="bSupportedArch" value="true"/>
|
|
|
|
|
</isArch>
|
|
|
|
|
|
|
|
|
|
<isArch arch="x86">
|
2024-06-30 21:36:18 +02:00
|
|
|
<setBool result="bSupportedArch" value="false"/>
|
2023-01-17 19:21:34 +01:00
|
|
|
</isArch>
|
|
|
|
|
|
|
|
|
|
<isArch arch="x86_64">
|
2023-05-29 02:00:31 +02:00
|
|
|
<setBool result="bSupportedArch" value="true"/>
|
2023-01-17 19:21:34 +01:00
|
|
|
</isArch>
|
|
|
|
|
|
|
|
|
|
<if condition="bSupportedArch">
|
|
|
|
|
<false>
|
|
|
|
|
<log text="SenseGloveAndroid [WARN]: this architecture is not supported!"/>
|
|
|
|
|
</false>
|
|
|
|
|
</if>
|
2023-07-19 01:00:47 +02:00
|
|
|
|
|
|
|
|
<setBoolFromProperty result="bCreateAFSProject" ini="Engine" section="/Script/AndroidFileServerEditor.AndroidFileServerRuntimeSettings" property="bEnablePlugin" default="true"/>
|
2023-01-17 19:21:34 +01:00
|
|
|
</init>
|
|
|
|
|
|
|
|
|
|
<resourceCopies>
|
|
|
|
|
<copyFile src="$S(PluginDir)/../ThirdParty/android/sgconnect.jar" dst="$S(BuildDir)/gradle/app/libs/sgconnect.jar" />
|
|
|
|
|
</resourceCopies>
|
|
|
|
|
|
2023-07-19 01:00:47 +02:00
|
|
|
<gradleCopies>
|
|
|
|
|
<if condition="bCreateAFSProject">
|
|
|
|
|
<true>
|
|
|
|
|
<!-- Also copy into AFSProject -->
|
|
|
|
|
<!--
|
|
|
|
|
We have a dependency in the buildGradleAdditions which
|
|
|
|
|
isn't in the AFSProject which is compiled for shipping
|
|
|
|
|
builds when AndroidFileServer (AFS) is enabled. To keep
|
|
|
|
|
the size of the AFS APK small it doesn't automatically
|
|
|
|
|
copy all the libs over.
|
|
|
|
|
-->
|
|
|
|
|
<copyFile src="$S(PluginDir)/../ThirdParty/android/sgconnect.jar" dst="$S(BuildDir)/gradle/AFSProject/app/libs/sgconnect.jar" />
|
|
|
|
|
</true>
|
|
|
|
|
</if>
|
|
|
|
|
</gradleCopies>
|
|
|
|
|
|
2023-01-17 19:21:34 +01:00
|
|
|
<gradleProperties>
|
|
|
|
|
<insert>
|
|
|
|
|
kapt.incremental.apt=true
|
2024-07-03 11:11:38 +02:00
|
|
|
|
|
|
|
|
<!-- Gradle deprecation warnings -->
|
|
|
|
|
<!--
|
|
|
|
|
org.gradle.warning.mode=all
|
|
|
|
|
-->
|
2023-01-17 19:21:34 +01:00
|
|
|
</insert>
|
|
|
|
|
</gradleProperties>
|
|
|
|
|
|
|
|
|
|
<proguardAdditions>
|
|
|
|
|
<insert>
|
|
|
|
|
<!-- Disable obfuscation for SenseGlove classes -->
|
|
|
|
|
-dontwarn com.senseglove.**
|
|
|
|
|
-keep class com.senseglove.** { *; }
|
|
|
|
|
-keep interface com.senseglove.** { *; }
|
|
|
|
|
-keep public class com.senseglove.sgconnect.** { public protected *; }
|
|
|
|
|
</insert>
|
|
|
|
|
</proguardAdditions>
|
|
|
|
|
|
|
|
|
|
<androidManifestUpdates>
|
|
|
|
|
<!-- For target SDK 31 update the SplashActivity activity -->
|
|
|
|
|
<loopElements tag="activity">
|
|
|
|
|
<setStringFromAttribute result="activityName" tag="$" name="android:name"/>
|
|
|
|
|
<setBoolIsEqual result="bSplashActivity" arg1="$S(activityName)" arg2="com.epicgames.ue4.SplashActivity"/>
|
|
|
|
|
<if condition="bSplashActivity">
|
|
|
|
|
<true>
|
|
|
|
|
<addAttribute tag="$" name="android:exported" value="true"/>
|
|
|
|
|
</true>
|
|
|
|
|
</if>
|
|
|
|
|
</loopElements>
|
|
|
|
|
|
|
|
|
|
<addPermission android:name="android.permission.BLUETOOTH"/>
|
|
|
|
|
<addPermission android:name="android.permission.BLUETOOTH_ADMIN"/>
|
2024-07-03 11:52:00 +02:00
|
|
|
<addPermission android:name="android.permission.BLUETOOTH_ADVERTISE"/>
|
|
|
|
|
<addPermission android:name="android.permission.BLUETOOTH_CONNECT"/>
|
|
|
|
|
<addPermission android:name="android.permission.BLUETOOTH_SCAN"/>
|
2023-01-17 19:21:34 +01:00
|
|
|
<addPermission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
|
|
|
|
|
<addPermission android:name="android.permission.ACCESS_FINE_LOCATION"/>
|
|
|
|
|
</androidManifestUpdates>
|
|
|
|
|
|
|
|
|
|
<buildGradleAdditions>
|
|
|
|
|
<insert>
|
|
|
|
|
ext {
|
|
|
|
|
android {
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation files('libs/sgconnect.jar')
|
|
|
|
|
}
|
2024-07-03 11:11:38 +02:00
|
|
|
|
|
|
|
|
<!-- Gradle deprecation warnings -->
|
|
|
|
|
<!--
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
|
options.deprecation = true
|
|
|
|
|
}
|
|
|
|
|
-->
|
2023-01-17 19:21:34 +01:00
|
|
|
</insert>
|
|
|
|
|
</buildGradleAdditions>
|
|
|
|
|
|
|
|
|
|
<baseBuildGradleAdditions>
|
|
|
|
|
<insert>
|
|
|
|
|
allprojects {
|
|
|
|
|
def mappings = [
|
|
|
|
|
]
|
|
|
|
|
beforeEvaluate {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</insert>
|
|
|
|
|
</baseBuildGradleAdditions>
|
|
|
|
|
|
|
|
|
|
</root>
|