From 46ef0b6bb3b6484c359df010bede2b152e6fb455 Mon Sep 17 00:00:00 2001 From: Hans Araya Date: Tue, 31 Oct 2023 15:06:23 -0600 Subject: [PATCH] feat: upgrade to rn 68 --- .gitignore | 195 ++++++++++++++++++++++++++- android/build.gradle | 8 +- android/src/main/AndroidManifest.xml | 4 +- package.json | 15 ++- 4 files changed, 205 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index e1821c9..5e41f8e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,158 @@ -# Created by .ignore support plugin (hsz.mobi) -### Example user template template -### Example user template +# +# React +# -# IntelliJ project files +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Keys +*.pem + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage/ +*.lcov + +# nyc test coverage +.nyc_output + +# jest cache +.jest/ + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt/ + +# Bower dependency directory (https://bower.io/) +bower_components/ + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules +node_modules.nosync/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm/ + +# Optional yarn cache directory +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# parcel-bundler cache (https://parceljs.org/) +.cache/ + +# next.js build output +.next/ +out/ + +# vercel +.vercel/ + +# nuxt.js build output +.nuxt/ + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ +.webpack/ +.esbuild/ +.warmup/ + +# Serverless Webpack +.build/ +build/ + +# Serverless Warmup Plugin +.warmup/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# dependencies +.pnp/ +.pnp.js + +# +# React Native +# + +# Windows +Thumbs.db + +# OSX +.DS_Store + +# Xcode +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +project.xcworkspace + +# Android/IntelliJ .idea +.gradle +local.properties *.iml *.log out @@ -12,4 +161,40 @@ examples/node_modules examples/android/build examples/android/app/build examples/android/.gradle -android/build \ No newline at end of file +android/build + +# BUCK +buck-out/ +\.buckd/ +*.keystore +!debug.keystore + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/ + +*/fastlane/report.xml +*/fastlane/Preview.html +*/fastlane/screenshots + +# Bundle artifact +*.jsbundle + +# CocoaPods +/ios/Pods/ + +# DotEnv +.env +.env.* + +# Local Netlify folder +.netlify/ + +# Vscode plug-in setting +.graphqlrc.yml + +# Local notes +.*.md \ No newline at end of file diff --git a/android/build.gradle b/android/build.gradle index 44f1992..6c978a7 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -11,12 +11,12 @@ buildscript { apply plugin: 'com.android.library' android { - compileSdkVersion 28 + compileSdkVersion 31 buildToolsVersion "28.0.3" defaultConfig { minSdkVersion 16 - targetSdkVersion 28 + targetSdkVersion 31 versionCode 1 versionName "1.0" } @@ -35,6 +35,6 @@ repositories { } dependencies { - compile 'com.facebook.react:react-native:[0.55.4,)' - compile "com.google.zxing:core:3.2.1" + implementation 'com.facebook.react:react-native:[0.67,)' + implementation "com.google.zxing:core:3.2.1" } \ No newline at end of file diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 213e766..a6b1876 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ - + @@ -21,6 +21,6 @@ - + \ No newline at end of file diff --git a/package.json b/package.json index 3b111c9..1543fe1 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,18 @@ { "name": "react-native-sunmi-inner-printer", - "version": "0.1.6", + "version": "0.3.0", "description": "http://docs.sunmi.com/htmls/index.html?lang=zh##V1文档资源 根据商米V1文档开发的蓝牙打印for React Native.", "author": "Janus J K Lu ", - "contributors": [], + "contributors": [ + "Vicary A. ", + "Hans Araya " + ], "repository": { "type": "git", - "url": "https://github.com/januslo/react-native-sunmi-inner-printer" + "url": "https://github.com/LDX-Lab/react-native-sunmi-inner-printer" }, "bugs": { - "url": "https://github.com/januslo/react-native-sunmi-inner-printer/issues" + "url": "https://github.com/LDX-Lab/react-native-sunmi-inner-printer/issues" }, "main": "index.js", "scripts": { @@ -25,7 +28,7 @@ "license": "MIT", "private": false, "peerDependencies": { - "react": "^16.4.0", - "react-native": "^0.56.0" + "react": "^17 || ^18", + "react-native": "^0.67 || ^0.68 || ^0.69 || ^0.70 || ^0.71 || ^0.72" } }