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
18 changes: 9 additions & 9 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ def isNewArchitectureEnabled() {

apply plugin: 'com.android.library'

if (isNewArchitectureEnabled()) {
apply plugin: 'com.facebook.react'
}
// Apply the RN codegen plugin unconditionally: RN's autolinking discovers this
// module's `libraryName` by regexing this file's text (findLibraryName.js), not by
// evaluating isNewArchitectureEnabled(), so it always expects codegen output here
// regardless of the consuming app's newArchEnabled setting.
apply plugin: 'com.facebook.react'

def getExtOrDefault(name) {
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['EscPosPrinter_' + name]
Expand Down Expand Up @@ -131,10 +133,8 @@ dependencies {
// From node_modules
}

if (isNewArchitectureEnabled()) {
react {
jsRootDir = file("../src/")
libraryName = "EscPosPrinter"
codegenJavaPackageName = "com.reactnativeescposprinter"
}
react {
jsRootDir = file("../src/")
libraryName = "EscPosPrinter"
codegenJavaPackageName = "com.reactnativeescposprinter"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oolio-group/react-native-esc-pos-printer",
"version": "2.2.4",
"version": "2.3.0",
"description": "test",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down