Skip to content

Commit

Permalink
Rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
hfhbd committed Aug 17, 2024
1 parent 5cb4b71 commit f20d298
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 40 deletions.
54 changes: 27 additions & 27 deletions detekt-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<SmellBaseline>
<ManuallySuppressedIssues/>
<CurrentIssues>
<ID>FunctionNaming:Dsl.kt$public fun UUIDv7(timeStamp: Instant = Clock.System.now(), random: Random): Uuid</ID>
<ID>FunctionNaming:UUID7.kt$public fun UUIDv7(timeStamp: Long, random: Random): Uuid</ID>
<ID>FunctionNaming:Dsl.kt$public fun Uuidv7(timeStamp: Instant = Clock.System.now(), random: Random): Uuid</ID>
<ID>FunctionNaming:Uuidv7.kt$public fun Uuidv7(timeStamp: Long, random: Random): Uuid</ID>
<ID>MagicNumber:KotlinConfig.kt$8</ID>
<ID>MagicNumber:NameBasedGenerator.kt$0x3f</ID>
<ID>MagicNumber:NameBasedGenerator.kt$4</ID>
Expand Down Expand Up @@ -44,31 +44,31 @@
<ID>MagicNumber:SHA1.kt$SHA1.IntArrayView$3</ID>
<ID>MagicNumber:SHA1.kt$SHA1.IntArrayView$4</ID>
<ID>MagicNumber:SHA1.kt$SHA1.IntArrayView$8</ID>
<ID>MagicNumber:UUID.kt$0x0fffL</ID>
<ID>MagicNumber:UUID.kt$0x1fff</ID>
<ID>MagicNumber:UUID.kt$0xf000L</ID>
<ID>MagicNumber:UUID.kt$0xffff00000000L</ID>
<ID>MagicNumber:UUID.kt$0xffff0000L</ID>
<ID>MagicNumber:UUID.kt$0xffffffffffffL</ID>
<ID>MagicNumber:UUID.kt$12</ID>
<ID>MagicNumber:UUID.kt$13</ID>
<ID>MagicNumber:UUID.kt$15</ID>
<ID>MagicNumber:UUID.kt$16</ID>
<ID>MagicNumber:UUID.kt$32</ID>
<ID>MagicNumber:UUID.kt$4</ID>
<ID>MagicNumber:UUID.kt$48</ID>
<ID>MagicNumber:UUID.kt$5</ID>
<ID>MagicNumber:UUID.kt$60</ID>
<ID>MagicNumber:UUID.kt$61</ID>
<ID>MagicNumber:UUID.kt$7</ID>
<ID>MagicNumber:UUID7.kt$0x0fffL</ID>
<ID>MagicNumber:UUID7.kt$0xffff0000L</ID>
<ID>MagicNumber:UUID7.kt$16</ID>
<ID>MagicNumber:UUID7.kt$28672</ID>
<ID>MagicNumber:UUID7.kt$32</ID>
<ID>MagicNumber:UUID7.kt$4095</ID>
<ID>MagicNumber:UUID7.kt$48</ID>
<ID>MagicNumber:UUID7.kt$62</ID>
<ID>MagicNumber:Uuid.kt$0x0fffL</ID>
<ID>MagicNumber:Uuid.kt$0x1fff</ID>
<ID>MagicNumber:Uuid.kt$0xf000L</ID>
<ID>MagicNumber:Uuid.kt$0xffff00000000L</ID>
<ID>MagicNumber:Uuid.kt$0xffff0000L</ID>
<ID>MagicNumber:Uuid.kt$0xffffffffffffL</ID>
<ID>MagicNumber:Uuid.kt$12</ID>
<ID>MagicNumber:Uuid.kt$13</ID>
<ID>MagicNumber:Uuid.kt$15</ID>
<ID>MagicNumber:Uuid.kt$16</ID>
<ID>MagicNumber:Uuid.kt$32</ID>
<ID>MagicNumber:Uuid.kt$4</ID>
<ID>MagicNumber:Uuid.kt$48</ID>
<ID>MagicNumber:Uuid.kt$5</ID>
<ID>MagicNumber:Uuid.kt$60</ID>
<ID>MagicNumber:Uuid.kt$61</ID>
<ID>MagicNumber:Uuid.kt$7</ID>
<ID>MagicNumber:Uuidv7.kt$0x0fffL</ID>
<ID>MagicNumber:Uuidv7.kt$0xffff0000L</ID>
<ID>MagicNumber:Uuidv7.kt$16</ID>
<ID>MagicNumber:Uuidv7.kt$28672</ID>
<ID>MagicNumber:Uuidv7.kt$32</ID>
<ID>MagicNumber:Uuidv7.kt$4095</ID>
<ID>MagicNumber:Uuidv7.kt$48</ID>
<ID>MagicNumber:Uuidv7.kt$62</ID>
<ID>TooManyFunctions:SHA1.kt$SHA1</ID>
</CurrentIssues>
</SmellBaseline>
12 changes: 6 additions & 6 deletions kotlinx-uuid-core/api/android/kotlinx-uuid-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ public final class app/softwork/uuid/RandomGeneratorKt {
public static final fun random (Lkotlin/uuid/Uuid$Companion;Lkotlin/random/Random;)Lkotlin/uuid/Uuid;
}

