Skip to content

Commit 2918cf3

Browse files
committed
Rename iOSAuthentication -> iOSAuthorization
1 parent 1fb458b commit 2918cf3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/main/kotlin/one/mixin/handsaw/main.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ private class GenerateCommand : CliktCommand(
4949
AndroidGenerator()
5050
} else if (platform.equals(Platform.IOS.toString(), true)) {
5151
getIOSGenerator(Platform.IOS, keyType)
52-
} else if (platform.equals(Platform.IOSAuthentication.toString(), true)) {
53-
getIOSGenerator(Platform.IOSAuthentication, keyType)
52+
} else if (platform.equals(Platform.IOSAuthorization.toString(), true)) {
53+
getIOSGenerator(Platform.IOSAuthorization, keyType)
5454
} else if (platform.equals(Platform.AppStore.toString(), true)) {
5555
getIOSGenerator(Platform.AppStore, keyType)
5656
} else if (platform.equals(Platform.Desktop.toString(), true)) {
@@ -72,7 +72,7 @@ private class GenerateCommand : CliktCommand(
7272

7373
private fun getIOSGenerators(keyType: Int): Array<IOSGenerator> = arrayOf(
7474
getIOSGenerator(Platform.IOS, keyType),
75-
getIOSGenerator(Platform.IOSAuthentication, keyType),
75+
getIOSGenerator(Platform.IOSAuthorization, keyType),
7676
getIOSGenerator(Platform.AppStore, keyType),
7777
)
7878
}

src/main/kotlin/one/mixin/handsaw/platform.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ sealed class Platform {
44
object Android : Platform()
55
object IOS : Platform()
66
object Desktop: Platform()
7-
object IOSAuthentication: Platform()
7+
object IOSAuthorization: Platform()
88
object AppStore: Platform()
99

1010
override fun toString(): String =
1111
when(this) {
1212
Android -> "Android"
1313
IOS -> "iOS"
1414
Desktop -> "Desktop"
15-
IOSAuthentication -> "iOSAuthentication"
15+
IOSAuthorization -> "iOSAuthorization"
1616
AppStore -> "AppStore"
1717
}
1818
}

src/test/kotlin/one/mixin/handsaw/generate_test.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class GeneratorTest {
1919
var iOSGenerator = IOSGenerator(Platform.IOS)
2020
iOSGenerator.generate(parseResult, null)
2121

22-
iOSGenerator = IOSGenerator(Platform.IOSAuthentication)
22+
iOSGenerator = IOSGenerator(Platform.IOSAuthorization)
2323
iOSGenerator.generate(parseResult, null)
2424

2525
iOSGenerator = IOSGenerator(Platform.AppStore)

0 commit comments

Comments
 (0)