2021-02-01 00:11:26 +03:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'kotlin-android'
|
|
|
|
id 'kotlin-kapt'
|
|
|
|
id 'dagger.hilt.android.plugin'
|
2022-06-07 01:05:39 +03:00
|
|
|
id 'idea'
|
|
|
|
}
|
|
|
|
|
|
|
|
idea.module {
|
|
|
|
// These are not viable to index on most systems to exclude them to prevent IDE crashes
|
|
|
|
excludeDirs.add(file("libraries/boost"))
|
|
|
|
excludeDirs.add(file("libraries/llvm"))
|
2021-02-01 00:11:26 +03:00
|
|
|
}
|
2019-06-29 03:35:14 +03:00
|
|
|
|
|
|
|
android {
|
2022-03-06 19:02:52 +03:00
|
|
|
namespace 'emu.skyline'
|
|
|
|
|
2021-10-26 08:15:49 +03:00
|
|
|
compileSdkVersion 31
|
2022-06-10 02:11:12 +03:00
|
|
|
buildToolsVersion '33.0.0'
|
2019-06-29 03:35:14 +03:00
|
|
|
defaultConfig {
|
2019-09-24 23:54:27 +03:00
|
|
|
applicationId "skyline.emu"
|
2021-01-22 06:02:01 +03:00
|
|
|
|
2021-07-10 16:38:18 +03:00
|
|
|
minSdkVersion 29
|
2021-10-26 08:15:49 +03:00
|
|
|
targetSdkVersion 31
|
2021-01-22 06:02:01 +03:00
|
|
|
|
2019-10-18 13:52:38 +03:00
|
|
|
versionCode 3
|
2021-03-28 17:35:13 +03:00
|
|
|
versionName "0.0.3"
|
2021-01-22 06:02:01 +03:00
|
|
|
|
2019-06-29 03:35:14 +03:00
|
|
|
ndk {
|
2019-07-03 00:32:20 +03:00
|
|
|
abiFilters "arm64-v8a"
|
2019-06-29 03:35:14 +03:00
|
|
|
}
|
|
|
|
}
|
2021-01-22 06:02:01 +03:00
|
|
|
|
|
|
|
/* JVM Bytecode Options */
|
2021-02-08 07:17:17 +03:00
|
|
|
def javaVersion = JavaVersion.VERSION_1_8
|
2021-01-22 06:02:01 +03:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = javaVersion
|
|
|
|
targetCompatibility = javaVersion
|
2020-05-28 08:39:36 +03:00
|
|
|
}
|
2021-03-29 21:40:48 +03:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = javaVersion.toString()
|
2022-06-28 10:23:45 +03:00
|
|
|
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
2021-03-29 21:40:48 +03:00
|
|
|
}
|
|
|
|
|
2022-05-30 18:23:17 +03:00
|
|
|
signingConfigs {
|
|
|
|
ci {
|
2022-06-11 14:35:20 +03:00
|
|
|
storeFile file(System.getenv("SIGNING_STORE_PATH") ?: "${System.getenv("user.home")}/keystore.jks")
|
2022-05-30 18:23:17 +03:00
|
|
|
storePassword System.getenv("SIGNING_STORE_PASSWORD")
|
|
|
|
keyAlias System.getenv("SIGNING_KEY_ALIAS")
|
|
|
|
keyPassword System.getenv("SIGNING_KEY_PASSWORD")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-29 03:35:14 +03:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2019-10-18 13:52:38 +03:00
|
|
|
debuggable true
|
Framebuffer and NativeActivity
What was added:
* Framebuffer
* NativeActivity
* NV Services
* IOCTL Handler
* NV Devices:
* * /dev/nvmap - 0xC0080101, 0xC0080103, 0xC0200104, 0xC0180105, 0xC00C0109, 0xC008010E
* * /dev/nvhost-as-gpu
* * /dev/nvhost-channel - 0x40044801, 0xC0104809, 0xC010480B, 0xC018480C, 0x4004480D, 0xC020481A, 0x40084714
* * /dev/nvhost-ctrl
* * /dev/nvhost-ctrl-gpu - 0x80044701, 0x80284702, 0xC0184706, 0xC0B04705, 0x80084714
* SVCs:
* * SetMemoryAttribute
* * CreateTransferMemory
* * ResetSignal
* * GetSystemTick
* Addition of Compact Logger
What was fixed:
* SVCs:
* * SetHeapSize
* * SetMemoryAttribute
* * QueryMemory
* A release build would not set CMAKE_BUILD_TYPE to "RELEASE"
* The logger code was simplified
2019-11-13 23:09:31 +03:00
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
arguments "-DCMAKE_BUILD_TYPE=RELEASE"
|
|
|
|
}
|
|
|
|
}
|
2019-07-24 23:19:43 +03:00
|
|
|
minifyEnabled true
|
2019-10-18 13:52:38 +03:00
|
|
|
shrinkResources true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
2022-06-11 14:35:20 +03:00
|
|
|
signingConfig = (System.getenv("CI") == "true") && (System.getenv("IS_SKYLINE_SIGNED") == "true") ? signingConfigs.ci : signingConfigs.debug
|
2019-07-24 23:19:43 +03:00
|
|
|
}
|
2021-01-22 06:02:01 +03:00
|
|
|
|
2019-07-24 23:19:43 +03:00
|
|
|
debug {
|
2019-10-18 13:52:38 +03:00
|
|
|
debuggable true
|
2019-06-29 03:35:14 +03:00
|
|
|
minifyEnabled false
|
2019-10-18 13:52:38 +03:00
|
|
|
shrinkResources false
|
2022-06-11 14:35:20 +03:00
|
|
|
signingConfig = (System.getenv("CI") == "true") && (System.getenv("IS_SKYLINE_SIGNED") == "true") ? signingConfigs.ci : signingConfigs.debug
|
2019-06-29 03:35:14 +03:00
|
|
|
}
|
|
|
|
}
|
2021-10-26 08:15:49 +03:00
|
|
|
|
2021-03-29 21:40:48 +03:00
|
|
|
buildFeatures {
|
|
|
|
viewBinding true
|
|
|
|
}
|
2021-01-22 06:02:01 +03:00
|
|
|
|
|
|
|
/* Linting */
|
2022-03-06 19:02:52 +03:00
|
|
|
lint {
|
2021-01-22 06:02:01 +03:00
|
|
|
disable 'IconLocation'
|
|
|
|
}
|
|
|
|
|
2022-04-04 15:56:06 +03:00
|
|
|
/* NDK and CMake */
|
2022-03-29 11:26:36 +03:00
|
|
|
ndkVersion '25.0.8221429'
|
2019-06-29 03:35:14 +03:00
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
2021-01-22 06:02:01 +03:00
|
|
|
version '3.18.1+'
|
2019-06-29 03:35:14 +03:00
|
|
|
path "CMakeLists.txt"
|
|
|
|
}
|
|
|
|
}
|
2021-03-03 23:40:16 +03:00
|
|
|
|
2021-03-28 00:17:35 +03:00
|
|
|
/* Android Assets */
|
2022-03-06 19:02:52 +03:00
|
|
|
androidResources {
|
|
|
|
ignoreAssetsPattern '*.md'
|
2021-03-03 23:40:16 +03:00
|
|
|
}
|
2019-06-29 03:35:14 +03:00
|
|
|
|
2021-10-26 08:15:49 +03:00
|
|
|
/* Vulkan Validation Layers */
|
|
|
|
sourceSets {
|
|
|
|
debug {
|
|
|
|
jniLibs {
|
|
|
|
srcDir "libraries/vklayers"
|
|
|
|
}
|
2021-03-28 00:17:35 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-29 03:35:14 +03:00
|
|
|
dependencies {
|
2021-01-22 06:02:01 +03:00
|
|
|
/* Google */
|
2022-01-10 18:08:37 +03:00
|
|
|
implementation "androidx.core:core-ktx:1.7.0"
|
2022-03-06 19:02:52 +03:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.0'
|
|
|
|
implementation 'com.google.android.material:material:1.5.0'
|
2019-12-10 23:51:02 +03:00
|
|
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
2021-01-30 16:59:11 +03:00
|
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
|
2022-03-06 19:02:52 +03:00
|
|
|
implementation 'androidx.fragment:fragment-ktx:1.4.1'
|
2021-02-01 00:11:26 +03:00
|
|
|
implementation "com.google.dagger:hilt-android:$hilt_version"
|
|
|
|
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
|
2021-10-14 17:18:24 +03:00
|
|
|
implementation 'com.google.android.flexbox:flexbox:3.0.0'
|
2021-01-22 06:02:01 +03:00
|
|
|
|
2022-06-28 10:23:45 +03:00
|
|
|
/* Kotlin */
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.20")
|
|
|
|
|
2021-10-16 14:27:29 +03:00
|
|
|
/* JetBrains */
|
2021-01-30 16:59:11 +03:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2021-01-22 06:02:01 +03:00
|
|
|
|
|
|
|
/* Other Java */
|
|
|
|
implementation 'info.debatty:java-string-similarity:2.0.0'
|
2019-06-29 03:35:14 +03:00
|
|
|
}
|
2021-10-26 08:15:49 +03:00
|
|
|
|
|
|
|
kapt {
|
|
|
|
correctErrorTypes true
|
|
|
|
}
|