chore: Replace '
with "
This commit is contained in:
parent
92c27b06ae
commit
4cbe8324d5
@ -1,7 +1,7 @@
|
|||||||
import java.nio.file.Paths
|
import java.nio.file.Paths
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['VisionCamera_kotlinVersion']
|
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["VisionCamera_kotlinVersion"]
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
@ -20,9 +20,9 @@ buildscript {
|
|||||||
|
|
||||||
def resolveBuildType() {
|
def resolveBuildType() {
|
||||||
Gradle gradle = getGradle()
|
Gradle gradle = getGradle()
|
||||||
String tskReqStr = gradle.getStartParameter().getTaskRequests()['args'].toString()
|
String tskReqStr = gradle.getStartParameter().getTaskRequests()["args"].toString()
|
||||||
|
|
||||||
return tskReqStr.contains('Release') ? 'release' : 'debug'
|
return tskReqStr.contains("Release") ? "release" : "debug"
|
||||||
}
|
}
|
||||||
|
|
||||||
def isNewArchitectureEnabled() {
|
def isNewArchitectureEnabled() {
|
||||||
@ -34,10 +34,10 @@ def isNewArchitectureEnabled() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isNewArchitectureEnabled()) {
|
if (isNewArchitectureEnabled()) {
|
||||||
apply plugin: 'com.facebook.react'
|
apply plugin: "com.facebook.react"
|
||||||
}
|
}
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: "com.android.library"
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: "kotlin-android"
|
||||||
|
|
||||||
def safeExtGet(prop, fallback) {
|
def safeExtGet(prop, fallback) {
|
||||||
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
||||||
@ -50,7 +50,7 @@ def reactNativeArchitectures() {
|
|||||||
|
|
||||||
static def findNodeModules(baseDir) {
|
static def findNodeModules(baseDir) {
|
||||||
def basePath = baseDir.toPath().normalize()
|
def basePath = baseDir.toPath().normalize()
|
||||||
// Node's module resolution algorithm searches up to the root directory,
|
// Node"s module resolution algorithm searches up to the root directory,
|
||||||
// after which the base path will be null
|
// after which the base path will be null
|
||||||
while (basePath) {
|
while (basePath) {
|
||||||
def nodeModulesPath = Paths.get(basePath.toString(), "node_modules")
|
def nodeModulesPath = Paths.get(basePath.toString(), "node_modules")
|
||||||
@ -90,9 +90,9 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion safeExtGet('minSdkVersion', 26)
|
minSdkVersion safeExtGet("minSdkVersion", 26)
|
||||||
compileSdkVersion safeExtGet('compileSdkVersion', 33)
|
compileSdkVersion safeExtGet("compileSdkVersion", 33)
|
||||||
targetSdkVersion safeExtGet('targetSdkVersion', 33)
|
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
||||||
@ -119,7 +119,7 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
doNotStrip resolveBuildType() == 'debug' ? "**/**/*.so" : ''
|
doNotStrip resolveBuildType() == "debug" ? "**/**/*.so" : ""
|
||||||
excludes = [
|
excludes = [
|
||||||
"META-INF",
|
"META-INF",
|
||||||
"META-INF/**",
|
"META-INF/**",
|
||||||
|
Loading…
Reference in New Issue
Block a user