PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/expo/android
Просмотр файла: build.gradle
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'
// Import autolinking script
apply from: "../scripts/autolinking.gradle"
ensureDependeciesWereEvaluated(project)
group = 'host.exp.exponent'
version = '44.0.6'
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
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.4.21')}")
}
}
// Creating sources with comments
task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
// Add additional sourcesJar to artifacts
artifact(androidSourcesJar)
}
}
repositories {
maven {
url = mavenLocal().url
}
}
}
}
android {
compileSdkVersion safeExtGet("compileSdkVersion", 30)
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion safeExtGet("minSdkVersion", 21)
targetSdkVersion safeExtGet("targetSdkVersion", 30)
versionCode 1
versionName "44.0.6"
consumerProguardFiles("proguard-rules.pro")
}
lintOptions {
abortOnError false
}
kotlinOptions {
jvmTarget = '1.8'
}
testOptions {
unitTests.includeAndroidResources = true
}
sourceSets {
main {
java {
srcDirs += new File(project.buildDir, generatedFilesSrcDir)
}
}
}
unitTestVariants.all {
it.mergedFlavor.manifestPlaceholders = [
// Fix expo-app-auth manifest merger issue for unit test
appAuthRedirectScheme: "test"
]
}
}
dependencies { dependencyHandler ->
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+'
testImplementation 'junit:junit:4.13.1'
testImplementation 'androidx.test:core:1.4.0'
testImplementation "com.google.truth:truth:1.1.2"
testImplementation 'io.mockk:mockk:1.12.0'
// Link expo modules as dependencies of the adapter. It uses `api` configuration so they all will be visible for the app as well.
// A collection of the dependencies depends on the options passed to `useExpoModules` in your project's `settings.gradle`.
addExpoModulesDependencies(dependencyHandler, project)
}
// A task generating a package list of expo modules.
task generateExpoModulesPackageList {
doLast {
generateExpoModulesPackageList()
}
}
// Run that task during prebuilding phase.
preBuild.dependsOn "generateExpoModulesPackageList"
Выполнить команду
Для локальной разработки. Не используйте в интернете!