Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
2463e751
Unverified
Commit
2463e751
authored
Jan 21, 2021
by
Nikolay Igotti
Committed by
GitHub
Jan 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Skiko to version 0.2.0. (#48)
parent
f87ddd71
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
README.md
README.md
+1
-1
build.gradle
samples/SkijaInjectSample/build.gradle
+1
-1
RELEASE.md
skiko/RELEASE.md
+1
-1
gradle.properties
skiko/gradle.properties
+1
-1
SkiaLayer.kt
skiko/src/jvmMain/kotlin/org/jetbrains/skiko/SkiaLayer.kt
+1
-1
No files found.
README.md
View file @
2463e751
...
...
@@ -75,7 +75,7 @@ if (os == "Mac OS X") {
dependencies
{
implementation
'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation
"org.jetbrains.skiko:skiko-jvm-runtime-$target-x64:0.
1.21
"
implementation
"org.jetbrains.skiko:skiko-jvm-runtime-$target-x64:0.
2.0
"
}
application
{
...
...
samples/SkijaInjectSample/build.gradle
View file @
2463e751
...
...
@@ -36,7 +36,7 @@ if (osArch == "x86_64" || osArch == "amd64") {
}
def
target
=
"${targetOs}-${targetArch}"
def
version
=
"0.
1
-SNAPSHOT"
def
version
=
"0.
0.0
-SNAPSHOT"
if
(
project
.
hasProperty
(
'skiko.version'
))
{
version
=
project
.
properties
[
'skiko.version'
]
}
...
...
skiko/RELEASE.md
View file @
2463e751
...
...
@@ -42,7 +42,7 @@ Set up environment variables `COMPOSE_REPO_USERNAME` and `COMPOSE_REPO_KEY`.
##### Publish local version
```
./gradlew <PUBLISH_TASK> -Pdeploy.version=0.
1.2
-Pdeploy.release=true
./gradlew <PUBLISH_TASK> -Pdeploy.version=0.
2.0
-Pdeploy.release=true
```
##### Code signing
...
...
skiko/gradle.properties
View file @
2463e751
kotlin.code.style
=
official
deploy.version
=
0.
1
deploy.version
=
0.
0.0
dependencies.skija.git.commit
=
aa020d00649cbbef35d999c482ed0e1aa3cca692
dependencies.skia.windows-x64
=
m88-21ebdec517/Skia-m88-21ebdec517-windows-Release-x64
...
...
skiko/src/jvmMain/kotlin/org/jetbrains/skiko/SkiaLayer.kt
View file @
2463e751
...
...
@@ -92,7 +92,7 @@ open class SkiaLayer : HardwareLayer() {
val
pictureWidth
=
(
width
*
contentScale
).
toInt
().
coerceAtLeast
(
0
)
val
pictureHeight
=
(
height
*
contentScale
).
toInt
().
coerceAtLeast
(
0
)
val
bounds
=
Rect
.
makeWH
(
pictureWidth
.
toFloat
(),
pictureHeight
.
toFloat
())
!!
val
bounds
=
Rect
.
makeWH
(
pictureWidth
.
toFloat
(),
pictureHeight
.
toFloat
())
val
canvas
=
pictureRecorder
.
beginRecording
(
bounds
)
!!
// clipping
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment