react-native-okaycam 1.2.14 → 1.2.15

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/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ### Android
6
6
 
7
- - minSdkVersion >= 26
7
+ - minSdkVersion >= 21
8
8
 
9
9
  ### iOS
10
10
 
File without changes
@@ -0,0 +1,2 @@
1
+ #Thu Jun 12 12:42:16 BDT 2025
2
+ gradle.version=6.8
File without changes
@@ -1,5 +1,5 @@
1
1
  buildscript {
2
- ext.kotlin_version = '1.4.21'
2
+ ext.kotlin_version = '1.9.10'
3
3
  repositories {
4
4
  google()
5
5
  jcenter()
@@ -7,19 +7,22 @@ buildscript {
7
7
  }
8
8
 
9
9
  dependencies {
10
- classpath 'com.android.tools.build:gradle:4.0.1'
10
+ classpath("com.android.tools.build:gradle:8.5.0")
11
+ classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
11
12
  }
12
13
  }
13
14
 
14
15
  apply plugin: 'com.android.library'
16
+ apply plugin: 'com.facebook.react'
17
+ apply plugin: 'org.jetbrains.kotlin.android'
15
18
 
16
19
  android {
17
- compileSdkVersion 33
18
- buildToolsVersion "23.0.3"
20
+ namespace "com.innov8tif.rnokaycam"
21
+ compileSdkVersion 34
19
22
 
20
23
  defaultConfig {
21
- minSdkVersion 26
22
- targetSdkVersion 33
24
+ minSdkVersion 21
25
+ targetSdkVersion 34
23
26
  versionCode 1
24
27
  versionName "1.0"
25
28
  }
@@ -27,8 +30,8 @@ android {
27
30
  abortOnError false
28
31
  }
29
32
  compileOptions {
30
- sourceCompatibility JavaVersion.VERSION_1_8
31
- targetCompatibility JavaVersion.VERSION_1_8
33
+ sourceCompatibility JavaVersion.VERSION_11
34
+ targetCompatibility JavaVersion.VERSION_11
32
35
  }
33
36
  }
34
37
 
@@ -39,13 +42,13 @@ repositories {
39
42
  }
40
43
 
41
44
  dependencies {
42
- implementation 'com.facebook.react:react-native:+'
43
- implementation('com.innov8tif.okaycam:OkayCam:1.2.13@aar') {
45
+ implementation "com.facebook.react:react-android"
46
+ implementation('com.innov8tif.okaycam:OkayCam:1.2.14@aar') {
44
47
  transitive = true
48
+ exclude group: "junit", module: "junit"
49
+ exclude group: "org.hamcrest", module: "hamcrest-core"
45
50
  }
46
51
  implementation 'com.googlecode.json-simple:json-simple:1.1.1'
47
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
48
-
52
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
49
53
  implementation 'com.caverock:androidsvg-aar:1.4'
50
54
  }
51
-
@@ -1,6 +1,5 @@
1
1
 
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.innov8tif.RNOkayCam">
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
4
3
 
5
4
  </manifest>
6
5
 
@@ -1,5 +1,4 @@
1
-
2
- package com.innov8tif.RNOkayCam;
1
+ package com.innov8tif.rnokaycam;
3
2
 
4
3
  import android.app.AlertDialog;
5
4
  import android.content.DialogInterface;
@@ -125,19 +124,20 @@ public class RNOkayCamModule extends ReactContextBaseJavaModule {
125
124
  ));
126
125
 
127
126
  okayCamConfig.setCaptureConfig(new CaptureConfigPair(
128
- firstPhoto != null ? new OkayCamCaptureConfig(
129
- firstPhoto.getInt("delay"),
130
- firstPhoto.getBoolean("onFlash"),
131
- firstPhoto.getString("outputPath")
132
- ) : null,
133
- secondPhoto != null ? new OkayCamCaptureConfig(
134
- secondPhoto.getInt("delay"),
135
- secondPhoto.getBoolean("onFlash"),
136
- secondPhoto.getString("outputPath")
137
- ) : null
127
+ firstPhoto != null ? new OkayCamCaptureConfig(
128
+ firstPhoto.getInt("delay"),
129
+ firstPhoto.getBoolean("onFlash"),
130
+ firstPhoto.getString("outputPath"),
131
+ firstPhoto.hasKey("onImageQuality") ? firstPhoto.getBoolean("onImageQuality") : false
132
+ ) : null,
133
+ secondPhoto != null ? new OkayCamCaptureConfig(
134
+ secondPhoto.getInt("delay"),
135
+ secondPhoto.getBoolean("onFlash"),
136
+ secondPhoto.getString("outputPath"),
137
+ secondPhoto.hasKey("onImageQuality") ? secondPhoto.getBoolean("onImageQuality") : false
138
+ ) : null
138
139
  ));
139
140
 
140
-
141
141
  okayCamConfig.setPreview(getPreviewConfig(preview, frameConfig));
142
142
  okayCamConfig.setInstruction(getInstructionConfig(instruction, frameConfig));
143
143
 
@@ -1,5 +1,4 @@
1
-
2
- package com.innov8tif.RNOkayCam;
1
+ package com.innov8tif.rnokaycam;
3
2
 
4
3
  import java.util.Arrays;
5
4
  import java.util.Collections;
@@ -26,4 +25,4 @@ public class RNOkayCamPackage implements ReactPackage {
26
25
  public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
27
26
  return Collections.emptyList();
28
27
  }
29
- }
28
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-okaycam",
3
3
  "title": "React Native OkayCam",
4
- "version": "1.2.14",
4
+ "version": "1.2.15",
5
5
  "description": "React-Native version of OkayCam",
6
6
  "main": "index.ts",
7
7
  "files": [
@@ -30,11 +30,11 @@
30
30
  "licenseFilename": "LICENSE",
31
31
  "readmeFilename": "README.md",
32
32
  "peerDependencies": {
33
- "react": "^16.8.1",
34
- "react-native": ">=0.60.0-rc.0 <1.0.x"
33
+ "react": "^18.0.2",
34
+ "react-native": ">=0.75.2 <1.0.x"
35
35
  },
36
36
  "devDependencies": {
37
- "react": "^16.9.0",
38
- "react-native": "^0.61.5"
37
+ "react": "^18.0.2",
38
+ "react-native": "^0.75.2"
39
39
  }
40
40
  }
@@ -22,7 +22,7 @@ Pod::Spec.new do |s|
22
22
  s.requires_arc = true
23
23
  s.static_framework = true
24
24
  s.dependency "React"
25
- s.dependency "OkayCam", "1.1.35"
25
+ s.dependency "OkayCam", "1.1.37"
26
26
  end
27
27
 
28
28