Skip to content

Commit 11b2ff0

Browse files
author
Jan Gaebel
committed
feat(ios): remove deprecated init()
1 parent f047e12 commit 11b2ff0

File tree

1 file changed

+1
-17
lines changed
  • src/iosMain/kotlin/com/liftric/kvault

1 file changed

+1
-17
lines changed

src/iosMain/kotlin/com/liftric/kvault/KVault.kt

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ import platform.Security.*
77
import platform.darwin.OSStatus
88
import platform.darwin.noErr
99

10-
internal val NSBundle.Companion.mainIdentifier
11-
get() = this.mainBundle.bundleIdentifier?: "com.liftric.KVault"
12-
1310
/**
1411
* Keychain wrapper.
12+
* Note: Using the deprecated init() the service name was the apps bundle identifier or if null "com.liftric.KVault".
1513
*
1614
* @param serviceName Name of the service. Used to categories entries.
1715
* @param accessGroup Name of the access group. Used to share entries between apps.
@@ -21,20 +19,6 @@ actual open class KVault(
2119
val serviceName: String? = null,
2220
val accessGroup: String? = null
2321
) {
24-
/**
25-
* Initiates a Keychain with the main bundle identifier as the service name and without an access group.
26-
* If the main bundle identifier is null, it will fallback to `com.liftric.KVault`.
27-
*/
28-
@Deprecated(
29-
"""
30-
Will be removed in a future version,
31-
please use the primary constructor.
32-
Check your service name before migrating.
33-
""",
34-
level = DeprecationLevel.WARNING
35-
)
36-
constructor() : this(NSBundle.mainIdentifier, null)
37-
3822
/**
3923
* Saves a string value in the Keychain.
4024
* @param key The key to store

0 commit comments

Comments
 (0)