mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
64 lines
1.4 KiB
Groovy
64 lines
1.4 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'maven-publish'
|
|
|
|
group = 'expo.modules.widgetbridge'
|
|
version = '0.0.1'
|
|
|
|
buildscript {
|
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
if (expoModulesCorePlugin.exists()) {
|
|
apply from: expoModulesCorePlugin
|
|
applyKotlinExpoModulesCorePlugin()
|
|
}
|
|
}
|
|
|
|
afterEvaluate {
|
|
publishing {
|
|
publications {
|
|
release(MavenPublication) {
|
|
from components.release
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
url = mavenLocal().url
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace "expo.modules.widgetbridge"
|
|
compileSdkVersion safeExtGet("compileSdkVersion", 34)
|
|
|
|
defaultConfig {
|
|
minSdkVersion safeExtGet("minSdkVersion", 23)
|
|
targetSdkVersion safeExtGet("targetSdkVersion", 34)
|
|
}
|
|
|
|
publishing {
|
|
singleVariant("release") {
|
|
withSourcesJar()
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_17.majorVersion
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':expo-modules-core')
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${rootProject.ext.has('kotlinVersion') ? rootProject.ext.kotlinVersion : '1.9.25'}"
|
|
}
|