Skip to content
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: 6 additions & 6 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,7 +20,7 @@ buildscript {
apply plugin: 'com.android.library'

android {
compileSdkVersion 28
compileSdkVersion 30
buildToolsVersion "28.0.3"

defaultConfig {
Expand All @@ -40,8 +40,8 @@ android {
}

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 @@ -55,6 +55,6 @@ 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.core:core:1.12.0'
implementation "com.google.zxing:core:3.3.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ public List<Class<? extends JavaScriptModule>> createJSModules() {
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
return Collections.emptyList();
}
}
}
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.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.util.Log;
import android.widget.Toast;

Expand Down Expand Up @@ -238,7 +238,7 @@ public void disconnect(String address, final Promise promise){
promise.reject("BT NOT ENABLED");
}

}
}

@ReactMethod
public void unpaire(String address,final Promise promise){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ public static byte[] POS_PrintBMP(Bitmap mBitmap, int nWidth, int nMode, int lef
*/
public static byte[] Print_1D2A(Bitmap bmp) {

/*
* 使用下传位图打印图片
* 先收完再打印
*/
/*
* 使用下传位图打印图片
* 先收完再打印
*/
int width = bmp.getWidth();
int height = bmp.getHeight();
byte data[] = new byte[1024 * 10];
Expand Down