-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to multiplatform Parcelize annotation (#337)
* Switch to multiplatform Parcelize annotation * Fix hierarchical android source sets * Test hierarchical source set
- Loading branch information
Showing
22 changed files
with
57 additions
and
135 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
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
5 changes: 5 additions & 0 deletions
5
kotlinx-uuid-core/src/androidMain/kotlin/kotlinx/uuid/internal/CommonParcelable.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,5 @@ | ||
package kotlinx.uuid.internal | ||
|
||
import android.os.* | ||
|
||
public actual typealias CommonParcelable = Parcelable |
31 changes: 0 additions & 31 deletions
31
kotlinx-uuid-core/src/androidMain/kotlin/kotlinx/uuid/internal/Parcelable.android.kt
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
kotlinx-uuid-core/src/appleMain/kotlin/kotlinx/uuid/internal/CommonParcelable.apple.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 kotlinx.uuid.internal | ||
|
||
public actual interface CommonParcelable |
13 changes: 0 additions & 13 deletions
13
kotlinx-uuid-core/src/appleMain/kotlin/kotlinx/uuid/internal/Parcelable.apple.kt
This file was deleted.
Oops, something went wrong.
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
13 changes: 3 additions & 10 deletions
13
kotlinx-uuid-core/src/commonMain/kotlin/kotlinx/uuid/internal/Parcelable.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 |
---|---|---|
@@ -1,13 +1,6 @@ | ||
package kotlinx.uuid.internal | ||
|
||
import kotlinx.uuid.* | ||
@Target(AnnotationTarget.CLASS) | ||
internal annotation class CommonParcelize | ||
|
||
@Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING") | ||
public expect abstract class Parcelable( | ||
timeStampAndVersionRaw: Long, | ||
clockSequenceVariantAndNodeRaw: Long | ||
) | ||
|
||
public expect interface ParcelableCreator<T : Any> | ||
|
||
internal expect val creator: ParcelableCreator<UUID> | ||
public expect interface CommonParcelable |
3 changes: 3 additions & 0 deletions
3
kotlinx-uuid-core/src/jsMain/kotlin/kotlinx/uuid/internal/CommonParcelable.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 kotlinx.uuid.internal | ||
|
||
public actual interface CommonParcelable |
13 changes: 0 additions & 13 deletions
13
kotlinx-uuid-core/src/jsMain/kotlin/kotlinx/uuid/internal/Parcelable.js.kt
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
kotlinx-uuid-core/src/jvmMain/kotlin/kotlinx/uuid/internal/CommonParcelable.jvm.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 kotlinx.uuid.internal | ||
|
||
public actual interface CommonParcelable |
15 changes: 0 additions & 15 deletions
15
kotlinx-uuid-core/src/jvmMain/kotlin/kotlinx/uuid/internal/Parcelable.jvm.kt
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...inx-uuid-core/src/linuxDerivatMain/kotlin/kotlinx/uuid/internal/CommonParcelable.linux.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 kotlinx.uuid.internal | ||
|
||
public actual interface CommonParcelable |
13 changes: 0 additions & 13 deletions
13
kotlinx-uuid-core/src/linuxDerivatMain/kotlin/kotlinx/uuid/internal/Parcelable.linux.kt
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
kotlinx-uuid-core/src/mingwX64Main/kotlin/kotlinx/uuid/internal/CommonParcelable.ming.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 kotlinx.uuid.internal | ||
|
||
public actual interface CommonParcelable |
13 changes: 0 additions & 13 deletions
13
kotlinx-uuid-core/src/mingwX64Main/kotlin/kotlinx/uuid/internal/Parcelable.ming.kt
This file was deleted.
Oops, something went wrong.