File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
src/main/java/de/contentpass/lib Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1414Our SDK is available on Maven Central.
1515
1616``` groovy
17- implementation 'de.contentpass:contentpass-android:2.2.1 '
17+ implementation 'de.contentpass:contentpass-android:2.2.2 '
1818```
1919
2020Add this to your app's ` build.gradle ` file's ` dependencies ` element.
Original file line number Diff line number Diff line change 5858extra.apply {
5959 set(" PUBLISH_GROUP_ID" , " de.contentpass" )
6060 set(" PUBLISH_ARTIFACT_ID" , " contentpass-android" )
61- set(" PUBLISH_VERSION" , " 2.2.1 " )
61+ set(" PUBLISH_VERSION" , " 2.2.2 " )
6262}
6363
6464apply (" ${rootProject.projectDir} /scripts/publish-module.gradle" )
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class ContentPass internal constructor(
112112 fun build (): ContentPass {
113113 configuration = grabConfiguration()
114114 val authorizer = Authorizer (configuration!! , context!! )
115- val store = TokenStore (context!! , KeyStore (context!! ))
115+ val store = TokenStore (context!! , KeyStore (context!! , configuration !! .propertyId ))
116116 return ContentPass (authorizer, store, configuration!! )
117117 }
118118
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ import javax.crypto.spec.SecretKeySpec
1818import javax.security.auth.x500.X500Principal
1919import java.security.KeyStore as VendorKeyStore
2020
21- internal class KeyStore (private val context : Context ) {
21+ internal class KeyStore (private val context : Context , private val propertyId : String ) {
2222 private val keystoreName = " AndroidKeyStore"
23- private val keyPairAlias = " de.contentpass.KeyPair"
23+ private val keyPairAlias = " de.contentpass.KeyPair. $propertyId "
2424 private val privateKey: PrivateKey
2525 private val publicKey: PublicKey
2626 private val keystore = VendorKeyStore .getInstance(keystoreName)
You can’t perform that action at this time.
0 commit comments