mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 15:48:05 +00:00
Co-authored-by: Alex Kim <alexkim@Alexs-MacBook-Pro.local> Co-authored-by: Alex <111128610+Alexk2309@users.noreply.github.com> Co-authored-by: Simon-Eklundh <simon.eklundh@proton.me>
58 lines
1.6 KiB
Groovy
58 lines
1.6 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
group = 'expo.modules.mpvplayer'
|
|
version = '0.7.6'
|
|
|
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
apply from: expoModulesCorePlugin
|
|
applyKotlinExpoModulesCorePlugin()
|
|
useCoreDependencies()
|
|
useExpoPublishing()
|
|
|
|
// If you want to use the managed Android SDK versions from expo-modules-core, set this to true.
|
|
// The Android SDK versions will be bumped from time to time in SDK releases and may introduce breaking changes in your module code.
|
|
// Most of the time, you may like to manage the Android SDK versions yourself.
|
|
def useManagedAndroidSdkVersions = false
|
|
if (useManagedAndroidSdkVersions) {
|
|
useDefaultAndroidSdkVersions()
|
|
} else {
|
|
buildscript {
|
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
ext.safeExtGet = { prop, fallback ->
|
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
}
|
|
}
|
|
project.android {
|
|
compileSdkVersion safeExtGet("compileSdkVersion", 36)
|
|
defaultConfig {
|
|
minSdkVersion safeExtGet("minSdkVersion", 26)
|
|
targetSdkVersion safeExtGet("targetSdkVersion", 36)
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace "expo.modules.mpvplayer"
|
|
defaultConfig {
|
|
versionCode 1
|
|
versionName "0.7.6"
|
|
ndk {
|
|
// Architectures supported by mpv-android
|
|
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64'
|
|
}
|
|
}
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['libs']
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// libmpv from Maven Central
|
|
implementation 'dev.jdtech.mpv:libmpv:0.5.1'
|
|
}
|