2022-09-18 15:37:21 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2023-02-05 23:13:43 +00:00
|
|
|
apply from: "${rootProject.projectDir}/XrApp.gradle"
|
2022-09-18 15:37:21 +00:00
|
|
|
|
|
|
|
android {
|
|
|
|
// This is the name of the generated apk file, which will have
|
|
|
|
// -debug.apk or -release.apk appended to it.
|
|
|
|
// The filename doesn't effect the Android installation process.
|
|
|
|
// Use only letters to remain compatible with the package name.
|
2023-03-01 21:43:15 +00:00
|
|
|
project.archivesBaseName = "jkxr"
|
2022-09-18 15:37:21 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
// Gradle replaces the manifest package with this value, which must
|
|
|
|
// be unique on a system. If you don't change it, a new app
|
|
|
|
// will replace an older one.
|
|
|
|
applicationId "com.drbeef." + project.archivesBaseName
|
|
|
|
|
|
|
|
// override app plugin abiFilters for both 32 and 64-bit support
|
|
|
|
externalNativeBuild {
|
|
|
|
ndk {
|
|
|
|
abiFilters 'arm64-v8a'
|
|
|
|
}
|
|
|
|
ndkBuild {
|
|
|
|
abiFilters 'arm64-v8a'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
minSdkVersion 26
|
|
|
|
targetSdkVersion 26
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java.srcDirs = ['../../java']
|
|
|
|
jniLibs.srcDir 'libs'
|
|
|
|
res.srcDirs = ['../../res']
|
|
|
|
assets.srcDirs = ['../../assets']
|
|
|
|
}
|
|
|
|
}
|
2023-02-03 23:00:13 +00:00
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'lib/arm64-v8a/libopenxr_loader.so'
|
|
|
|
}
|
|
|
|
|
2022-09-18 15:37:21 +00:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = '1.8'
|
|
|
|
targetCompatibility = '1.8'
|
|
|
|
}
|
|
|
|
compileSdkVersion = 26
|
|
|
|
buildToolsVersion = '29.0.1'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "com.android.support:support-compat:26.1.0"
|
|
|
|
implementation "com.android.support:support-core-utils:26.1.0"
|
2022-11-18 21:02:36 +00:00
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
2022-09-18 15:37:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
}
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
}
|
2023-02-26 19:49:51 +00:00
|
|
|
}
|
|
|
|
|
2023-03-28 15:36:13 +00:00
|
|
|
task packBaseResources(type: Zip) {
|
|
|
|
from "../../z_vr_assets_base/"
|
|
|
|
destinationDir file("../../assets/")
|
|
|
|
archiveName "z_vr_assets_base.pk3"
|
|
|
|
}
|
|
|
|
|
2023-02-26 19:49:51 +00:00
|
|
|
task packJOResources(type: Zip) {
|
2023-03-28 15:36:13 +00:00
|
|
|
from "../../z_vr_assets_jko/"
|
2023-02-26 19:49:51 +00:00
|
|
|
destinationDir file("../../assets/")
|
2023-03-28 15:36:13 +00:00
|
|
|
archiveName "z_vr_assets_jko.pk3"
|
2023-02-26 19:49:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.matching {it.name.startsWith("assemble")}.all { Task task ->
|
2023-03-28 21:57:06 +00:00
|
|
|
task.dependsOn([packBaseResources, packJOResources])
|
2023-02-26 19:49:51 +00:00
|
|
|
}
|