Skip to content

Commit

Permalink
revert: "adds support for text printing on Cielo Lio devices"
Browse files Browse the repository at this point in the history
This reverts commit 5eb9e0abf05e91aa5cf0a516427658bdab8519e8.
  • Loading branch information
flsobral committed Mar 9, 2021
1 parent 582ee01 commit f61f89e
Show file tree
Hide file tree
Showing 18 changed files with 4 additions and 280 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions TotalCrossVM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ set(SOURCES

${TC_SRCDIR}/scanner/ios/ios_barcode.c

${TC_SRCDIR}/nm/cielo/printer/PrinterManager.c

${TC_SRCDIR}/nm/qrcode/qrcode_generation.c

${TC_SRCDIR}/nm/io/device/gpiod/Gpiod.c
Expand Down
6 changes: 0 additions & 6 deletions TotalCrossVM/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,6 @@ dependencies {
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

implementation 'com.android.support:customtabs:25.1.0'

// https://mvnrepository.com/artifact/cielo.printer.client/printer-manager
//compile group: 'cielo.printer.client', name: 'printer-manager', version: '2.3.1'

// https://mvnrepository.com/artifact/com.cielo.lio/order-manager
compile group: 'com.cielo.lio', name: 'order-manager', version: '0.19.8'

//Youtube API
implementation files('libs/YouTubeAndroidPlayerApi.jar')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package="totalcross.android"
>

<application android:label="Stub" tools:replace="android:label">
<application android:label="Stub" tools:replace="label">
<activity android:name=".Loader">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
4 changes: 0 additions & 4 deletions TotalCrossVM/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@
android:versionCode="305419896"
android:versionName="!1.0!"
android:sharedUserId="totalcross.app.sharedid"
xmlns:tools="http://schemas.android.com/tools"
>

<uses-sdk tools:overrideLibrary="com.cielo.lio, cielo.sdk.ordermanager, cielo.printer.client"/>

<application android:icon="@drawable/icon"
android:label="TotalCross Virtual Machine"
android:theme="@style/TCThemeNS" android:name="android.support.multidex.MultiDexApplication"
android:resizeableActivity="true"
android:allowBackup="true"
android:backupInForeground="false"
android:requestLegacyExternalStorage="true"
tools:replace="android:label, android:icon, android:theme"
>
<meta-data android:name="isFullScreen" android:value="fullscreen:0" />
<meta-data android:name="android.max_aspect" android:value="2.33" />
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion TotalCrossVM/android/app/src/singleApk/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package="totalcross.android"
>

<application android:label="Stub" tools:replace="android:label">
<application android:label="Stub" tools:replace="label">
<activity android:name=".Loader">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
1 change: 0 additions & 1 deletion TotalCrossVM/src/init/android/startup_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ void JNICALL Java_totalcross_Launcher4A_initializeVM(JNIEnv *env, jobject appObj
jNotificationManager4A = androidFindClass(env, "totalcross/android/NotificationManager4A");
jFirebaseInstanceId = androidFindClass(env, "com/google/firebase/iid/FirebaseInstanceId");
jTcFirebaseUtils = androidFindClass(env, "totalcross/android/firebase/FirebaseUtils");
jCieloPrinterManager4A = androidFindClass(env, "totalcross/android/cielo/PrinterManager4A");
jzxing = (*env)->GetStaticMethodID(env, applicationClass, "zxing", "(Ljava/lang/String;)Ljava/lang/String;");
jsoundToText = (*env)->GetStaticMethodID(env, applicationClass, "soundToText", "(Ljava/lang/String;)Ljava/lang/String;");
jsoundFromText = (*env)->GetStaticMethodID(env, applicationClass, "soundFromText", "(Ljava/lang/String;)V");
Expand Down
2 changes: 1 addition & 1 deletion TotalCrossVM/src/init/globals.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ bool isMainWindow = false; // extends MainWindow ?
#if defined(ANDROID)
JavaVM* androidJVM;
jobject applicationObj, applicationContext;
jclass applicationClass,jRadioDevice4A,jBluetooth4A,jConnectionManager4A,jSmsManager4A,jNotificationManager4A,jFirebaseInstanceId,jTcFirebaseUtils,jCieloPrinterManager4A;
jclass applicationClass,jRadioDevice4A,jBluetooth4A,jConnectionManager4A,jSmsManager4A,jNotificationManager4A,jFirebaseInstanceId,jTcFirebaseUtils;
jfieldID jshowingAlert,jhardwareKeyboardIsVisible;
jfieldID jsipVisible,jappTitleH;
jmethodID jgetHeight;
Expand Down
2 changes: 1 addition & 1 deletion TotalCrossVM/src/init/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extern bool isMainWindow; // extends MainWindow ?
#if defined(ANDROID)
JavaVM* androidJVM;
extern jobject applicationObj, applicationContext;
extern jclass applicationClass,jRadioDevice4A,jBluetooth4A,jConnectionManager4A,jSmsManager4A,jNotificationManager4A,jFirebaseInstanceId,jTcFirebaseUtils,jCieloPrinterManager4A;
extern jclass applicationClass,jRadioDevice4A,jBluetooth4A,jConnectionManager4A,jSmsManager4A,jNotificationManager4A,jFirebaseInstanceId,jTcFirebaseUtils;
extern jfieldID jshowingAlert,jhardwareKeyboardIsVisible;
extern jfieldID jsipVisible,jappTitleH;
extern jmethodID jgetHeight;
Expand Down
1 change: 0 additions & 1 deletion TotalCrossVM/src/init/nativeProcAddressesTC.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,6 @@ void fillNativeProcAddressesTC()
htPutPtr(&htNativeProcAddresses, hashCode("ttSM_registerSmsReceiver_si"), &ttSM_registerSmsReceiver_si);
htPutPtr(&htNativeProcAddresses, hashCode("tfiFII_getToken"), &tfiFII_getToken);
htPutPtr(&htNativeProcAddresses, hashCode("tnNM_notify_n"), &tnNM_notify_n);
htPutPtr(&htNativeProcAddresses, hashCode("tcspPM_internalPrintText_ssp"), &tcspPM_internalPrintText_ssp);
htPutPtr(&htNativeProcAddresses, hashCode("tqQRC_nativeGetBytes_sii"), &tqQRC_nativeGetBytes_sii);
htPutPtr(&htNativeProcAddresses, hashCode("tidsS_scannerActivate"), &tidsS_scannerActivate);
htPutPtr(&htNativeProcAddresses, hashCode("tidsS_setBarcodeParam_ib"), &tidsS_setBarcodeParam_ib);
Expand Down
1 change: 0 additions & 1 deletion TotalCrossVM/src/nm/NativeMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,6 @@ TC_API void ttSM_registerSmsReceiver_si(NMParams p);
TC_API void tfiFII_getToken(NMParams p);
TC_API void tnNM_notify_n(NMParams p);
TC_API void tcpPBKDF2WHSHA1F_generateSecretI(NMParams p);
TC_API void tcspPM_internalPrintText_ssp(NMParams p);
TC_API void tqQRC_nativeGetBytes_sii(NMParams p);
TC_API void tidgGC_open_i(NMParams p);
TC_API void tidgGL_open_gi(NMParams p);
Expand Down
1 change: 0 additions & 1 deletion TotalCrossVM/src/nm/NativeMethods.txt
Original file line number Diff line number Diff line change
Expand Up @@ -544,5 +544,4 @@ totalcross/telephony/SmsManager|public native void sendDataMessage(String destin
totalcross/telephony/SmsManager|public native void registerSmsReceiver(totalcross.telephony.SmsReceiver receiver, int port);
totalcross/firebase/iid/FirebaseInstanceId|public native String getToken();
totalcross/notification/NotificationManager|public void notify(totalross.notification.Notification notification);
totalcross/cielo/sdk/printer/PrinterManager|private native void internalPrintText(String textToPrint, String printerAttributes, totalcross.cielo.printer.PrinterManager.PrinterListenerInternal printerListener);
totalcross/qrcode/QRCode|private native byte[][] nativeGetBytes(String text, int errorCorrection, int version);
5 changes: 0 additions & 5 deletions TotalCrossVM/src/nm/NativeMethodsPrototypes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,6 @@ TC_API void ttSM_sendDataMessage_ssiB(NMParams p);
TC_API void ttSM_registerSmsReceiver_si(NMParams p);
TC_API void tfiFII_getToken(NMParams p);
TC_API void tnNM_notify_n(NMParams p);
TC_API void tcspPM_internalPrintText_ssp(NMParams p);
TC_API void tqQRC_nativeGetBytes_sii(NMParams p);

//////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -2728,10 +2727,6 @@ TC_API void tnNM_notify_n(NMParams p) // totalcross/notification/NotificationMan
{
}
//////////////////////////////////////////////////////////////////////////
TC_API void tcspPM_internalPrintText_ssp(NMParams p) // totalcross/cielo/sdk/printer/PrinterManager private native void internalPrintText(String textToPrint, String printerAttributes, totalcross.cielo.printer.PrinterManager.PrinterListenerInternal printerListener);
{
}
//////////////////////////////////////////////////////////////////////////
TC_API void tqQRC_nativeGetBytes_sii(NMParams p) // totalcross/qrcode/QRCode private native byte[][] nativeGetBytes(String text, int errorCorrection, int version);
{
}
31 changes: 0 additions & 31 deletions TotalCrossVM/src/nm/cielo/printer/PrinterManager.c

This file was deleted.

18 changes: 0 additions & 18 deletions TotalCrossVM/src/nm/cielo/printer/android/PrinterManager_c.h

This file was deleted.

0 comments on commit f61f89e

Please sign in to comment.