-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from icerockdev/develop
Release 0.5.0
- Loading branch information
Showing
27 changed files
with
1,402 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
graphics/src/macosX64Main/kotlin/dev/icerock/moko/graphics/ColorExt.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package dev.icerock.moko.graphics | ||
|
||
import platform.AppKit.NSColor | ||
|
||
@Suppress("unused") | ||
// Used in macOS targets | ||
fun Color.toNSColor(): NSColor { | ||
val maxColorValue = 0xFF | ||
return NSColor.colorWithCalibratedRed( | ||
red = red.toDouble() / maxColorValue, | ||
green = green.toDouble() / maxColorValue, | ||
blue = blue.toDouble() / maxColorValue, | ||
alpha = alpha.toDouble() / maxColorValue | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
source 'https://github.com/CocoaPods/Specs.git' | ||
|
||
# ignore all warnings from all pods | ||
inhibit_all_warnings! | ||
|
||
use_frameworks! | ||
platform :osx, '10.6' | ||
|
||
pre_install do |installer| | ||
# We represent a Kotlin/Native module to CocoaPods as a vendored framework. | ||
# CocoaPods needs access to such frameworks during installation process to obtain | ||
# their type (static or dynamic) and configure the Xcode project accordingly. | ||
# Build MultiPlatformLibrary framework to correct install Pod | ||
puts "prepare MultiPlatformLibrary.framework (requires some time...)" | ||
`cd .. && ./gradlew :sample:mpp-library:syncMultiPlatformLibraryDebugFrameworkMacosX64` | ||
puts "preparing MultiPlatformLibrary.framework complete" | ||
end | ||
|
||
target 'macos-app' do | ||
# MultiPlatformLibrary | ||
pod 'MultiPlatformLibrary', :path => '../mpp-library' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
PODS: | ||
- MultiPlatformLibrary (0.1.0) | ||
|
||
DEPENDENCIES: | ||
- MultiPlatformLibrary (from `../mpp-library`) | ||
|
||
EXTERNAL SOURCES: | ||
MultiPlatformLibrary: | ||
:path: "../mpp-library" | ||
|
||
SPEC CHECKSUMS: | ||
MultiPlatformLibrary: 0317a99a1dff77765bdd4ec5a77568f8a96897f0 | ||
|
||
PODFILE CHECKSUM: 093688805caa68eef74b1e9f93486f94144d88ea | ||
|
||
COCOAPODS: 1.10.0 |
Oops, something went wrong.