Here SDK Flutter 3.0 - android

Im Using Here SDK for Flutter. Now with the Flutter 3.0 update it broke.
I tried to change the null aware operators inside that package and the
plugins/here_sdk/lib/src/sdk/mapview/here_map.dart
---> No more errors.
inside
plugins/here_sdk/android/src/main/kotlin/com/here/mapview/MapController.kt
line 52
plugin.registrar!!.activity().application.registerActivityLifecycleCallbacks(this)
changed to:
plugin.registrar!!.activity()!.application.registerActivityLifecycleCallbacks(this)
line 114:
plugin.registrar!!.activity().application.unregisterActivityLifecycleCallbacks(this)
changed to :
plugin.registrar!!.activity()!.application.unregisterActivityLifecycleCallbacks(this)
Now the maps Builds but is in some kind of between state. There is no error and the map is not controllable.
---> Rest of my UI doesn't build.
Should i wait for the Offical update or stay with Flutter 2.10.5 ?

As told in comment the we are not supporting the Flutter 3.
Please check the minimum-requirements for the HERE SDK flutter.

since 4.12.7 you actually do. Forgot to answer.
https://developer.here.com/documentation/flutter-sdk-navigate/4.12.7.0/dev_guide/topics/about.html

Related

Xamarin Android error on DeviceInfo.Model

I have a Xamarin for Android app that has been working until today. I needed to make a change but before I did, I ran a test to ensure no VS or Nuget package updates caused an issue. I have Xamarin.Essentials in my app and this line worked before, not sure what is happening now.
if(DeviceInfo.Model == "TC72"){scannerIndex = 1;}
Exception Unhandled:
Xamarin.Essentials.NotImplementedInReferenceAssemblyException: 'This
functionality is not implemented in the portable version of this
assembly. You should reference the NuGet package from your main
application project in order to reference the platform-specific
implementation.'
Any insight would be helpful. TIA
I changed the DeviceInfo.Model to Build.Model and get the same info I was expecting. That fixed my issue. If anyone has a different suggestion, happy to entertain them.
Added 8/11/21 3:25pm CT
I also found that changing my Compile Target to 10.0 fixed the Xamarin.Essentials issues. So far the application is working on 8.1 on the device (Zebra MC3300).

Flutter error : Undefined name 'ScaffoldMessenger'

Always getting this error on a project without any reason for the moment could you help me on this.
Undefined name 'ScaffoldMessenger'.
Try correcting the name to one that is defined, or defining the name.
Flutter version : 1.22.5 stable
Could you help me on this please ?
Got the same error and I tried this and it work
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('Some Text'),
),
);
If you are still experiencing this issue you might have to update your Flutter sdk.
ScaffoldMessenger was first released to Flutter stable channel the 3th of March 2021...
To update flutter just run
flutter upgrade
on your terminal/command line.
For further details take a look at the ScaffoldMessenger documentation or in StackOverflow see this thread.
According to https://flutter.dev/docs/release/breaking-changes (at the moment), under Not yet released to stable, we see SnackBars managed by the ScaffoldMessenger. So, it's not in 1.22... it'll be in the next release.
If you get an error that scaffold is not present then, use builder widget to get the context and then use the scaffold.of() part.

ionic 3 SyntaxError : "unexpected token =>"

Im building ionic 3 (angular5+es2015) application for android OS, it's working for android 7,8, and 9 but not for 6 version, and i got this error when startup application :
Any help please !
I think the issue is that the Javascript VM in Android 6 is too old to have support for arrow functions. The solution would be to use a transpiler like Babel to target the older VM, or to rewrite your code to remove uses of ES6 language features.
Edit: I'm sorry, I realized that there is a "Typescript" tag on this question. You might be able to adjust the target setting in tsconfig.json to output code that is compatible with the older Javascript version. Try using ES5, or if that does not work you can try ES3.

How to use EasyMock in android

I use easymock-3.2.jar in my android test project.
I find it in its Home:
2013-07-11: EasyMock 3.2 is available. Add #Mock annotations and Android support.
However , I got exception when I use it.
java.lang.NoClassDefFoundError: org.easymock.EasyMock
I googled a lot , and add
dexmaker-1.0.jar
objenesis-1.2.jar
cglib-nodep-2.2.2.jar or cglib-2.2.jar
But the exception still be there.Who can help me?
Thanks a lot.
Put the library
easymock-3.2.jar
dexmaker-1.0.jar
dexmaker-mockito-1.0.jar
in tests/libs. And it will work.
Be careful , it's in tests/libs , not in tests/lib.
It will throw
java.lang.NoClassDefFoundError: org.easymock.EasyMock
if you position them in tests/lib.
The first step is to get EasyMock. You can get the latest version from Easymock’s download page. Choose the latest version and you will get a zip file. You only need easymock-3.2.jar (3.2 will change depending on the version you choose). You will also need dexmaker for Easymock to work on Android. You can get the jar from Dexmaker’s website. Once you have both jar files put them in /tests/libs. Now you have EasyMock available in your tests.
for more detail follow below link
http://ncona.com/2013/11/writing-unit-test-for-android-with-easymock/

Phonegap device is undefined on both android and iOS

While using the Phonegap platform I've ran in to a problem. When trying to access any of the device strings, e.g. device.name or device.platform, I get as value undefined. This occurs on both iOS and Android. I've set the permissions for Android in both the ApplicationManifest and the config.
While doing research into the problem i found that the problem could be the the device functionality will only be available after about 1 to 3 seconds. I've ran some test, set a timeout at 10 seconds or even perform the action manually via onClick at different times (up to several minutes), but i keep getting the undefined value.
I've tried window.device.name instead of device.name, same result.
Does anyone have a clue why this is happening?
Running Phonegap 2.3.0 on iOS 6.0.2 and Android 4.1.2
Code:
$('#deviceName').html('Name: ' + device.name);
$('#devicePlatform').html('Platform: ' + device.platform);
$('#devicePlatformVersion').html('Version: ' + device.version);
Full Code here
Your help is mush appreciated!
"WARNING: device.name is deprecated as of version 2.3.0. Use device.model instead."
Refer to the following: http://docs.phonegap.com/en/edge/cordova_device_device.md.html#device.name
Accessing the Feature
As of version 3.0, Cordova implements device-level APIs as plugins. Use the CLI's plugin command, described in The Command-Line Interface, to add or remove this feature for a project:
cordova plugin add org.apache.cordova.device
As found in the documentations here:
http://docs.phonegap.com/en/edge/cordova_device_device.md.html
or
https://github.com/apache/cordova-plugin-device/blob/master/doc/index.md
device.model might be what you want.
http://docs.phonegap.com/en/2.3.0/cordova_device_device.model.md.html

Categories

Resources