react-native-printer-imin 0.10.2 → 0.10.6

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
@@ -34,8 +34,14 @@ MIT
34
34
  ---
35
35
 
36
36
  Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
37
-
38
- # 更新版本号
37
+ # 更新0.10.5 版本 Updated to version 0.10.5
38
+ 更新内容 : 适配A15 Update details: Adapted for A15
39
+ # 更新0.10.4版本 Updated to version 0.10.4
40
+ 更新内容: 更新版本号 Update details: Updated version number
41
+ # 更新0.10.3版本 Updated to version 0.10.3
42
+ fix: adapt .so file for android 16k page, update SDK to iminPrinterSDK-15_V1.3.2_2505261539.jar
43
+ 更新内容:fix: all->适配.so文件安卓16k页面,更新SDK:iminPrinterSDK-15_V1.3.2_2505261539.jar
44
+ # 更新版本号0.10.2
39
45
  # 更新0.10.1版本
40
46
  # 新增标签打印api
41
47
  # 编辑 package.json 文件,将 "version": "0.8.0" 更新为 "version": "0.9.0"
@@ -1,112 +1,113 @@
1
- buildscript {
2
- repositories {
3
- google()
4
- mavenCentral()
5
- maven{
6
- allowInsecureProtocol = true
7
- url 'https://www.jitpack.io'
8
- }
9
- }
10
-
11
- dependencies {
12
- classpath "com.android.tools.build:gradle:7.2.1"
13
- }
14
- }
15
-
16
- def isNewArchitectureEnabled() {
17
- return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
18
- }
19
-
20
- apply plugin: "com.android.library"
21
-
22
- if (isNewArchitectureEnabled()) {
23
- apply plugin: "com.facebook.react"
24
- }
25
-
26
- def getExtOrDefault(name) {
27
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["PrinterImin_" + name]
28
- }
29
-
30
- def getExtOrIntegerDefault(name) {
31
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["PrinterImin_" + name]).toInteger()
32
- }
33
-
34
- def supportsNamespace() {
35
- def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
36
- def major = parsed[0].toInteger()
37
- def minor = parsed[1].toInteger()
38
-
39
- // Namespace support was added in 7.3.0
40
- return (major == 7 && minor >= 3) || major >= 8
41
- }
42
-
43
- android {
44
- if (supportsNamespace()) {
45
- namespace "com.printerimin"
46
-
47
- sourceSets {
48
- main {
49
- jniLibs.srcDirs = ['jniLibs']
50
- manifest.srcFile "src/main/AndroidManifestNew.xml"
51
- }
52
- }
53
- }
54
-
55
- compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
56
-
57
- defaultConfig {
58
- minSdkVersion getExtOrIntegerDefault("minSdkVersion")
59
- targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
60
- buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
61
- ndk {
62
- abiFilters "armeabi-v7a", "x86", "arm64-v8a"
63
- }
64
- }
65
-
66
- buildTypes {
67
- release {
68
- minifyEnabled false
69
- }
70
- }
71
-
72
- lintOptions {
73
- disable "GradleCompatible"
74
- }
75
-
76
- compileOptions {
77
- sourceCompatibility JavaVersion.VERSION_1_8
78
- targetCompatibility JavaVersion.VERSION_1_8
79
- }
80
- }
81
-
82
- repositories {
83
- mavenCentral()
84
- google()
85
- maven{
86
- allowInsecureProtocol = true
87
- url 'https://www.jitpack.io'
88
- }
89
- }
90
-
91
-
92
- dependencies {
93
- // For < 0.71, this will be from the local maven repo
94
- // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
95
- //noinspection GradleDynamicVersion
96
- implementation "com.facebook.react:react-native:+"
97
- implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
98
- // implementation files('libs/IminLibs1.0.15.jar')
99
- implementation files('libs/IminStraElectronicSDK_V1.2.jar')
100
- implementation files('libs/iminPrinterSDK-15_V1.3.2_2411051634.jar')
101
- implementation 'com.github.iminsoftware:IminPrinterLibrary:V1.0.0.15'
102
- implementation 'com.github.bumptech.glide:glide:4.16.0'
103
- annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
104
- }
105
-
106
- if (isNewArchitectureEnabled()) {
107
- react {
108
- jsRootDir = file("../src/")
109
- libraryName = "iminprinter"
110
- codegenJavaPackageName = "com.iminprinter"
111
- }
112
- }
1
+ buildscript {
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ maven{
6
+ allowInsecureProtocol = true
7
+ url 'https://www.jitpack.io'
8
+ }
9
+ }
10
+
11
+ dependencies {
12
+ classpath "com.android.tools.build:gradle:7.2.1"
13
+ }
14
+ }
15
+
16
+ def isNewArchitectureEnabled() {
17
+ return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
18
+ }
19
+
20
+ apply plugin: "com.android.library"
21
+
22
+ if (isNewArchitectureEnabled()) {
23
+ apply plugin: "com.facebook.react"
24
+ }
25
+
26
+ def getExtOrDefault(name) {
27
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["PrinterImin_" + name]
28
+ }
29
+
30
+ def getExtOrIntegerDefault(name) {
31
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["PrinterImin_" + name]).toInteger()
32
+ }
33
+
34
+ def supportsNamespace() {
35
+ def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
36
+ def major = parsed[0].toInteger()
37
+ def minor = parsed[1].toInteger()
38
+
39
+ // Namespace support was added in 7.3.0
40
+ return (major == 7 && minor >= 3) || major >= 8
41
+ }
42
+
43
+ android {
44
+ if (supportsNamespace()) {
45
+ namespace "com.printerimin"
46
+
47
+ sourceSets {
48
+ main {
49
+ jniLibs.srcDirs = ['jniLibs']
50
+ manifest.srcFile "src/main/AndroidManifestNew.xml"
51
+ }
52
+ }
53
+ }
54
+
55
+ compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
56
+
57
+ defaultConfig {
58
+ minSdkVersion getExtOrIntegerDefault("minSdkVersion")
59
+ targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
60
+ buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
61
+ ndk {
62
+ abiFilters "armeabi-v7a", "x86", "arm64-v8a"
63
+ }
64
+ }
65
+
66
+ buildTypes {
67
+ release {
68
+ minifyEnabled false
69
+ }
70
+ }
71
+
72
+ lintOptions {
73
+ disable "GradleCompatible"
74
+ }
75
+
76
+ compileOptions {
77
+ sourceCompatibility JavaVersion.VERSION_1_8
78
+ targetCompatibility JavaVersion.VERSION_1_8
79
+ }
80
+ }
81
+
82
+ repositories {
83
+ mavenCentral()
84
+ google()
85
+ maven{
86
+ allowInsecureProtocol = true
87
+ url 'https://www.jitpack.io'
88
+ }
89
+ }
90
+
91
+
92
+ dependencies {
93
+ // For < 0.71, this will be from the local maven repo
94
+ // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
95
+ //noinspection GradleDynamicVersion
96
+ implementation "com.facebook.react:react-native:+"
97
+ implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
98
+ // implementation files('libs/IminLibs1.0.15.jar')
99
+ implementation files('libs/IminStraElectronicSDK_V1.2.jar')
100
+ // implementation files('libs/iminPrinterSDK-15_V1.3.2_2411051634.jar')
101
+ implementation 'com.github.iminsoftware:IminPrinterLibrary:V1.0.0.15'
102
+ implementation 'com.github.bumptech.glide:glide:4.16.0'
103
+ implementation files('libs\\iminPrinterSDK-15_V1.3.2_2505261539.jar')
104
+ annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
105
+ }
106
+
107
+ if (isNewArchitectureEnabled()) {
108
+ react {
109
+ jsRootDir = file("../src/")
110
+ libraryName = "iminprinter"
111
+ codegenJavaPackageName = "com.iminprinter"
112
+ }
113
+ }
@@ -1,5 +1,5 @@
1
- PrinterImin_kotlinVersion=1.7.0
2
- PrinterImin_minSdkVersion=21
3
- PrinterImin_targetSdkVersion=31
4
- PrinterImin_compileSdkVersion=31
5
- PrinterImin_ndkversion=21.4.7075529
1
+ PrinterImin_kotlinVersion=1.7.0
2
+ PrinterImin_minSdkVersion=21
3
+ PrinterImin_targetSdkVersion=34
4
+ PrinterImin_compileSdkVersion=34
5
+ PrinterImin_ndkversion=23.1.7779620