expo-crypto 12.3.0 → 12.4.1

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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,21 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 12.4.1 — 2023-07-04
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 12.4.0 — 2023-06-13
18
+
19
+ ### 📚 3rd party library updates
20
+
21
+ - Updated `robolectric` to `4.10` and `junit` to `4.13.2`. ([#22395](https://github.com/expo/expo/pull/22395) by [@josephyanks](https://github.com/josephyanks))
22
+
23
+ ### 🐛 Bug fixes
24
+
25
+ - Return lower case UUID on iOS. ([#22509](https://github.com/expo/expo/pull/22509) by [@LinusU](https://github.com/LinusU))
26
+ - Fixed Android build warnings for Gradle version 8. ([#22537](https://github.com/expo/expo/pull/22537), [#22609](https://github.com/expo/expo/pull/22609) by [@kudo](https://github.com/kudo))
27
+
13
28
  ## 12.3.0 — 2023-05-08
14
29
 
15
30
  _This version does not introduce any user-facing changes._
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '12.3.0'
6
+ version = '12.4.1'
7
7
 
8
8
  buildscript {
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -35,19 +35,11 @@ buildscript {
35
35
  }
36
36
  }
37
37
 
38
- // Creating sources with comments
39
- task androidSourcesJar(type: Jar) {
40
- classifier = 'sources'
41
- from android.sourceSets.main.java.srcDirs
42
- }
43
-
44
38
  afterEvaluate {
45
39
  publishing {
46
40
  publications {
47
41
  release(MavenPublication) {
48
42
  from components.release
49
- // Add additional sourcesJar to artifacts
50
- artifact(androidSourcesJar)
51
43
  }
52
44
  }
53
45
  repositories {
@@ -70,15 +62,21 @@ android {
70
62
  jvmTarget = JavaVersion.VERSION_11.majorVersion
71
63
  }
72
64
 
65
+ namespace "expo.modules.crypto"
73
66
  defaultConfig {
74
67
  minSdkVersion safeExtGet("minSdkVersion", 21)
75
68
  targetSdkVersion safeExtGet("targetSdkVersion", 33)
76
69
  versionCode 25
77
- versionName "12.3.0"
70
+ versionName "12.4.1"
78
71
  }
79
72
  lintOptions {
80
73
  abortOnError false
81
74
  }
75
+ publishing {
76
+ singleVariant("release") {
77
+ withSourcesJar()
78
+ }
79
+ }
82
80
  }
83
81
 
84
82
  dependencies {
@@ -89,6 +87,6 @@ dependencies {
89
87
  if (project.findProject(':expo-modules-test-core')) {
90
88
  testImplementation project(':expo-modules-test-core')
91
89
  }
92
- testImplementation 'junit:junit:4.12'
93
- testImplementation "org.robolectric:robolectric:4.3.1"
90
+ testImplementation 'junit:junit:4.13.2'
91
+ testImplementation "org.robolectric:robolectric:4.10"
94
92
  }
@@ -1,5 +1,3 @@
1
-
2
- <manifest package="expo.modules.crypto">
1
+ <manifest>
3
2
 
4
3
  </manifest>
5
-
@@ -6,7 +6,7 @@ declare const _default: {
6
6
  getRandomBytes(length: number): Uint8Array;
7
7
  getRandomBytesAsync(length: number): Promise<Uint8Array>;
8
8
  getRandomValues(typedArray: TypedArray): TypedArray;
9
- randomUUID(): string;
9
+ randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
10
10
  digestAsync(algorithm: AlgorithmIdentifier, data: ArrayBuffer): Promise<ArrayBuffer>;
11
11
  };
12
12
  export default _default;
@@ -20,7 +20,7 @@ public class CryptoModule: Module {
20
20
  Function("digest", digest)
21
21
 
22
22
  Function("randomUUID") {
23
- UUID().uuidString
23
+ UUID().uuidString.lowercased()
24
24
  }
25
25
  }
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-crypto",
3
- "version": "12.3.0",
3
+ "version": "12.4.1",
4
4
  "description": "Expo universal module for crypto",
5
5
  "main": "build/Crypto.js",
6
6
  "types": "build/Crypto.d.ts",
@@ -47,5 +47,5 @@
47
47
  "peerDependencies": {
48
48
  "expo": "*"
49
49
  },
50
- "gitHead": "4ba50c428c8369bb6b3a51a860d4898ad4ccbe78"
50
+ "gitHead": "cf90d5c30c2a08a6493ebfa8aa3791aa70666759"
51
51
  }