-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (59 loc) · 1.75 KB
/
build.gradle
File metadata and controls
68 lines (59 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
plugins {
id 'com.android.application'
}
android {
namespace "com.vulkan.tutorial"
compileSdk 36
defaultConfig {
applicationId "com.vulkan.tutorial"
minSdk 24
targetSdk 36
versionCode 1
versionName "1.0"
// Define which chapter to build (default to 34_android)
buildConfigField "String", "CHAPTER", "\"${project.findProperty('chapter') ?: '34_android'}\""
externalNativeBuild {
cmake {
arguments "-DCHAPTER=${project.findProperty('chapter') ?: '34_android'}"
abiFilters = project.findProperty('abiFilters')?.split(',') ?: ['armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64']
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
version "4.0.2+"
}
}
ndkVersion "28.1.13356709"
// Use assets from the dedicated assets directory and locally compiled shaders
sourceSets {
main {
assets {
srcDirs = [
// Point to the dedicated assets directory
'../../assets/'
]
}
}
}
buildFeatures {
prefab true
buildConfig true
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.7.1'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.games:games-activity:4.0.0'
}