PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/expo-file-system/android

Просмотр файла: build.gradle

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'

group = 'host.exp.exponent'
version = '13.1.4'

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
  }

  kotlinOptions {
    jvmTarget = JavaVersion.VERSION_1_8
  }

  defaultConfig {
    minSdkVersion safeExtGet("minSdkVersion", 21)
    targetSdkVersion safeExtGet("targetSdkVersion", 30)
    versionCode 30
    versionName "13.1.4"
  }
  lintOptions {
    abortOnError false
  }
}

repositories {
  mavenCentral()
}

dependencies {
  implementation project(':expo-modules-core')

  api 'commons-codec:commons-codec:1.10'
  api 'commons-io:commons-io:1.4'
  api 'com.squareup.okhttp3:okhttp:3.10.0'
  api 'com.squareup.okhttp3:okhttp-urlconnection:3.10.0'
  api 'com.squareup.okio:okio:1.17.5'
  api "androidx.legacy:legacy-support-v4:1.0.0"

  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '1.4.21')}"
}

// [BEGIN] Workaround okhttp/okio compatibility issue
// Remove when we drop support for SDK 44
def okhttpPinnedArtifacts = []
configurations.api.getDependencies().removeIf { it ->
  if (['com.squareup.okhttp3', 'com.squareup.okio'].contains(it.group)) {
    okhttpPinnedArtifacts.add("${it.group}:${it.name}:${it.version}")
    return true
  }
  return false
}
okhttpPinnedArtifacts.each { artifact ->
  dependencies.add('compileOnly', artifact)
  dependencies.add('testApi', artifact)
  configurations.all {
    resolutionStrategy.force(artifact)
  }
}
// [END] Workaround okhttp/okio compatibility issue

Выполнить команду


Для локальной разработки. Не используйте в интернете!