Skip to content

Commit

Permalink
Update to API 34
Browse files Browse the repository at this point in the history
  • Loading branch information
romainguy committed Jul 12, 2023
1 parent b4eacd4 commit 5214373
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}
dependencies {
implementation 'dev.romainguy:pathway:0.12.0'
implementation 'dev.romainguy:pathway:0.14.0'
}
```

Expand Down Expand Up @@ -69,11 +69,10 @@ properly honor the path's fill type.
## Iterating over a Path

> **Note**
> As of Android 14 (tentatively API 34), iterating over a `Path` can be achieved using the new
> As of Android 14 (API 34), iterating over a `Path` can be achieved using the new
> platform API [getPathIterator()](https://developer.android.com/reference/android/graphics/Path#getPathIterator()).
> Pathway is however compatible with Android 14, including Developer Preview builds. You can
> also use the new androidx
> [graphics-path library](https://developer.android.com/jetpack/androidx/releases/graphics#graphics-path-1.0.0-alpha01).
> Pathway is however compatible with Android 14. You can also use the new androidx
> [graphics-path library](https://developer.android.com/jetpack/androidx/releases/graphics#graphics-path-1.0.0-alpha02).
With Pathway you can easily iterate over a `Path` object to inspect its segments
(curves or commands):
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
dependencies {
classpath "com.android.tools.build:gradle:7.4.2"
classpath "com.vanniktech:gradle-maven-publish-plugin:0.24.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.8.10"
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=dev.romainguy
VERSION_NAME=0.12.0
VERSION_NAME=0.14.0

SONATYPE_HOST=S01
RELEASE_SIGNING_ENABLED=true
Expand Down
7 changes: 4 additions & 3 deletions pathway/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ group = GROUP
version = VERSION_NAME

android {
compileSdkPreview 'UpsideDownCake'
ndkVersion '25.1.8937393'
namespace "dev.romainguy.graphics.path"

compileSdkVersion 34
ndkVersion '25.1.8937393'

defaultConfig {
minSdk 21
targetSdk 34
Expand Down Expand Up @@ -43,7 +44,7 @@ android {
}

dependencies {
androidTestImplementation 'androidx.core:core-ktx:1.9.0'
androidTestImplementation 'androidx.core:core-ktx:1.10.1'
androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test:rules:1.5.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
Expand Down

0 comments on commit 5214373

Please sign in to comment.