File tree 10 files changed +250
-506
lines changed
appleMain/kotlin/kotlinx/uuid
linuxDerivatMain/kotlin/kotlinx/uuid
mingwX64Main/kotlin/kotlinx/uuid
10 files changed +250
-506
lines changed Original file line number Diff line number Diff line change 32
32
- name : Publish
33
33
run : ./gradlew -Pversion=$version -Dorg.gradle.parallel=false publish closeAndReleaseStagingRepository
34
34
env :
35
- SIGNING_PRIVATE_KEY : ${{ secrets.SIGNING_PRIVATE_KEY }}
36
- SIGNING_PASSWORD : ${{ secrets.SIGNING_PASSWORD }}
37
- SONARTYPE_APIKEY : ${{ secrets.SONARTYPE_APIKEY }}
38
- SONARTYPE_APITOKEN : ${{ secrets.SONARTYPE_APITOKEN }}
35
+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_PRIVATE_KEY }}
36
+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_PASSWORD }}
37
+ ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.SONARTYPE_APIKEY }}
38
+ ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.SONARTYPE_APITOKEN }}
Original file line number Diff line number Diff line change 13
13
build :
14
14
runs-on : ubuntu-latest
15
15
permissions :
16
+ contents : write
16
17
security-events : write
17
18
18
19
steps :
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ tasks.dokkaHtmlMultiModule {
19
19
nexusPublishing {
20
20
this .repositories {
21
21
sonatype {
22
- username.set(System .getProperty(" sonartype.apiKey" ) ? : System .getenv(" SONARTYPE_APIKEY" ))
23
- password.set(System .getProperty(" sonartype.apiToken" ) ? : System .getenv(" SONARTYPE_APITOKEN" ))
24
22
nexusUrl.set(uri(" https://s01.oss.sonatype.org/service/local/" ))
25
23
snapshotRepositoryUrl.set(uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" ))
26
24
}
Original file line number Diff line number Diff line change 1
1
[versions ]
2
- kotlin = " 1.8.22 "
2
+ kotlin = " 1.9.0 "
3
3
serialization = " 1.5.1"
4
4
exposed = " 0.41.1"
5
5
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ public final class kotlinx/uuid/UUID$Version : java/lang/Enum {
103
103
public static final field NAME_BASED_SHA1 Lkotlinx/uuid/UUID$Version;
104
104
public static final field RANDOM_BASED Lkotlinx/uuid/UUID$Version;
105
105
public static final field TIME_BASED Lkotlinx/uuid/UUID$Version;
106
+ public static fun getEntries ()Lkotlin/enums/EnumEntries;
106
107
public static fun valueOf (Ljava/lang/String;)Lkotlinx/uuid/UUID$Version;
107
108
public static fun values ()[Lkotlinx/uuid/UUID$Version;
108
109
}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ public actual val SecureRandom: Random = SecureRandomIos
11
11
/* *
12
12
* https://developer.apple.com/documentation/security/1399291-secrandomcopybytes?language=objc
13
13
*/
14
+ @OptIn(ExperimentalForeignApi ::class )
14
15
private object SecureRandomIos : Random() {
15
16
override fun nextBits (bitCount : Int ): Int {
16
17
require(bitCount > 0 )
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import kotlin.random.*
7
7
8
8
public actual val SecureRandom : Random = DevUrandom ()
9
9
10
+ @OptIn(ExperimentalForeignApi ::class )
10
11
private class DevUrandom : Random () {
11
12
override fun nextBits (bitCount : Int ): Int {
12
13
require(bitCount > 0 )
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import kotlin.random.*
7
7
8
8
public actual val SecureRandom : Random = BCryptRandom ()
9
9
10
+ @OptIn(ExperimentalForeignApi ::class )
10
11
private class BCryptRandom : Random () {
11
12
override fun nextBits (bitCount : Int ): Int {
12
13
require(bitCount > 0 )
@@ -16,8 +17,8 @@ private class BCryptRandom : Random() {
16
17
BCryptGenRandom (
17
18
hAlgorithm = null ,
18
19
pbBuffer = it.addressOf(0 ).reinterpret(),
19
- cbBuffer = numberOfBytes.toUInt (),
20
- dwFlags = BCRYPT_USE_SYSTEM_PREFERRED_RNG
20
+ cbBuffer = numberOfBytes.convert (),
21
+ dwFlags = BCRYPT_USE_SYSTEM_PREFERRED_RNG .convert()
21
22
)
22
23
}
23
24
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ pluginManagement {
12
12
13
13
plugins {
14
14
id(" mySettings" )
15
+ id(" org.gradle.toolchains.foojay-resolver-convention" ) version " 0.6.0"
15
16
id(" com.gradle.enterprise" ) version " 3.14.1"
16
17
}
17
18
You can’t perform that action at this time.
0 commit comments