-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge v1.0-beta-16 changes from develop
Merge changes for v1.0-beta-16.
- Loading branch information
Showing
7 changed files
with
88 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# preserve the line number information for debugging stack traces. | ||
-dontobfuscate | ||
-keepattributes LocalVariableTable | ||
-keepattributes LocalVariableTypeTable | ||
-keepattributes *Annotation* | ||
-keepattributes SourceFile | ||
-keepattributes LineNumberTable | ||
-keepattributes Signature | ||
-keepattributes Exceptions | ||
-keepattributes InnerClasses | ||
-keepattributes EnclosingMethod | ||
-keepattributes MethodParameters | ||
-keepparameternames | ||
|
||
|
||
# Keep all names | ||
-keepnames class ** { *; } | ||
|
||
# Keep All enums | ||
-keep enum ** { *; } | ||
|
||
# preserve access to native classses | ||
-keep class fr.acinq.secp256k1.** { *; } |
13 changes: 13 additions & 0 deletions
13
rhodium-core/src/androidMain/kotlin/rhodium/crypto/CryptoProvider.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package rhodium.crypto | ||
|
||
import dev.whyoleg.cryptography.CryptographyProvider | ||
import dev.whyoleg.cryptography.providers.jdk.JDK | ||
import dev.whyoleg.cryptography.random.CryptographyRandom | ||
import dev.whyoleg.cryptography.random.asCryptographyRandom | ||
import java.security.SecureRandom | ||
|
||
actual fun SecureRandom() : CryptographyRandom = SecureRandom().asCryptographyRandom() | ||
|
||
actual fun getCryptoProvider(): CryptographyProvider { | ||
return CryptographyProvider.JDK | ||
} |
9 changes: 9 additions & 0 deletions
9
rhodium-core/src/androidMain/kotlin/rhodium/net/HttpClient.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package rhodium.net | ||
|
||
import io.ktor.client.* | ||
import io.ktor.client.engine.okhttp.* | ||
|
||
internal actual fun httpClient(config: HttpClientConfig<*>.() -> Unit) = HttpClient(OkHttp) { | ||
config(this) | ||
|
||
} |