Commit b31ae541 authored by Gandha Ryanto's avatar Gandha Ryanto

gradle plugin support only kotlin higher fluttter-config

parent 218eb40a
This diff is collapsed.
<component name="libraryTable">
<library name="Dart SDK">
<CLASSES>
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/async" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/cli" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/collection" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/convert" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/core" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/developer" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/ffi" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/html" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/indexed_db" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/io" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/isolate" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/js" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/js_util" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/math" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/mirrors" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/svg" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/typed_data" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/web_audio" />
<root url="file://D:/flutter/bin/cache/dart-sdk/lib/web_gl" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/async" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/cli" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/collection" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/convert" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/core" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/developer" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/ffi" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/html" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/indexed_db" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/io" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/isolate" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/js" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/js_util" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/math" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/mirrors" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/svg" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/typed_data" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/web_audio" />
<root url="file://$USER_HOME$/flutter/bin/cache/dart-sdk/lib/web_gl" />
</CLASSES>
<JAVADOC />
<SOURCES />
......
<component name="libraryTable">
<library name="Flutter Plugins" type="FlutterPluginsLibraryType">
<CLASSES />
<CLASSES>
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/sentry_flutter-6.16.1" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.15" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.7" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_macos-1.3.0" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.4" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.1.1" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus-3.2.4" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_linux-2.1.1" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_android-2.0.14" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.2.0+3" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.11" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.22" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus-1.4.2" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.11" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_web-1.0.6" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.7" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-10.2.0" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.1.1" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_windows-2.1.1" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_web-2.1.0" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_linux-1.0.5" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.6" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.4" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_windows-1.0.5" />
<root url="file://$PROJECT_DIR$/../flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_macos-2.2.3" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
This diff is collapsed.
#Mon Nov 07 18:45:11 ICT 2022
gradle.version=7.2
#Fri Nov 25 14:54:48 ICT 2022
gradle.version=7.4
# Default ignored files
/shelf/
/workspace.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
......@@ -12,15 +13,14 @@
<option value="$PROJECT_DIR$/app" />
<option value="$PROJECT_DIR$/escposprinter" />
<option value="$PROJECT_DIR$/lib" />
<option value="$PROJECT_DIR$/../../flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus-3.2.4/android" />
<option value="$PROJECT_DIR$/../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/android" />
<option value="$PROJECT_DIR$/../../flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus-1.4.2/android" />
<option value="$PROJECT_DIR$/../../flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.21/android" />
<option value="$PROJECT_DIR$/../../flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_android-10.2.0/android" />
<option value="$PROJECT_DIR$/../../flutter/.pub-cache/hosted/pub.dartlang.org/sentry_flutter-6.16.1/android" />
<option value="$PROJECT_DIR$/../../flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_android-2.0.14/android" />
<option value="$PROJECT_DIR$/../../flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.2.0+3/android" />
<option value="$PROJECT_DIR$/../../flutter/.pub-cache/hosted/pub.dartlang.org/workmanager-0.5.1/android" />
<option value="$USER_HOME$/flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus-3.2.4/android" />
<option value="$USER_HOME$/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/android" />
<option value="$USER_HOME$/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus-1.4.2/android" />
<option value="$USER_HOME$/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.22/android" />
<option value="$USER_HOME$/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_android-10.2.0/android" />
<option value="$USER_HOME$/flutter/.pub-cache/hosted/pub.dartlang.org/sentry_flutter-6.16.1/android" />
<option value="$USER_HOME$/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_android-2.0.14/android" />
<option value="$USER_HOME$/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.2.0+3/android" />
</set>
</option>
</GradleProjectSettings>
......
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="TestModuleProperties" production-module="android.workmanager.main" />
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="TestModuleProperties" production-module="android.workmanager.main" />
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>
\ No newline at end of file
This diff is collapsed.
......@@ -24,6 +24,7 @@ if (flutterVersionName == null) {
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply from: project(':flutter_config').projectDir.getPath() + "/dotenv.gradle"
android {
compileSdkVersion flutter.compileSdkVersion
......@@ -49,6 +50,7 @@ android {
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 22
targetSdkVersion 32
multiDexEnabled true
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
ndk {
......@@ -71,7 +73,7 @@ flutter {
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
// implementation 'com.google.android.material:material:<version>'
implementation "com.google.code.gson:gson:2.8.9"
......@@ -79,13 +81,13 @@ dependencies {
implementation 'androidx.annotation:annotation:1.4.0'
// library mdd
implementation(group: 'com.mdd.topup', name: 'mifare_mdd_lib', version: '0.0.10-rev8', ext: 'aar')
implementation(group: 'com.mdd.topup', name: 'mifare_mdd_lib', version: '0.0.10-rev13', ext: 'aar')
implementation(group: 'com.mdd.payment', name: 'aar-deviceid-release', version: '2.0.6', ext: 'aar')
implementation(group: 'com.mdd.library', name: 'android-escpos-receipt', version: '1.0.1', ext: 'aar')
implementation(group: 'com.mdd.payment', name: 'nativecripto-release', version: '2.0.1', ext: 'aar')
implementation(group: 'com.mdd.payment', name: 'mybanklibrary-release', version: '3.8.2-rev1', ext: 'aar')
implementation(group: 'com.mdd.payment', name: 'organicdrv-release', version: '2.1.2', ext: 'aar')
implementation(group: 'com.mdd.payment', name: 'organicdrv-release', version: '2.1.4', ext: 'aar')
implementation(group: 'com.mdd.payment', name: 'paxlibrary-release', version: '2.1.5', ext: 'aar')
implementation(group: 'com.mdd.payment', name: 'isodeplibrary-release', version: '2.1.3', ext: 'aar')
......@@ -96,11 +98,10 @@ dependencies {
//http retrfit
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.6'
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
// debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
}
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.example.self_service_3",
"variantName": "debug",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0.0",
"outputFile": "app-debug.apk"
}
],
"elementType": "File"
}
\ No newline at end of file
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.example.self_service_3",
"variantName": "profile",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0.0",
"outputFile": "app-profile.apk"
}
],
"elementType": "File"
}
\ No newline at end of file
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.example.self_service_3",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0.0",
"outputFile": "app-release.apk"
}
],
"elementType": "File"
}
\ No newline at end of file
......@@ -55,10 +55,5 @@ public final class GeneratedPluginRegistrant {
} catch(Exception e) {
Log.e(TAG, "Error registering plugin sqflite, com.tekartik.sqflite.SqflitePlugin", e);
}
try {
flutterEngine.getPlugins().add(new be.tramckrijte.workmanager.WorkmanagerPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin workmanager, be.tramckrijte.workmanager.WorkmanagerPlugin", e);
}
}
}
......@@ -49,15 +49,6 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
val serviceChargeAmount = call.argument<String>("service_charge_amount")
val denom = call.argument<String>("denom")
// _mifareTicketing?.generateReceiptTopup(
// ticketJson!!,
// companyName!!,
// companyAddress!!,
// companyPhone!!,
// approvalCode!!,
// prevBalance!!,
// denom!!,
// )
generateReceipt(
ticketJson!!,
companyName!!,
......@@ -183,6 +174,10 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
TODO("Not yet implemented")
}
override fun onSuccessRefundDepositBalanceCard(ticket: Ticket?){
TODO("Not yet implemented")
}
override fun onSuccessActivationCard() {
TODO("Not yet implemented")
}
......@@ -241,10 +236,11 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
val cardExpiry = Date(cardEpoch * 1000)
val sdf = SimpleDateFormat("dd/MM/yyyy HH:mm", Locale.US)
// val bitmapIcon: Bitmap = BitmapFactory.decodeResource(context.resources, R.drawable.wahoo)
val bitmapIcon: Bitmap = decodeResource(context.resources, R.drawable.wahoo)
if (Build.MODEL != "T2s") {
val text = """
[C]${bitmapIcon}
[C]${companyName}
[C]${companyAddress}
[C]${companyPhone}
......@@ -262,7 +258,7 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
[C]Top Up Berhasil
[C]powered by dolanapp.com
""".trimIndent()
_mifareTicketing?.generateReceiptTopup(null, text/*, bitmapIcon*/)
_mifareTicketing?.generateReceiptTopup(null, text, bitmapIcon)
} else {
var receiptLayout: ReceiptBuilder = ReceiptBuilder(570)
.setMarginTop(30)
......@@ -315,7 +311,7 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
.addBlankSpace(10)
.addText("powered by dolanapp.com")
val finalReceiptLayout: ReceiptBuilder = receiptLayout
_mifareTicketing?.generateReceiptTopup(finalReceiptLayout, ""/*, bitmapIcon*/)
_mifareTicketing?.generateReceiptTopup(finalReceiptLayout, "", bitmapIcon)
}
}
......
......@@ -6,8 +6,10 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.28.1"
}
}
......
#Mon Sep 12 15:02:24 ICT 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
sdk.dir=D:\\AndroidSDK
flutter.sdk=D:\\flutter
sdk.dir=C:\\Users\\MDD HP\\AndroidSDK
flutter.buildMode=debug
flutter.versionName=1.0.0
flutter.versionCode=1
\ No newline at end of file
flutter.versionCode=1
flutter.sdk=C:\\Users\\MDD HP\\flutter
flutter.versionName=1.0.0
\ No newline at end of file
......@@ -54,12 +54,6 @@
@import sqflite;
#endif
#if __has_include(<workmanager/WorkmanagerPlugin.h>)
#import <workmanager/WorkmanagerPlugin.h>
#else
@import workmanager;
#endif
@implementation GeneratedPluginRegistrant
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {
......@@ -71,7 +65,6 @@
[SentryFlutterPlugin registerWithRegistrar:[registry registrarForPlugin:@"SentryFlutterPlugin"]];
[FLTSharedPreferencesPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTSharedPreferencesPlugin"]];
[SqflitePlugin registerWithRegistrar:[registry registrarForPlugin:@"SqflitePlugin"]];
[WorkmanagerPlugin registerWithRegistrar:[registry registrarForPlugin:@"WorkmanagerPlugin"]];
}
@end
BUILD_FINISH_TIME=1669610043998
CONFIGURATION_API_COUNT=11
CONFIGURATION_IMPLEMENTATION_COUNT=11
CPU_NUMBER_OF_CORES=4
GRADLE_BUILD_DURATION=3647
GRADLE_BUILD_NUMBER_IN_CURRENT_DAEMON=2
GRADLE_DAEMON_HEAP_SIZE=1695870809
GRADLE_EXECUTION_DURATION=91
GRADLE_NUMBER_OF_TASKS=3523
GRADLE_NUMBER_OF_UNCONFIGURED_TASKS=3064
NUMBER_OF_SUBPROJECTS=12
STATISTICS_VISIT_ALL_PROJECTS_OVERHEAD=23
BUILD_FAILED=true
EXECUTED_FROM_IDEA=true
KOTLIN_KTS_USED=false
KOTLIN_OFFICIAL_CODESTYLE=false
KOTLIN_PROGRESSIVE_MODE=false
GRADLE_VERSION=7.4.0
KOTLIN_COMPILER_VERSION=1.6.10
KOTLIN_STDLIB_VERSION=1.5.31
OS_TYPE=Windows 11
PROJECT_PATH=C:\Users\MDD HP\dolan-selfservice-master\android
BUILD FINISHED
......@@ -10,6 +10,7 @@ TextEditingController userNameController = TextEditingController(text: Preferenc
TextEditingController urlPrePaidController = TextEditingController(text: PreferencesHelper.getString(kUrlPrePaid));
TextEditingController maxControlller = TextEditingController(text: PreferencesHelper.getString(kMax));
TextEditingController minController = TextEditingController(text: PreferencesHelper.getString(kMin));
TextEditingController idleController = TextEditingController(text: PreferencesHelper.getString(kIdle));
TextEditingController validate = TextEditingController(text: PreferencesHelper.getString(kUserData));
TextEditingController? amountController = TextEditingController(text: '');
TextEditingController outletName = TextEditingController(text: '');
......@@ -3,7 +3,7 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
// import 'package:sentry_flutter/sentry_flutter.dart';
import 'package:logging/logging.dart';
import 'dart:async';
import 'dart:convert';
......@@ -41,14 +41,14 @@ import 'package:flutter/services.dart';
const String _Dsn = 'https://b64fdbb494e441ddb88a79ba8302bd67@o4504207130230784.ingest.sentry.io/4504207131541504';
Future<void> main() async{
await setupSentry(() => runApp(
SentryScreenshotWidget(
child: DefaultAssetBundle(
bundle: SentryAssetBundle(enableStructuredDataTracing: true),
child: MyApp(),
),
),
));
// await setupSentry(() => runApp(
// SentryScreenshotWidget(
// child: DefaultAssetBundle(
// bundle: SentryAssetBundle(enableStructuredDataTracing: true),
// child: MyApp(),
// ),
// ),
// ));
WidgetsFlutterBinding.ensureInitialized();
// await Firebase.initializeApp();
// Pass all uncaught "fatal" errors from the framework to Crashlytics
......@@ -60,24 +60,24 @@ Future<void> main() async{
}
Future<void> setupSentry(AppRunner appRunner) async {
await SentryFlutter.init((options) {
options.dsn = _Dsn;
options.tracesSampleRate = 1.0;
options.reportPackages = false;
options.addInAppInclude('sentry_flutter_example');
options.considerInAppFramesByDefault = false;
options.attachThreads = true;
options.enableWindowMetricBreadcrumbs = true;
options.attachScreenshot = true;
// We can enable Sentry debug logging during development. This is likely
// going to log too much for your app, but can be useful when figuring out
// configuration issues, e.g. finding out why your events are not uploaded.
options.debug = true;
},
// Init your App.
appRunner: appRunner);
}
// Future<void> setupSentry(AppRunner appRunner) async {
// await SentryFlutter.init((options) {
// options.dsn = _Dsn;
// options.tracesSampleRate = 1.0;
// options.reportPackages = false;
// options.addInAppInclude('sentry_flutter_example');
// options.considerInAppFramesByDefault = false;
// options.attachThreads = true;
// options.enableWindowMetricBreadcrumbs = true;
// options.attachScreenshot = true;
// // We can enable Sentry debug logging during development. This is likely
// // going to log too much for your app, but can be useful when figuring out
// // configuration issues, e.g. finding out why your events are not uploaded.
// options.debug = true;
// },
// // Init your App.
// appRunner: appRunner);
// }
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
......@@ -95,9 +95,9 @@ class _MyAppState extends State<MyApp> {
theme: ThemeData(
useMaterial3: true,
),
navigatorObservers: [
SentryNavigatorObserver(),
],
// navigatorObservers: [
// SentryNavigatorObserver(),
// ],
debugShowCheckedModeBanner: false,
// automaticallyImplyLeading: false,
routes: {
......
......@@ -9,6 +9,7 @@ const kUrlPrePaid = "url_prepaid";
const kVersionApp = "version_app";
const kMax = "max";
const kMin = "min";
const kIdle ="idle";
const kMultiOutletName = "multioutletname";
const kMultiOutletServiceCharge = "multioutletservicecharge";
// const kVersionApp = "version_app";
......
This diff is collapsed.
......@@ -74,6 +74,7 @@ class _SetMerchantState extends State<SetMerchant> {
String urlPrePaid = urlPrePaidController.text;
String max = maxControlller.text;
String min = minController.text;
String idle = idleController.text;
if (urlDolan.isNotEmpty &&
urlCloseLoop.isNotEmpty &&
......@@ -98,11 +99,13 @@ class _SetMerchantState extends State<SetMerchant> {
PreferencesHelper.setString(kMerchantName, merchantName);
PreferencesHelper.setString(kUserName, userName);
PreferencesHelper.setString(kUrlPrePaid, urlPrePaid);
PreferencesHelper.setString(kMax, max.replaceAll(",",""));
PreferencesHelper.setString(kMax, max.replaceAll(",",""));
PreferencesHelper.setString(kMin, min.replaceAll(",",""));
PreferencesHelper.setString(kIdle, idle);
PreferencesHelper.setBool(kIsDoneConfig, true);
PreferencesHelper.setBool(kIsTap, true);
......@@ -372,7 +375,7 @@ class _SetMerchantState extends State<SetMerchant> {
),
CustomNumberField(
controller: maxControlller,
title: "Maksimal isi ulang",
title: "Maksimal isi ulang topup",
isShowTitle: false,
),
const SizedBox(
......@@ -380,7 +383,15 @@ class _SetMerchantState extends State<SetMerchant> {
),
CustomNumberField(
controller: minController,
title: "Minimal isi ulang",
title: "Minimal isi ulang topup",
isShowTitle: false,
),
const SizedBox(
height: 20,
),
CustomFormField(
controller: idleController,
title: "Waktu siaga beranda (detik)",
isShowTitle: false,
),
],
......
#include "ephemeral/Flutter-Generated.xcconfig"
#include "ephemeral/Flutter-Generated.xcconfig"
//
// Generated file. Do not edit.
//
import FlutterMacOS
import Foundation
import device_info_plus_macos
import package_info_plus_macos
import path_provider_macos
import sentry_flutter
import shared_preferences_macos
import sqflite
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
SentryFlutterPlugin.register(with: registry.registrar(forPlugin: "SentryFlutterPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
}
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "self_service_3.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "self_service_3.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "self_service_3.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "self_service_3.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
import Cocoa
import FlutterMacOS
@NSApplicationMain
class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}
}
{
"images" : [
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "app_icon_16.png",
"scale" : "1x"
},
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "app_icon_32.png",
"scale" : "2x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "app_icon_32.png",
"scale" : "1x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "app_icon_64.png",
"scale" : "2x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "app_icon_128.png",
"scale" : "1x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "app_icon_256.png",
"scale" : "2x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "app_icon_256.png",
"scale" : "1x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "app_icon_512.png",
"scale" : "2x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "app_icon_512.png",
"scale" : "1x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "app_icon_1024.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
This diff is collapsed.
// Application-level settings for the Runner target.
//
// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
// future. If not, the values below would default to using the project name when this becomes a
// 'flutter create' template.
// The application's name. By default this is also the title of the Flutter window.
PRODUCT_NAME = self_service_3
// The application's bundle identifier
PRODUCT_BUNDLE_IDENTIFIER = com.example.selfService3
// The copyright displayed in application information
PRODUCT_COPYRIGHT = Copyright © 2022 com.example. All rights reserved.
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
GCC_WARN_UNDECLARED_SELECTOR = YES
CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
CLANG_WARN_PRAGMA_PACK = YES
CLANG_WARN_STRICT_PROTOTYPES = YES
CLANG_WARN_COMMA = YES
GCC_WARN_STRICT_SELECTOR_MATCH = YES
CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
GCC_WARN_SHADOW = YES
CLANG_WARN_UNREACHABLE_CODE = YES
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CLIENT_ID</key>
<string>58734890671-af0i3r1jlv7tnbvnsbf4ndgk5a199l0n.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.58734890671-af0i3r1jlv7tnbvnsbf4ndgk5a199l0n</string>
<key>API_KEY</key>
<string>AIzaSyCw4tHJeANZna2D7aXHnQ2_QYjM9lwPen4</string>
<key>GCM_SENDER_ID</key>
<string>58734890671</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.example.selfService3</string>
<key>PROJECT_ID</key>
<string>dolan-self-service</string>
<key>STORAGE_BUCKET</key>
<string>dolan-self-service.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:58734890671:ios:6db28ab2b36775e9e8ce5a</string>
</dict>
</plist>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
<string>$(PRODUCT_COPYRIGHT)</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
import Cocoa
import FlutterMacOS
class MainFlutterWindow: NSWindow {
override func awakeFromNib() {
let flutterViewController = FlutterViewController.init()
let windowFrame = self.frame
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)
RegisterGeneratedPlugins(registry: flutterViewController)
super.awakeFromNib()
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
</dict>
</plist>
{
"file_generated_by": "FlutterFire CLI",
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
"GOOGLE_APP_ID": "1:58734890671:ios:6db28ab2b36775e9e8ce5a",
"FIREBASE_PROJECT_ID": "dolan-self-service",
"GCM_SENDER_ID": "58734890671"
}
\ No newline at end of file
......@@ -28,7 +28,7 @@ packages:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "3.3.2"
version: "3.3.5"
args:
dependency: transitive
description:
......@@ -391,14 +391,14 @@ packages:
name: frontend_server_client
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.0"
version: "3.2.0"
glob:
dependency: transitive
description:
name: glob
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
google_fonts:
dependency: "direct main"
description:
......@@ -622,7 +622,7 @@ packages:
name: path_provider_android
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.21"
version: "2.0.22"
path_provider_ios:
dependency: transitive
description:
......@@ -748,7 +748,7 @@ packages:
name: pub_semver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
version: "2.1.3"
pubspec_parse:
dependency: transitive
description:
......@@ -881,7 +881,7 @@ packages:
name: simple_animations
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.0+2"
version: "5.0.0+3"
sky_engine:
dependency: transitive
description: flutter
......@@ -1076,13 +1076,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.6.1"
workmanager:
dependency: "direct main"
description:
name: workmanager
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.1"
xdg_directories:
dependency: transitive
description:
......
......@@ -50,7 +50,6 @@ dependencies:
flutter_config: ^2.0.0
validators: ^2.0.0+1
http: ^0.13.5
workmanager: ^0.5.1
simple_animations: ^5.0.0+2
flutter_svg: ^1.1.5
flutter_layout_grid: ^2.0.1
......
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android" name="Android">
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
......@@ -51,9 +56,23 @@
<excludeFolder url="file://$MODULE_DIR$/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus_linux/build" />
<excludeFolder url="file://$MODULE_DIR$/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus_linux/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus_linux/.pub" />
<excludeFolder url="file://$MODULE_DIR$/linux/flutter/ephemeral/.plugin_symlinks/sentry_flutter/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/linux/flutter/ephemeral/.plugin_symlinks/sentry_flutter/example/build" />
<excludeFolder url="file://$MODULE_DIR$/linux/flutter/ephemeral/.plugin_symlinks/sentry_flutter/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/windows/flutter/ephemeral/.plugin_symlinks/sentry_flutter/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/windows/flutter/ephemeral/.plugin_symlinks/sentry_flutter/example/build" />
<excludeFolder url="file://$MODULE_DIR$/windows/flutter/ephemeral/.plugin_symlinks/sentry_flutter/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/windows/flutter/ephemeral/.plugin_symlinks/sentry_flutter/.pub" />
<excludeFolder url="file://$MODULE_DIR$/windows/flutter/ephemeral/.plugin_symlinks/sentry_flutter/build" />
<excludeFolder url="file://$MODULE_DIR$/windows/flutter/ephemeral/.plugin_symlinks/sentry_flutter/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/linux/flutter/ephemeral/.plugin_symlinks/sentry_flutter/.pub" />
<excludeFolder url="file://$MODULE_DIR$/linux/flutter/ephemeral/.plugin_symlinks/sentry_flutter/build" />
<excludeFolder url="file://$MODULE_DIR$/linux/flutter/ephemeral/.plugin_symlinks/sentry_flutter/.dart_tool" />
</content>
<orderEntry type="jdk" jdkName="Android API 33, extension level 3 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Flutter Plugins" level="project" />
<orderEntry type="library" name="Dart SDK" level="project" />
<orderEntry type="library" name="Dart Packages" level="project" />
</component>
</module>
\ No newline at end of file
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:self_service_3/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment