Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Support for WaveVR appId (#1476)
Browse files Browse the repository at this point in the history
* Support for WaveVR appId

* Updated taskcluster build targets

* Remove x86 traces
  • Loading branch information
keianhzo authored Aug 2, 2019
1 parent 451ce73 commit aae8e54
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 11 deletions.
49 changes: 40 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def getCrashRestartDisabled = { ->
return "false"
}

def getDevApplicationIdSufix = { ->
def getDevApplicationIdSuffix = { ->
if (gradle.hasProperty("simultaneousDevProduction")) {
return gradle.simultaneousDevProduction == "true" ? ".dev" : ""
}
Expand Down Expand Up @@ -78,7 +78,7 @@ android {
signingConfig getUseDebugSigningOnRelease() ? debug.signingConfig : release.signingConfig
}
debug {
applicationIdSuffix getDevApplicationIdSufix()
applicationIdSuffix getDevApplicationIdSuffix()
pseudoLocalesEnabled true
}
}
Expand Down Expand Up @@ -169,6 +169,7 @@ android {
}
}
}

wavevr {
minSdkVersion build_versions.min_sdk_wave
dimension "platform"
Expand All @@ -179,7 +180,21 @@ android {
arguments "-DVR_SDK_LIB=wavevr-lib", "-DWAVEVR=ON"
}
}
applicationIdSuffix ".wavevr"
}

wavevrStore {
minSdkVersion build_versions.min_sdk_wave
dimension "platform"
externalNativeBuild {
cmake {
cppFlags " -I" + file("${project.rootDir}/third_party/wavesdk/build/wvr_client/include").absolutePath +
" -DWAVEVR"
arguments "-DVR_SDK_LIB=wavevr-lib", "-DWAVEVR=ON"
}
}
}

noapi {
dimension "platform"
externalNativeBuild {
Expand All @@ -205,10 +220,10 @@ android {
}
}

x86 {
x86_64 {
dimension "abi"
ndk {
abiFilters "x86"
abiFilters "x86_64"
}
}
}
Expand Down Expand Up @@ -239,12 +254,16 @@ android {
'wavevrArmRelease',
'wavevrArm64Debug',
'wavevrArm64Release',
'wavevrStoreArmDebug',
'wavevrStoreArmRelease',
'wavevrStoreArm64Debug',
'wavevrStoreArm64Release',
'noapiArmDebug',
'noapiArmRelease',
'noapiArm64Debug',
'noapiArm64Release',
'noapiX86Debug',
'noapiX86Release'
'noapiX86_64Debug',
'noapiX86_64Release'
]
variant.setIgnore(!needed)
}
Expand Down Expand Up @@ -361,6 +380,18 @@ android {
]
jniLibs.srcDirs = ["${project.rootDir}/third_party/wavesdk/build/wvr_client/jni"]
}

wavevrStore {
java.srcDirs = [
'src/wavevr/java'
]
res.srcDirs = [
'src/wavevr/res'
]
jniLibs.srcDirs = ["${project.rootDir}/third_party/wavesdk/build/wvr_client/jni"]
manifest.srcFile "src/wavevr/AndroidManifest.xml"
}

noapi {
java.srcDirs = [
'src/noapi/java'
Expand Down Expand Up @@ -440,6 +471,7 @@ if (findProject(':servo')) {
if (findProject(':wavesdk')) {
dependencies {
wavevrImplementation project(':wavesdk')
wavevrStoreImplementation project(':wavesdk')
}
}

Expand All @@ -454,7 +486,7 @@ if (findProject(':geckoview-local')) {
// https://maven.mozilla.org/?prefix=maven2/org/mozilla/geckoview/geckoview-nightly-armeabi-v7a/
armImplementation deps.gecko_view.nightly_armv7a
arm64Implementation deps.gecko_view.nightly_arm64
x86Implementation deps.gecko_view.nightly_x86
x86_64Implementation deps.gecko_view.nightly_x86_64
}
}

Expand All @@ -477,8 +509,7 @@ android.applicationVariants.all { variant ->
// compatibility mode.
def multiplier = 100000000

// Currently only support arm7
if (variant.flavorName.contains("X86")) {
if (variant.flavorName.contains("x86_64")) {
versionCode = versionCode + (3 * multiplier)
} else if (variant.flavorName.contains("Aarch64")) {
versionCode = versionCode + (2 * multiplier)
Expand Down
3 changes: 2 additions & 1 deletion tools/taskcluster/build_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
'oculusvrStore': ['arm', 'arm64'],
'oculusvr3dofStore': ['arm', 'arm64'],
'wavevr': ['arm', 'arm64'],
'wavevrStore': ['arm', 'arm64'],
'googlevr': ['arm', 'arm64'],
'noapi': ['arm', 'arm64', 'x86'],
'noapi': ['arm', 'arm64', 'x86_64'],
'svr': ['arm', 'arm64'],
}

Expand Down
2 changes: 1 addition & 1 deletion versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def deps = [:]
def gecko_view = [:]
gecko_view.nightly_armv7a = "org.mozilla.geckoview:geckoview-nightly-armeabi-v7a:$versions.gecko_view"
gecko_view.nightly_arm64 = "org.mozilla.geckoview:geckoview-nightly-arm64-v8a:$versions.gecko_view"
gecko_view.nightly_x86 = "org.mozilla.geckoview:geckoview-nightly-x86:$versions.gecko_view"
gecko_view.nightly_x86_64 = "org.mozilla.geckoview:geckoview-nightly-x86_64:$versions.gecko_view"
deps.gecko_view = gecko_view

def android_components = [:]
Expand Down

0 comments on commit aae8e54

Please sign in to comment.