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:
Wojciech Lewicki
2023-03-30 14:27:30 +02:00
committed by GitHub
parent a7af70c43d
commit 29382d927a
8 changed files with 324 additions and 37 deletions
+9 -7
View File
@@ -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"
]
}