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
28 changes: 16 additions & 12 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
apply plugin: 'com.android.library'

def DEFAULT_COMPILE_SDK_VERSION = 27
def DEFAULT_BUILD_TOOLS_VERSION = '25.0.3'
def DEFAULT_TARGET_SDK_VERSION = 27

android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION

defaultConfig {
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
minSdkVersion 16
targetSdkVersion project.hasProperty('targetSdkVersion') ? project.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
versionCode 2
versionName "1.1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand All @@ -18,15 +22,15 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:21.2.1'
compile "com.facebook.react:react-native:+"
testCompile 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:26.1'
implementation "com.facebook.react:react-native:+"
testImplementation 'junit:junit:4.12'
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

import java.util.List;

/**
* Created by bondwp322 on 2017/10/9.
*/

public class RNPrinterModule extends ReactContextBaseJavaModule {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
import java.util.Collections;
import java.util.List;

/**
* Created by bondwp322 on 2017/10/9.
*/

public class RNPrinterPackage implements ReactPackage {
@Override
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { NativeModules } from 'react-native';


import EPToolkit from 'escpos-printer-toolkit';

var RNPrinter = NativeModules.RNPrinter;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_from": "react-native-usb-printer",
"_id": "react-native-usb-printer@0.0.4",
"_id": "react-native-usb-printer@0.0.5",
"_inBundle": false,
"_integrity": "sha512-ddsDSxSjjXOZ0GMi+KY6qNbaYHhWHbg72IXsS6+27f1cMzvKjz34OyMH6QCFS32bCwfBut6yp/TR/6UOHz1YUA==",
"_location": "/react-native-usb-printer",
Expand Down Expand Up @@ -49,5 +49,5 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "0.0.4"
"version": "0.0.5"
}