public final class app/softwork/uuid/UUID7Kt {
public static final fun Uuidv7 (JLkotlin/random/Random;)Lkotlin/uuid/Uuid;
public static final fun getUnixTimeStamp (Lkotlin/uuid/Uuid;)J
}

public final class app/softwork/uuid/UUIDKt {
public final class app/softwork/uuid/UuidKt {
public static final fun from (Lkotlin/uuid/Uuid$Companion;IJIJI)Lkotlin/uuid/Uuid;
public static synthetic fun from$default (Lkotlin/uuid/Uuid$Companion;IJIJIILjava/lang/Object;)Lkotlin/uuid/Uuid;
public static final fun getClockSequence (Lkotlin/uuid/Uuid;)I
Expand All @@ -49,3 +44,8 @@ public final class app/softwork/uuid/UuidParceler : kotlinx/parcelize/Parceler {
public fun write (Lkotlin/uuid/Uuid;Landroid/os/Parcel;I)V
}

public final class app/softwork/uuid/Uuidv7Kt {
public static final fun Uuidv7 (JLkotlin/random/Random;)Lkotlin/uuid/Uuid;
public static final fun getUnixTimeStamp (Lkotlin/uuid/Uuid;)J
}

12 changes: 6 additions & 6 deletions kotlinx-uuid-core/api/jvm/kotlinx-uuid-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ public final class app/softwork/uuid/RandomGeneratorKt {
public static final fun random (Lkotlin/uuid/Uuid$Companion;Lkotlin/random/Random;)Lkotlin/uuid/Uuid;
}

public final class app/softwork/uuid/UUID7Kt {
public static final fun Uuidv7 (JLkotlin/random/Random;)Lkotlin/uuid/Uuid;
public static final fun getUnixTimeStamp (Lkotlin/uuid/Uuid;)J
}

public final class app/softwork/uuid/UUIDKt {
public final class app/softwork/uuid/UuidKt {
public static final fun from (Lkotlin/uuid/Uuid$Companion;IJIJI)Lkotlin/uuid/Uuid;
public static synthetic fun from$default (Lkotlin/uuid/Uuid$Companion;IJIJIILjava/lang/Object;)Lkotlin/uuid/Uuid;
public static final fun getClockSequence (Lkotlin/uuid/Uuid;)I
Expand All @@ -41,3 +36,8 @@ public final class app/softwork/uuid/UUIDKt {
public static final fun toUuidOrNull (Ljava/lang/String;)Lkotlin/uuid/Uuid;
}

public final class app/softwork/uuid/Uuidv7Kt {
public static final fun Uuidv7 (JLkotlin/random/Random;)Lkotlin/uuid/Uuid;
public static final fun getUnixTimeStamp (Lkotlin/uuid/Uuid;)J
}

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private const val UUID_STRING_ALL_FF: String = "ffffffff-ffff-ffff-ffff-ffffffff
private const val UUID_STRING: String = "1b3e4567-e99b-13d3-a476-446657420000"
internal const val SOME_UUID_STRING: String = "1b3e4567-e99b-13d3-a476-446657420000"

class UUIDTest {
class UuidTest {
@Test
fun testZero() {
assertEquals(0, Uuid.NIL.variant)
Expand Down

0 comments on commit f20d298

Please sign in to comment.