react-native-keystore-crypto-joe 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,30 @@
1
- buildscript {
2
- repositories {
3
- google()
4
- mavenCentral()
5
- }
6
- dependencies {
7
- classpath("com.android.tools.build:gradle:8.1.0")
8
- }
1
+ plugins {
2
+ id 'com.android.library'
3
+ id 'org.jetbrains.kotlin.android'
9
4
  }
10
5
 
11
- apply plugin: 'com.android.library'
12
-
13
6
  android {
14
- compileSdkVersion 34
15
- defaultConfig {
16
- minSdkVersion 23
17
- targetSdkVersion 34
18
- consumerProguardFiles 'consumer-rules.pro'
19
- }
20
- sourceSets {
21
- main {
22
- java.srcDirs = ['src/main/java']
23
- manifest.srcFile 'src/main/AndroidManifest.xml'
24
- }
25
- }
26
- namespace "com.keystorecrypto"
7
+ namespace "com.keystorecrypto"
8
+ compileSdk 34
9
+
10
+ defaultConfig {
11
+ minSdk 23
12
+ targetSdk 34
13
+ consumerProguardFiles 'consumer-rules.pro'
14
+ }
15
+
16
+ // optional but often helpful
17
+ kotlinOptions {
18
+ jvmTarget = "17"
19
+ }
27
20
  }
28
21
 
29
22
  repositories {
30
- google()
31
- mavenCentral()
23
+ google()
24
+ mavenCentral()
32
25
  }
33
26
 
34
27
  dependencies {
35
- implementation 'androidx.biometric:biometric:1.2.0-alpha05'
28
+ implementation "org.jetbrains.kotlin:kotlin-stdlib"
29
+ implementation "androidx.biometric:biometric:1.1.0" // use stable unless you need alpha
36
30
  }
@@ -1,4 +1,4 @@
1
- declare module 'react-native-keystore-crypto' {
1
+ declare module 'react-native-keystore-crypto-joe' {
2
2
  export function generateKeyPair(alias: string): Promise<void>;
3
3
  export function getPublicKeyPem(alias: string): Promise<string>;
4
4
  export function decryptRsaOaep(alias: string, ciphertextB64: string, requireBiometric?: boolean): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-keystore-crypto-joe",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "RSA OAEP decrypt via Android Keystore / iOS Keychain + biometric gating for React Native",
5
5
  "main": "src/index.ts",
6
6
  "module": "src/index.ts",
@@ -1,11 +1,11 @@
1
1
  Pod::Spec.new do |s|
2
- s.name = "react-native-keystore-crypto"
2
+ s.name = "react-native-keystore-crypto-joe"
3
3
  s.version = "0.1.0"
4
4
  s.summary = "RSA OAEP decrypt via Keychain/Keystore for React Native"
5
5
  s.license = { :type => "MIT" }
6
6
  s.author = { "Your Name" => "you@example.com" }
7
7
  s.homepage = "https://github.com/yourname/react-native-keystore-crypto"
8
- s.source = { :git => "https://github.com/yourname/react-native-keystore-crypto.git", :tag => "#{s.version}" }
8
+ s.source = { :path => "." }
9
9
  s.platforms = { :ios => "12.0" }
10
10
  s.source_files = "ios/*.{h,m,mm,swift}"
11
11
  s.requires_arc = true