-
-
Notifications
You must be signed in to change notification settings - Fork 84
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 #168 from MohamedRejeb/1.x
Fix long click crash on Android and iOS
- Loading branch information
Showing
12 changed files
with
109 additions
and
22 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
3 changes: 3 additions & 0 deletions
3
...r-compose/src/androidMain/kotlin/com/mohamedrejeb/richeditor/platform/Platform.android.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,3 @@ | ||
package com.mohamedrejeb.richeditor.platform | ||
|
||
internal actual val currentPlatform: Platform = Platform.Android |
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
19 changes: 19 additions & 0 deletions
19
richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/platform/Platform.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,19 @@ | ||
package com.mohamedrejeb.richeditor.platform | ||
|
||
internal enum class Platform { | ||
Android, IOS, Desktop, Web; | ||
|
||
val isAndroid: Boolean | ||
get() = this == Android | ||
|
||
val isIOS: Boolean | ||
get() = this == IOS | ||
|
||
val isDesktop: Boolean | ||
get() = this == Desktop | ||
|
||
val isWeb: Boolean | ||
get() = this == Web | ||
} | ||
|
||
internal expect val currentPlatform: Platform |
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
3 changes: 3 additions & 0 deletions
3
...r-compose/src/desktopMain/kotlin/com/mohamedrejeb/richeditor/platform/Platform.desktop.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,3 @@ | ||
package com.mohamedrejeb.richeditor.platform | ||
|
||
internal actual val currentPlatform: Platform = Platform.Desktop |
3 changes: 3 additions & 0 deletions
3
richeditor-compose/src/iosMain/kotlin/com/mohamedrejeb/richeditor/platform/Platform.ios.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,3 @@ | ||
package com.mohamedrejeb.richeditor.platform | ||
|
||
internal actual val currentPlatform: Platform = Platform.IOS |
3 changes: 3 additions & 0 deletions
3
richeditor-compose/src/jsMain/kotlin/com/mohamedrejeb/richeditor/platform/Platform.js.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,3 @@ | ||
package com.mohamedrejeb.richeditor.platform | ||
|
||
internal actual val currentPlatform: Platform = Platform.Web |
Binary file modified
BIN
+1.72 KB
(110%)
...project.xcworkspace/xcuserdata/mohamedbenrejeb.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
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
Empty file.