mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-05 07:59:28 +00:00
fix: scale path markers so they match ios (#2018)
PR adding scaling of markers of path in order to make them behave the same as on iOS. Also bumped the versions of agp and spotless.
This commit is contained in:
@@ -7,10 +7,10 @@ buildscript {
|
||||
mavenCentral()
|
||||
google()
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
classpath("com.android.tools.build:gradle:3.6.1")
|
||||
classpath "com.diffplug.spotless:spotless-plugin-gradle:5.15.0"
|
||||
classpath("com.android.tools.build:gradle:7.4.2")
|
||||
classpath "com.diffplug.spotless:spotless-plugin-gradle:6.17.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,8 +39,10 @@ def safeExtGet(prop, fallback) {
|
||||
|
||||
android {
|
||||
compileSdkVersion safeExtGet('compileSdkVersion', 28)
|
||||
namespace "com.horcrux.svg"
|
||||
|
||||
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
|
||||
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
|
||||
namespace "com.horcrux.svg"
|
||||
}
|
||||
// Used to override the NDK path/version on internal CI or by allowing
|
||||
// users to customize the NDK path/version from their root project (e.g. for M1 support)
|
||||
if (rootProject.hasProperty("ndkPath")) {
|
||||
@@ -55,7 +57,7 @@ android {
|
||||
//noinspection OldTargetApi
|
||||
targetSdkVersion safeExtGet('targetSdkVersion', 28)
|
||||
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
||||
|
||||
|
||||
consumerProguardFiles 'proguard-rules.pro'
|
||||
}
|
||||
lintOptions {
|
||||
@@ -66,7 +68,7 @@ android {
|
||||
java {
|
||||
if (!isNewArchitectureEnabled()) {
|
||||
srcDirs += [
|
||||
"src/paper/java",
|
||||
"src/paper/java",
|
||||
"build/generated/source/codegen/java"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user