diff --git a/README.md b/README.md index 96e58b57..1ef56ab7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,14 @@ -# react-native-bluetooch-escpos-printer +# react-native-bluetooth-escpos-printer + +## Acknowledgments + +This project is based on the original work by [Janus J K Lu](https://github.com/januslo/react-native-bluetooth-escpos-printer). +Special thanks to Janus for the initial creation of this project, without which this fork wouldn't be possible. + +--- + +Feel free to explore the original repository here: [januslo/react-native-bluetooth-escpos-printer](https://github.com/januslo/react-native-bluetooth-escpos-printer). + React-Native plugin for the bluetooth ESC/POS & TSC printers. diff --git a/android/build.gradle b/android/build.gradle index 55fa50df..5b5f82a0 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,7 +1,7 @@ buildscript { repositories { - jcenter { url "http://jcenter.bintray.com/" } - maven {url "http://repo.spring.io/plugins-release/"} + jcenter { url "https://jcenter.bintray.com/" } + maven {url "https://repo.spring.io/plugins-release/"} mavenCentral() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm @@ -20,12 +20,12 @@ buildscript { apply plugin: 'com.android.library' android { - compileSdkVersion 28 + compileSdkVersion 30 buildToolsVersion "28.0.3" defaultConfig { minSdkVersion 16 - targetSdkVersion 24 + targetSdkVersion 30 versionCode 1 versionName "1.0" } @@ -40,8 +40,9 @@ android { } repositories { - jcenter { url "http://jcenter.bintray.com/" } - maven {url "http://repo.spring.io/plugins-release/"} + google() + jcenter { url "https://jcenter.bintray.com/" } + maven {url "https://repo.spring.io/plugins-release/"} mavenCentral() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm @@ -53,8 +54,8 @@ repositories { } dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.facebook.react:react-native:+' // From node_modules - implementation group: 'com.android.support', name: 'support-v4', version: '27.0.0' + implementation "androidx.appcompat:appcompat:1.4.2" + implementation "androidx.core:core:1.10.1" implementation "com.google.zxing:core:3.3.0" } diff --git a/android/src/main/java/cn/jystudio/bluetooth/RNBluetoothManagerModule.java b/android/src/main/java/cn/jystudio/bluetooth/RNBluetoothManagerModule.java index c48a00f8..44969beb 100644 --- a/android/src/main/java/cn/jystudio/bluetooth/RNBluetoothManagerModule.java +++ b/android/src/main/java/cn/jystudio/bluetooth/RNBluetoothManagerModule.java @@ -10,8 +10,8 @@ import android.content.IntentFilter; import android.content.pm.PackageManager; import android.os.Bundle; -import android.support.v4.app.ActivityCompat; -import android.support.v4.content.ContextCompat; +import androidx.core.content.ContextCompat; +import androidx.core.app.ActivityCompat; import android.util.Log; import android.widget.Toast; diff --git a/package.json b/package.json index d96e3829..8189b7b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "react-native-bluetooth-escpos-printer", - "version": "0.0.6", + "name": "@ccdilan/react-native-bluetooth-escpos-printer", + "version": "0.2.0", "description": "React-Native plugin for the bluetooth ESC/POS printers.", "main": "index.js", "scripts": { @@ -13,9 +13,25 @@ "Bluetooth", "Printer" ], - "author": "janus j k lu", + "author": "Janus J K Lu", + "maintainers": [ + { + "name": "Ccdilan", + "email": "ccdilan@gmail.com", + "url": "https://github.com/ccdilan" + } + ], + "contributors": [ + "Janus J K Lu (Original Creator, https://github.com/januslo/react-native-bluetooth-escpos-printer)", + "Ccdilan (https://github.com/ccdilan)" + ], "license": "MIT", "peerDependencies": { "react-native": ">=0.55.4" - } + }, + "repository": { + "type": "git", + "url": "git+https://github.com/ccdilan/react-native-bluetooth-escpos-printer.git" + }, + "homepage": "https://github.com/ccdilan/react-native-bluetooth-escpos-printer#readme" }