Created
June 12, 2019 10:01
-
-
Save claireliu14/943c919c11a606ec53b5bc9a9958e6e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
apply plugin: 'com.google.ar.sceneform.plugin' | |
android { | |
compileSdkVersion 27 | |
defaultConfig { | |
applicationId "com.osensetech.taoyuan" | |
minSdkVersion 24 | |
targetSdkVersion 27 | |
versionCode 1 | |
versionName "0.8.8" | |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
multiDexEnabled true | |
ndk { | |
abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a' | |
} | |
} | |
aaptOptions { | |
noCompress '.unity3d', '.ress', '.resource', '.obb' | |
} | |
lintOptions { | |
checkReleaseBuilds false | |
abortOnError false | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
tasks.withType(JavaCompile) { | |
options.encoding = "UTF-8" | |
sourceCompatibility = JavaVersion.VERSION_1_7 | |
targetCompatibility = JavaVersion.VERSION_1_7 | |
} | |
buildTypes { | |
debug { | |
debuggable true | |
minifyEnabled true | |
shrinkResources true | |
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | |
} | |
release { | |
debuggable false | |
minifyEnabled true | |
shrinkResources true | |
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | |
} | |
} | |
lintOptions { | |
checkReleaseBuilds false | |
abortOnError false | |
} | |
splits { | |
density { | |
enable true | |
compatibleScreens 'small', 'normal', 'large', 'xlarge' | |
} | |
} | |
packagingOptions { | |
doNotStrip "*/armeabi-v7a/*.so" | |
doNotStrip "*/x86/*.so" | |
doNotStrip "*/arm64-v8a/*.so" | |
} | |
repositories { | |
flatDir { | |
dirs 'libs' | |
} | |
} | |
} | |
dependencies { | |
... | |
// ar | |
implementation 'com.google.ar.sceneform.ux:sceneform-ux:1.8.0' | |
implementation 'com.google.ar.sceneform:animation:1.8.0' | |
implementation 'com.google.ar.sceneform:core:1.8.0' | |
} | |
sceneform.asset('sampledata/models/end.fbx', | |
'default', | |
'sampledata/models/end.sfa', | |
'src/main/res/raw/end') | |
sceneform.asset('sampledata/models/stand_by.fbx', | |
'default', | |
'sampledata/models/stand_by.sfa', | |
'src/main/res/raw/stand_by') | |
sceneform.asset('sampledata/models/stand_by_to_walk.fbx', | |
'default', | |
'sampledata/models/stand_by_to_walk.sfa', | |
'src/main/res/raw/stand_by_to_walk') | |
sceneform.asset('sampledata/models/walk.fbx', | |
'default', | |
'sampledata/models/walk.sfa', | |
'src/main/res/raw/walk') | |
sceneform.asset('sampledata/models/walk_to_stand_by.fbx', | |
'default', | |
'sampledata/models/walk_to_stand_by.sfa', | |
'src/main/res/raw/walk_to_stand_by') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment