mirror of
https://github.com/bevyengine/bevy.git
synced 2026-07-01 08:12:51 -04:00
d29347b9f0
# Objective `libc++_shared.so` is no longer needed after #20323 ## Solution Remove unused `dummy.cpp` and cmake in Android examples. ## Testing Run: ```sh cargo ndk -P 26 -t arm64-v8a build -o examples/mobile/android_example/app/src/main/jniLibs -p bevy_mobile_example cd examples/mobile/android_example ./gradlew assembleDebug adb install -r ./app/build/outputs/apk/debug/app-debug.apk ```
52 lines
1.2 KiB
Groovy
52 lines
1.2 KiB
Groovy
plugins {
|
|
alias(libs.plugins.android.application)
|
|
}
|
|
|
|
android {
|
|
namespace 'org.bevyengine.example'
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
applicationId "org.bevyengine.example"
|
|
minSdk 31
|
|
targetSdk 33
|
|
versionCode 1
|
|
versionName "1.0"
|
|
// set up targets
|
|
ndk {
|
|
abiFilters 'arm64-v8a'
|
|
}
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
buildFeatures {
|
|
prefab true
|
|
}
|
|
sourceSets {
|
|
main {
|
|
assets.srcDirs += files('../../../../assets')
|
|
|
|
res.srcDirs += files('../../../../assets/android-res')
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation libs.appcompat
|
|
implementation libs.material
|
|
implementation libs.games.activity
|
|
testImplementation libs.junit
|
|
androidTestImplementation libs.ext.junit
|
|
androidTestImplementation libs.espresso.core
|
|
}
|