Skip to content

HTTP to HTTPS and SDK version update #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
17 changes: 9 additions & 8 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
}
Expand All @@ -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
Expand All @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
24 changes: 20 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -13,9 +13,25 @@
"Bluetooth",
"Printer"
],
"author": "janus j k lu",
"author": "Janus J K Lu",
"maintainers": [
{
"name": "Ccdilan",
"email": "[email protected]",
"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"
}