maja0270558 / majascan_flutter Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
019-08-17 14:20:31.240797-0400 Runner[953:166567] flutter: Observatory listening on http://127.0.0.1:57760/t3QDxrOKJe8=/
2019-08-17 14:20:34.596399-0400 Runner[953:166469] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/containers/Bundle/Application/78FA25E5-288B-4F85-99EC-630DF31E258B/Runner.app/Frameworks/majascan.framework> (loaded)' with name 'MAJAScannerController''
*** First throw call stack:
(0x23a34a98c 0x2395239f8 0x23a254bc0 0x26694db60 0x2666e926c 0x2666e9c14 0x2666e9ed8 0x2666ea628 0x2666676bc 0x26661d8f0 0x266619d60 0x266c9f0ac 0x266c8dbfc 0x266cbaa6c 0x23a2dbd08 0x23a2d6a30 0x23a2d6fac 0x23a2d67c0 0x23c4d779c 0x266c93c38 0x1022a30e8 0x239d9a8e0)
libc++abi.dylib: terminating with uncaught exception of type NSException
Even though in the example it is using try and catch to verify if permission was granted, it was not actually returning any error in Android. Furthermore, it makes sense to automatically close the view and return to previous screen if no permission.
Step 1 : add to pubspec
step 2 : add in manifest
step 3 : flutter run -v
error:
[+4422 ms] > Task :majascan:compileDebugKotlin FAILED
[ +6 ms] e:
F:\flutter_windows_v1.12.13+hotfix.9-stable\flutter\.pub-cache\hosted\pub.dartlang.org\majascan-0.3.7\android\src\main\kotlin\com\djgeo\majascan\g_scanner\JumpPermissionManagement.kt:
(60, 56): Unresolved reference: APPLICATION_ID
[ +7 ms] e:
F:\flutter_windows_v1.12.13+hotfix.9-stable\flutter\.pub-cache\hosted\pub.dartlang.org\majascan-0.3.7\android\src\main\kotlin\com\djgeo\majascan\g_scanner\JumpPermissionManagement.kt:
(69, 56): Unresolved reference: APPLICATION_ID
[ +3 ms] e:
F:\flutter_windows_v1.12.13+hotfix.9-stable\flutter\.pub-cache\hosted\pub.dartlang.org\majascan-0.3.7\android\src\main\kotlin\com\djgeo\majascan\g_scanner\JumpPermissionManagement.kt:
(77, 58): Unresolved reference: APPLICATION_ID
[ +1 ms] e:
F:\flutter_windows_v1.12.13+hotfix.9-stable\flutter\.pub-cache\hosted\pub.dartlang.org\majascan-0.3.7\android\src\main\kotlin\com\djgeo\majascan\g_scanner\JumpPermissionManagement.kt:
(84, 56): Unresolved reference: APPLICATION_ID
[ +2 ms] e:
F:\flutter_windows_v1.12.13+hotfix.9-stable\flutter\.pub-cache\hosted\pub.dartlang.org\majascan-0.3.7\android\src\main\kotlin\com\djgeo\majascan\g_scanner\JumpPermissionManagement.kt:
(93, 56): Unresolved reference: APPLICATION_ID
[ +1 ms] e:
F:\flutter_windows_v1.12.13+hotfix.9-stable\flutter\.pub-cache\hosted\pub.dartlang.org\majascan-0.3.7\android\src\main\kotlin\com\djgeo\majascan\g_scanner\JumpPermissionManagement.kt:
(102, 56): Unresolved reference: APPLICATION_ID
[ +1 ms] e:
F:\flutter_windows_v1.12.13+hotfix.9-stable\flutter\.pub-cache\hosted\pub.dartlang.org\majascan-0.3.7\android\src\main\kotlin\com\djgeo\majascan\g_scanner\JumpPermissionManagement.kt:
(111, 56): Unresolved reference: APPLICATION_ID
[ +1 ms] e:
F:\flutter_windows_v1.12.13+hotfix.9-stable\flutter\.pub-cache\hosted\pub.dartlang.org\majascan-0.3.7\android\src\main\kotlin\com\djgeo\majascan\g_scanner\JumpPermissionManagement.kt:
(123, 56): Unresolved reference: APPLICATION_ID
[ +1 ms] FAILURE: Build failed with an exception.
[ +1 ms] * What went wrong:
[ +4 ms] Execution failed for task ':majascan:compileDebugKotlin'.
[ +1 ms] > Compilation error. See log for more details
[ +1 ms] * Try:
[ +1 ms] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[ +1 ms] * Get more help at https://help.gradle.org
[ +1 ms] BUILD FAILED in 38s
[ +1 ms] > Task :firebase_auth:bundleLibCompileToJarDebug
[ ] > Task :majascan:javaPreCompileDebug
[ +1 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[ ] Use '--warning-mode all' to show the individual deprecation warnings.
[ ] See https://docs.gradle.org/6.5.1/userguide/command_line_interface.html#sec:command_line_warnings
[ +4 ms] 92 actionable tasks: 91 executed, 1 up-to-date
[ +692 ms] Running Gradle task 'assembleDebug'... (completed in 39.7s)
[ +7 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +2 ms] "flutter run" took 41,731ms.
-//0.1.5//
Running pod install... 1.5s
Running Xcode build...
Xcode build done. 1.6s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/*/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.1.5/ios/Classes/MajascanPlugin.m:2:9: fatal error: 'majascan/majascan-Swift.h' file not found
#import <majascan/majascan-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Encountered error while building for device.
-//0.1.6//
Launching lib/main.dart on iPhone 6s Plus in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 2.0s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET sqflite OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users//development/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.1.6/ios/Classes/CrossView.swift:72:40: error: 'kCAFillRuleEvenOdd' has been renamed to 'CAShapeLayerFillRule.evenOdd'
backgroundMaskLayer.fillRule = kCAFillRuleEvenOdd
^~~~~~~~~~~~~~~~~~
CAShapeLayerFillRule.evenOdd
QuartzCore.kCAFillRuleEvenOdd:3:12: note: 'kCAFillRuleEvenOdd' was obsoleted in Swift 3
public let kCAFillRuleEvenOdd: CAShapeLayerFillRule
^
/Users//development/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.1.6/ios/Classes/MAJAOverlay.swift:33:30: error: 'kCAFillRuleEvenOdd' has been renamed to 'CAShapeLayerFillRule.evenOdd'
maskLayer.fillRule = kCAFillRuleEvenOdd
^~~~~~~~~~~~~~~~~~
CAShapeLayerFillRule.evenOdd
QuartzCore.kCAFillRuleEvenOdd:3:12: note: 'kCAFillRuleEvenOdd' was obsoleted in Swift 3
public let kCAFillRuleEvenOdd: CAShapeLayerFillRule
^
=== BUILD TARGET sqflite OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/*/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.1.6/ios/Classes/MAJAScannerController.swift:73:23: warning: value 'output' was defined but never used; consider replacing with boolean test
guard let output = metadataOutput else {
!= nil
Could not build the application for the simulator.
Error launching application on iPhone 6s Plus.
[!] CocoaPods could not find compatible versions for pod "majascan":
In Podfile:
majascan (from .symlinks/plugins/majascan/ios
)
Specs satisfying the majascan (from
.symlinks/plugins/majascan/ios)
dependency were found, but they required a higher minimum deployment target.
[!] Automatically assigning platform iOS
with version 8.0
on target Runner
because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform
.
xinqis-MacBook-Pro-2:ios xinqixiao$ flutter clean
Changing current working directory to: /Users/xinqixiao/app/flutter/wadd
Cleaning Xcode workspace... 2.7s
Deleting build... 107ms
Deleting .dart_tool... 8ms
Deleting Generated.xcconfig... 0ms
Deleting flutter_export_environment.sh... 0ms
Deleting App.framework... 6ms
Deleting .flutter-plugins-dependencies... 0ms
Deleting .flutter-plugins... 0ms
xinqis-MacBook-Pro-2:ios xinqixiao$ flutter build ios
Changing current working directory to: /Users/xinqixiao/app/flutter/wadd
Running "flutter pub get" in wadd... 0.6s
Building com.example.waddApp for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: 636ZQVPSEB
Running pod install... 0.9s
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Finding Podfile changes
A majascan
R qrscan
- Flutter
- barcode_scan
- image_picker
- path_provider
- shared_preferences
- sqflite
- url_launcher
- webview_flutter
Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `barcode_scan` from `.symlinks/plugins/barcode_scan/ios`
-> Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
-> Fetching podspec for `majascan` from `.symlinks/plugins/majascan/ios`
-> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
-> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
-> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`
-> Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`
-> Fetching podspec for `webview_flutter` from `.symlinks/plugins/webview_flutter/ios`
Resolving dependencies of `Podfile`
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_0_2_a.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/2/a/MTBBarcodeScanner/5.0.11/MTBBarcodeScanner.podspec.json exists! Returning local because checking is only perfomed
in repo update
[!] CocoaPods could not find compatible versions for pod "majascan":
In Podfile:
majascan (from `.symlinks/plugins/majascan/ios`)
Specs satisfying the `majascan (from `.symlinks/plugins/majascan/ios`)` dependency were found, but they required a higher minimum deployment target.
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:684:in `attempt_to_activate'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/resolver.rb:94:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:1065:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:1063:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:410:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:235:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:234:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:156:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
Error output from CocoaPods:
↳
[!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this
target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
条形码识别不正确
When the scanner is opened I want the flash screen to be turned on already and when the scanner closes the flashlight is turned off.
It works on ios very well, but on android closes app when i call the _scanQr method, i also added the line below to android manifest
<activity android:name="com.djgeo.majascan.g_scanner.QrCodeScannerActivity"/>
Future _scanQR() async {
String qrResult = await MajaScan.startScan(title: "Karekod Tara", titleColor: Colors.blue, flashlightEnable: false, qRScannerColor: Colors.blue, qRCornerColor: Colors.blue);
}
W/ActivityThread(23399): handleWindowVisibility: no activity for token android.os.BinderProxy@c71ab35
D/ZrHung.AppEyeUiProbe(23399): notify runnable to start.
V/ActivityThread(23399): Skipping new config:{1.0 286mcc3mnc [tr_TR] ldltr sw423dp w423dp h838dp 408dpi nrml long port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 2138, 1080) mAppBounds=Rect(0, 85 - 1080, 2222) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:4 s.353}, config:{1.0 286mcc3mnc [tr_TR] ldltr sw423dp w423dp h838dp 408dpi nrml long port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 2138, 1080) mAppBounds=Rect(0, 85 - 1080, 2222) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:4 s.353} for app:com.ikradap.alfatest
V/ActivityThread(23399): callActivityOnCreate
I/HwPhoneWindow(23399): updateLayoutParamsColor false mSpecialSet=false, mForcedNavigationBarColor=false, navigationBarColor=0, mNavBarShow=false, mIsFloating=false
I/HwPhoneWindow(23399): updateLayoutParamsColor true mSpecialSet=true, mForcedNavigationBarColor=false, navigationBarColor=fffcfcfc, mNavBarShow=false, mIsFloating=false
W/kradap.alfates(23399): Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
W/kradap.alfates(23399): Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
D/QrCodeScannerActivity(23399): QrCodeScannerActivity:1
D/ActivityThread(23399): add activity client record, r= ActivityRecord{75a166e token=android.os.BinderProxy@c71ab35 {com.ikradap.alfatest/com.djgeo.majascan.g_scanner.QrCodeScannerActivity}} token= android.os.BinderProxy@c71ab35
I/kradap.alfates(23399): Starting profile saver IsSaveProfileNow end.
D/TextView(23399): get Display Panel Type is : 0
D/AndroidRuntime(23399): Shutting down VM
E/AndroidRuntime(23399): FATAL EXCEPTION: main
E/AndroidRuntime(23399): Process: com.ikradap.alfatest, PID: 23399
E/AndroidRuntime(23399): java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/KotlinPackage;
E/AndroidRuntime(23399): at com.djgeo.majascan.g_scanner.ScanFragment.handleBundleData(ScanFragment.kt:140)
E/AndroidRuntime(23399): at com.djgeo.majascan.g_scanner.ScanFragment.onViewCreated(ScanFragment.kt:108)
E/AndroidRuntime(23399): at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1471)
E/AndroidRuntime(23399): at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784)
E/AndroidRuntime(23399): at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852)
E/AndroidRuntime(23399): at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:802)
E/AndroidRuntime(23399): at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManager.java:2625)
E/AndroidRuntime(23399): at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2411)
E/AndroidRuntime(23399): at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366)
E/AndroidRuntime(23399): at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273)
E/AndroidRuntime(23399): at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3273)
E/AndroidRuntime(23399): at androidx.fragment.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3229)
E/AndroidRuntime(23399): at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:201)
E/AndroidRuntime(23399): at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:620)
E/AndroidRuntime(23399): at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:178)
E/AndroidRuntime(23399): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1419)
E/AndroidRuntime(23399): at android.app.Activity.performStart(Activity.java:7479)
E/AndroidRuntime(23399): at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3454)
E/AndroidRuntime(23399): at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180)
E/AndroidRuntime(23399): at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)
E/AndroidRuntime(23399): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)
E/AndroidRuntime(23399): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
E/AndroidRuntime(23399): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2199)
E/AndroidRuntime(23399): at android.os.Handler.dispatchMessage(Handler.java:112)
E/AndroidRuntime(23399): at android.os.Looper.loop(Looper.java:216)
E/AndroidRuntime(23399): at android.app.ActivityThread.main(ActivityThread.java:7625)
E/AndroidRuntime(23399): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(23399): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
E/AndroidRuntime(23399): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
E/AndroidRuntime(23399): Caused by: java.lang.ClassNotFoundException: Didn't find class "kotlin.KotlinPackage" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.ikradap.alfatest-mQCYcN-jAa8S9ff85MHEsg==/base.apk"],nativeLibraryDirectories=[/data/app/com.ikradap.alfatest-mQCYcN-jAa8S9ff85MHEsg==/lib/arm64, /data/app/com.ikradap.alfatest-mQCYcN-jAa8S9ff85MHEsg==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]
E/AndroidRuntime(23399): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
E/AndroidRuntime(23399): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime(23399): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime(23399): ... 29 more
I/Process (23399): Sending signal. PID: 23399 SIG: 9
related to: https://android.googlesource.com/platform/tools/base/+/51644d6f302ea8c3616d98afde0b4ee30d7d4741
locally solved it by replacing the deprecated APPLICATION_ID. Check the link. Please fix.
安卓手機掃碼後頁面關閉了但是沒回調。
2020-04-03 13:49:40.116 5282-6164/com.transport.taojiyun E/ZXingScannerView: java.lang.RuntimeException: Camera is being used after Camera.release() was called java.lang.RuntimeException: Camera is being used after Camera.release() was called at android.hardware.Camera.setHasPreviewCallback(Native Method) at android.hardware.Camera.setOneShotPreviewCallback(Camera.java:967) at me.dm7.barcodescanner.zxing.ZXingScannerView.onPreviewFrame(ZXingScannerView.java:169) at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1278) at android.os.Handler.dispatchMessage(Handler.java:112) at android.os.Looper.loop(Looper.java:216) at android.os.HandlerThread.run(HandlerThread.java:65)
Cannot run with sound null safety, because the following dependencies
don't support null safety:
I am using build:gradle:3.4.2 and not able to install 0.4.0 due to undefined BuildConfig.LIBRARY_PACKAGE_NAME from JumpPermissionManagement.kt.
0.3.7 version is working fine.
kotlin\com\djgeo\majascan\g_scanner\ScanFragment.kt:123:42: warning: 'getDrawable(Int): Drawable!' is deprecated. Deprecated in Java
val drawable = resources.getDrawable(R.drawable.left_arrow)
Is there a way to add translations for more languages in the App using this package?
I tried simply adding the same keys to my .strings
files in XCode and I tried creating my own majascan.strings
file in my project to override/add translations for German.
Is there a way to do this in iOS or do I have to add the translations here in the package?
Is there a way to gracefully handle camera permissions on iOS ?
Currently it just displays an empty view, with no prompt to user.
Can we add something like this:
https://stackoverflow.com/questions/26070393/is-there-a-way-to-ask-user-for-camera-access-after-they-have-already-denied-it-o
After I have used this library, it forces somehow the default launch icon to show instead of the customized one.
Please confirm if this is the case.
Hello, with Majascan 0.4.0 I get following error while compiling:
Any clue what it could be?
Running Gradle task 'assembleDebug'...
e: C:\Users\admin\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\majascan-0.4.0\android\src\main\kotlin\com\djgeo\majascan\g_scanner\PermissionUtil.kt: (55, 28): Type mismatch: inferred type is String? but String was expected
e: C:\Users\admin\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\majascan-0.4.0\android\src\main\kotlin\com\djgeo\majascan\g_scanner\QrCodeScannerActivity.kt: (72, 29): Type mismatch: inferred type is String? but String was expected
e: C:\Users\admin\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\majascan-0.4.0\android\src\main\kotlin\com\djgeo\majascan\g_scanner\QrCodeScannerActivity.kt: (87, 69): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
FAILURE: Build failed with an exception.
Compilation error. See log for more details
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 26s
Exception: Gradle task assembleDebug failed with exit code 1
majascan-0.3.5/ios/Classes/C
rossView.swift:58:101: error: type 'UIApplication' has no member 'willEnterForegroundNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterForeground),
name: UIApplication.willEnterForegroundNotification, object: nil)
majascan-0.3.5/ios/Classes/C
rossView.swift:59:101: error: type 'UIApplication' has no member 'willResignActiveNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterBackground),
name: UIApplication.willResignActiveNotification, object: nil)
There is not way to know if the user tapped back and exited the scanner.
Hi can we import the QR pictures from saved gallery on mobile?
Launching lib/main_test.dart on iPhone 5s in debug mode...
Running pod install... 7.0s
Running Xcode build...
Xcode build done. 18.6s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:58:121: error: 'UIApplicationWillEnterForeground' has been renamed
to 'UIApplication.willEnterForegroundNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterForeground), name: NSNotification.Name.UIApplicationWillEnterForeground, object: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.willEnterForegroundNotification
UIKit.NSNotification.Name:7:23: note: 'UIApplicationWillEnterForeground' was obsoleted in Swift 4.2
public static let UIApplicationWillEnterForeground: NSNotification.Name
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:59:121: error: 'UIApplicationWillResignActive' has been renamed to
'UIApplication.willResignActiveNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterBackground), name: NSNotification.Name.UIApplicationWillResignActive, object: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.willResignActiveNotification
UIKit.NSNotification.Name:13:23: note: 'UIApplicationWillResignActive' was obsoleted in Swift 4.2
public static let UIApplicationWillResignActive: NSNotification.Name
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:94:40: error: 'kCAFillRuleEvenOdd' has been renamed to
'CAShapeLayerFillRule.evenOdd'
backgroundMaskLayer.fillRule = kCAFillRuleEvenOdd
^~~~~~~~~~~~~~~~~~
CAShapeLayerFillRule.evenOdd
QuartzCore.kCAFillRuleEvenOdd:3:12: note: 'kCAFillRuleEvenOdd' was obsoleted in Swift 3
public let kCAFillRuleEvenOdd: CAShapeLayerFillRule
^
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/MAJAScannerController.swift:329:58: error: 'UIApplicationOpenSettingsURLString' has
been renamed to 'UIApplication.openSettingsURLString'
UIApplication.shared.openURL(URL(string: UIApplicationOpenSettingsURLString)!)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/MAJAScannerController.swift:329:58: error: 'UIApplicationOpenSettingsURLString' has
been renamed to 'UIApplication.openSettingsURLString'
UIApplication.shared.openURL(URL(string: UIApplicationOpenSettingsURLString)!)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
^
Could not build the application for the simulator.
Error launching application on iPhone 5s.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.9.3-pre.56, on Mac OS X 10.14.5 18F132, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Android Studio (version 3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.5)
[✓] VS Code (version 1.37.1)
[✓] Connected device (1 available)
• No issues found!
E/MethodChannel#majascan( 3947): Failed to handle method call
E/MethodChannel#majascan( 3947): android.content.ActivityNotFoundException: Unable to find explicit activity class {cc.x.mch/com.djgeo.majascan.g_scanner.QrCodeScannerActivity}; have you declared this activity in your AndroidManifest.xml?
E/MethodChannel#majascan( 3947): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2005)
E/MethodChannel#majascan( 3947): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1673)
E/MethodChannel#majascan( 3947): at android.app.Activity.startActivityForResult(Activity.java:4586)
E/MethodChannel#majascan( 3947): at android.app.Activity.startActivityForResult(Activity.java:4544)
E/MethodChannel#majascan( 3947): at com.djgeo.majascan.MajascanPlugin.onMethodCall(MajascanPlugin.kt:42)
E/MethodChannel#majascan( 3947): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:201)
E/MethodChannel#majascan( 3947): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:88)
E/MethodChannel#majascan( 3947): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:219)
E/MethodChannel#majascan( 3947): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#majascan( 3947): at android.os.MessageQueue.next(MessageQueue.java:326)
E/MethodChannel#majascan( 3947): at android.os.Looper.loop(Looper.java:160)
E/MethodChannel#majascan( 3947): at android.app.ActivityThread.main(ActivityThread.java:6669)
E/MethodChannel#majascan( 3947): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#majascan( 3947): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/MethodChannel#majascan( 3947): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/flutter ( 3947): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(error, Unable to find explicit activity class {cc.x.mch/com.djgeo.majascan.g_scanner.QrCodeScannerActivity}; have you declared this activity in your AndroidManifest.xml?, null)
E/flutter ( 3947): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
E/flutter ( 3947): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:302:33)
E/flutter ( 3947):
E/flutter ( 3947): #2 MajaScan.startScan (package:majascan/majascan.dart:31:42)
E/flutter ( 3947):
E/flutter ( 3947): #3 HoneState.build. (package:mch/app/pages/home/view.dart:275:118)
E/flutter ( 3947):
E/flutter ( 3947): #4 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:166:24)
E/flutter ( 3947): #5 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:240:9)
E/flutter ( 3947): #6 TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:177:9)
E/flutter ( 3947): #7 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:436:9)
E/flutter ( 3947): #8 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73:12)
E/flutter ( 3947): #9 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:11)
E/flutter ( 3947): #10 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:221:19)
E/flutter ( 3947): #11 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:199:22)
E/flutter ( 3947): #12 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
E/flutter ( 3947): #13 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
E/flutter ( 3947): #14 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
E/flutter ( 3947): #15 _rootRunUnary (dart:async/zone.dart:1136:13)
E/flutter ( 3947): #16 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter ( 3947): #17 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
E/flutter ( 3947): #18 _invoke1 (dart:ui/hooks.dart:233:10)
E/flutter ( 3947): #19 _dispatchPointerDataPacket (dart:ui/hooks.dart:154:5)
E/flutter ( 3947):
`
<activity android:name="com.djgeo.majascan.g_scanner.QrCodeScannerActivity"/>
`
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.9.3-pre.56, on Mac OS X 10.14.5 18F132, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Android Studio (version 3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.5)
[✓] VS Code (version 1.37.1)
[✓] Connected device (1 available)
• No issues found!
Launching lib/main_test.dart on iPhone 5s in debug mode...
Running pod install... 7.0s
Running Xcode build...
Xcode build done. 18.6s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:58:121: error: 'UIApplicationWillEnterForeground' has been renamed
to 'UIApplication.willEnterForegroundNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterForeground), name: NSNotification.Name.UIApplicationWillEnterForeground, object: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.willEnterForegroundNotification
UIKit.NSNotification.Name:7:23: note: 'UIApplicationWillEnterForeground' was obsoleted in Swift 4.2
public static let UIApplicationWillEnterForeground: NSNotification.Name
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:59:121: error: 'UIApplicationWillResignActive' has been renamed to
'UIApplication.willResignActiveNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterBackground), name: NSNotification.Name.UIApplicationWillResignActive, object: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.willResignActiveNotification
UIKit.NSNotification.Name:13:23: note: 'UIApplicationWillResignActive' was obsoleted in Swift 4.2
public static let UIApplicationWillResignActive: NSNotification.Name
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:94:40: error: 'kCAFillRuleEvenOdd' has been renamed to
'CAShapeLayerFillRule.evenOdd'
backgroundMaskLayer.fillRule = kCAFillRuleEvenOdd
^~~~~~~~~~~~~~~~~~
CAShapeLayerFillRule.evenOdd
QuartzCore.kCAFillRuleEvenOdd:3:12: note: 'kCAFillRuleEvenOdd' was obsoleted in Swift 3
public let kCAFillRuleEvenOdd: CAShapeLayerFillRule
^
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/MAJAScannerController.swift:329:58: error: 'UIApplicationOpenSettingsURLString' has
been renamed to 'UIApplication.openSettingsURLString'
UIApplication.shared.openURL(URL(string: UIApplicationOpenSettingsURLString)!)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/MAJAScannerController.swift:329:58: error: 'UIApplicationOpenSettingsURLString' has
been renamed to 'UIApplication.openSettingsURLString'
UIApplication.shared.openURL(URL(string: UIApplicationOpenSettingsURLString)!)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
^
Could not build the application for the simulator.
Error launching application on iPhone 5s.
When scanning with String qrResult = await MajaScan.startScan(..);
the future never completes if the QR scanner gets closed by pressing the back button.
So far I have only tested this on iOS.
Please add qr reader square color option
after i am scanning qr code camera preview freeze
device:NEC LAVIE T11 11QHD1
Android os version:11
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.9.3-pre.56, on Mac OS X 10.14.5 18F132, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Android Studio (version 3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.5)
[✓] VS Code (version 1.37.1)
[✓] Connected device (1 available)
• No issues found!
Launching lib/main_test.dart on iPhone 5s in debug mode...
Running pod install... 7.0s
Running Xcode build...
Xcode build done. 18.6s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:58:121: error: 'UIApplicationWillEnterForeground' has been renamed
to 'UIApplication.willEnterForegroundNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterForeground), name: NSNotification.Name.UIApplicationWillEnterForeground, object: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.willEnterForegroundNotification
UIKit.NSNotification.Name:7:23: note: 'UIApplicationWillEnterForeground' was obsoleted in Swift 4.2
public static let UIApplicationWillEnterForeground: NSNotification.Name
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:59:121: error: 'UIApplicationWillResignActive' has been renamed to
'UIApplication.willResignActiveNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterBackground), name: NSNotification.Name.UIApplicationWillResignActive, object: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.willResignActiveNotification
UIKit.NSNotification.Name:13:23: note: 'UIApplicationWillResignActive' was obsoleted in Swift 4.2
public static let UIApplicationWillResignActive: NSNotification.Name
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:94:40: error: 'kCAFillRuleEvenOdd' has been renamed to
'CAShapeLayerFillRule.evenOdd'
backgroundMaskLayer.fillRule = kCAFillRuleEvenOdd
^~~~~~~~~~~~~~~~~~
CAShapeLayerFillRule.evenOdd
QuartzCore.kCAFillRuleEvenOdd:3:12: note: 'kCAFillRuleEvenOdd' was obsoleted in Swift 3
public let kCAFillRuleEvenOdd: CAShapeLayerFillRule
^
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/MAJAScannerController.swift:329:58: error: 'UIApplicationOpenSettingsURLString' has
been renamed to 'UIApplication.openSettingsURLString'
UIApplication.shared.openURL(URL(string: UIApplicationOpenSettingsURLString)!)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/MAJAScannerController.swift:329:58: error: 'UIApplicationOpenSettingsURLString' has
been renamed to 'UIApplication.openSettingsURLString'
UIApplication.shared.openURL(URL(string: UIApplicationOpenSettingsURLString)!)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
^
Could not build the application for the simulator.
Error launching application on iPhone 5s.
我想 用 相机 扫描条形码 code128 而已,其它的 例如 qr 或 ean 的 不要支持 可以吗
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.9.3-pre.56, on Mac OS X 10.14.5 18F132, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Android Studio (version 3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.5)
[✓] VS Code (version 1.37.1)
[✓] Connected device (1 available)
• No issues found!
Launching lib/main_test.dart on iPhone 5s in debug mode...
Running pod install... 7.0s
Running Xcode build...
Xcode build done. 18.6s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:58:121: error: 'UIApplicationWillEnterForeground' has been renamed
to 'UIApplication.willEnterForegroundNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterForeground), name: NSNotification.Name.UIApplicationWillEnterForeground, object: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.willEnterForegroundNotification
UIKit.NSNotification.Name:7:23: note: 'UIApplicationWillEnterForeground' was obsoleted in Swift 4.2
public static let UIApplicationWillEnterForeground: NSNotification.Name
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:59:121: error: 'UIApplicationWillResignActive' has been renamed to
'UIApplication.willResignActiveNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterBackground), name: NSNotification.Name.UIApplicationWillResignActive, object: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.willResignActiveNotification
UIKit.NSNotification.Name:13:23: note: 'UIApplicationWillResignActive' was obsoleted in Swift 4.2
public static let UIApplicationWillResignActive: NSNotification.Name
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:94:40: error: 'kCAFillRuleEvenOdd' has been renamed to
'CAShapeLayerFillRule.evenOdd'
backgroundMaskLayer.fillRule = kCAFillRuleEvenOdd
^~~~~~~~~~~~~~~~~~
CAShapeLayerFillRule.evenOdd
QuartzCore.kCAFillRuleEvenOdd:3:12: note: 'kCAFillRuleEvenOdd' was obsoleted in Swift 3
public let kCAFillRuleEvenOdd: CAShapeLayerFillRule
^
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/MAJAScannerController.swift:329:58: error: 'UIApplicationOpenSettingsURLString' has
been renamed to 'UIApplication.openSettingsURLString'
UIApplication.shared.openURL(URL(string: UIApplicationOpenSettingsURLString)!)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/MAJAScannerController.swift:329:58: error: 'UIApplicationOpenSettingsURLString' has
been renamed to 'UIApplication.openSettingsURLString'
UIApplication.shared.openURL(URL(string: UIApplicationOpenSettingsURLString)!)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
^
Could not build the application for the simulator.
Error launching application on iPhone 5s.
It would be nice if the native view could take the existence of an actual flashlight into account even when flashlightEnable: true
is set.
i want to add text content in page center,how should i do
Running pod install...
Running Xcode build...
Xcode build done. 1.5s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Unable to run command 'StripNIB MAJAOverlay.nib' - this target might include its own product.
Unable to run command 'StripNIB MAJAOverlayiphone.nib' - this target might include its own product.ipad.nib' - this target might include its own product.
Unable to run command 'StripNIB MAJAOverlay
Unable to run command 'StripNIB MAJAScannerController.nib' - this target might include its own product.
Unable to run command 'StripNIB MAJAScannerControlleriphone.nib' - this target might include its own product.ipad.nib' - this target might include its own product.
Unable to run command 'StripNIB MAJAScannerController
Could not build the application for the simulator.
Error launching application on iPhone 6s Plus.
can u please implement this feature
Firstly, thanks for this package. I recently added this into my app, it right away brought down the number of devices it can support on android from 12700 to 9400. Thats an issue for me. Could anyone shed some light on what could possibly be an issue here?
My minSdkVersion is 21. Let me know if there are any questions.
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.