Dynamic Feature Module with Flutter - android

I am a Native Android Developer and I was learning Dynamic Feature Module from here
But I also work with flutter. So, is this feature available in flutter?

It is not but flutter now has ability to add flutter to existing android app which you can use for that case, I.e build all submodule in flutter and add or load them in a native app, I hope you got an idea.

Looks like work is being done to support Dyanmic Features in Flutter in the future.
https://github.com/flutter/flutter/commit/a76bb1a08e3d22ea73a5f8005e6e46925ee938c3
As of this time, support for Dynamic Features has not been announced.

"UPDATE" - Flutter's Deffered-Components is meant for dynamic feature modules. It build apps that can download additional Dart code and assets at runtime.
OLD Reply - Flutter supports Android App Bundles too (just like for Android App using Java/Kotlin) as mentioned here and this Pull request. App bundles allows Dynamic feature module support, hope this helps.

Maybe if a flutter functionality could be wrapped in a dynamic feature module. https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps

Related

Can I use same flutter app for both android and ios apps?

Let's say I have an app that is both native android and ios.
If I want to change one of the features using flutter, can I write with flutter only once for both android and ios?
The current method: add-to-app, I think only works for one app, either ios or android.
Yes, you can, if you know dart language you can use it to write your application in Flutter. According to your use case, you want to run the application on Android & ios. Use those packages that are available for both Android & IOS.
More details - https://flutter.dev/multi-platform
You can also use the same source code to generate mobile, web and desktop builds.
If you use dart language with flutter , it will be uses both Operating system (Android & IOS). make sure app code will be written with dart language

Add Flutter screens to existing native iOS and Android apps

I have a product natively developed in iOS and Android platforms. And they are released onto AppStore and PlayStores.
Our Product Teams wants to add extra features.
How can I develop these new modules, screens in Flutter, Dart and add these to the existing iOS and Android native projects?
The problem is... one of the Flutter screens have to appear as one of the VCs in TabViewController.
The Flutter pages mentions launching the flutter modules on tap of a button.
You can refer the official Flutter docs here for adding flutter to the existing app also follow along with the article which I thought might be useful

Can we use an android library (aar) in a GeneXus android app?

We have an android library for mobile data gathering (location, mobile device, etc.) that I would like to share with a partner. This aar component was developed using java and android studio, vanilla stuff.
Problem is, this partner is using GeneXus platform. I have performed a research and what I have found is that you can create an android component using GeneXus, but nothing related to consuming one (an external aar file).
Does anyone know if that is possible?
I also have verified that you can have access to "some" device data, like geo localisation, but that is it. Point is, I could create something in GeneXus, however with far less data richness than native android.
Yes, you can extend Genexus Android native app by using any native library you need to use.
Genexus provide Extensions Library for extensibility in native application.
You can create an External Object in Genexus and then use it in your application.
You can find a full sample in Github with step by step documentation:
https://github.com/genexuslabs/SDExtensionsSample
Best,

Doubts about Cordova 3.6 webviews, events & updating application

I am using PhoneGap / Cordova 3.6 to build my first Android Application. I have successfully created a static application however I still have a few conceptual doubts, I am listing them below it will be great if someone can help me out with these.
PhoneGap events: Do I require installing any plug-in to access or make use of these events?
Ref: https://cordova.apache.org/docs/en/3.6.0/cordova_events_events.md.html#backbutton
Embedding WebViews: How important is this for creating an application using PhoneGap. Does it improve the performance of the application in any way?
Ref: https://cordova.apache.org/docs/en/3.6.0/guide_hybrid_webviews_index.md.html#Embedding%20WebViews
How can I change the version of Android Application created using PhoneGap: I read that the application version requires to be changed in order to update the application. To do so I went into my /application folder/platforms/android/ in AndroidManifest.xml & edited the android:versionCode & android:versionName to a higher number. However after doing so when I re-build the app using "cordova build" in CLI; the default version number is restored. So am I doing the right thing by updating the version number? or is there any other method to do so using CLI
EDIT: Hi Kerri, as per your advise I changed the version identifier in the config.xml. However when I download the apk file on my phone & run it; it asks me to re-install the entire application & not the updates.
Thanks for your time.
Thanks,
Utpal
No. If you look at the top of that page, it does list a few events added by other plugins, but back button and the like are built in.
Ignore this. It's only useful if you are trying to embed a bit of PhoneGap into a native app. For example, you might have an existing native app that you want to add new functionality to, but you want to do that portion in PhoenGap. You can embed PG in your native app and get the benefits of both worlds.
Check out config.xml in your project root -- there's a version identifier in there.

Opentok module for Titanium SDK that supports both Android and IOS?

I am developing a mobile application using Titanium SDK. This is my first mobile app. Most of the app is done successfully. The only module that remains is Video conference support. The company I am working in has chosen to use Opentok SDK. I finished the web application and it works fine. Now I've hit a wall in mobile app and can't move further. The problem is Opentok provides a module to use for Titanium, But it only supports build to IOS not Android. The reason we chose Titanium is for cross platform support.
Is there any module available to use or any other way to implement Opentok with Titanium that builds into both Android and IOS.
I have already tried using a WebView to open the conference module of web application. But bad luck, Opentok only works with chrome browser in mobile. But WebView utilizes native stock browser which does not support WEBRTC. So, opentok doesn't work with webview too.
Please help me. This is my first app and I am stuck at this point.
To Create a Module for OpenTok Android:
These are the steps I would follow.
Create a new Android module: titanium.py create --type=module --id=com.tokbox.ti.opentok --platform=android --name=opentok-titanium
Follow the installation instructions from OpenTok for Android. (Hint: I added a separate section down below to help you get through their instructions.)
Make sure the module runs: ant run.emulator or ant install.
Try running their sample, fully in JAVA, completely separate from Titanium. Make sure it works, and you know what it should look like. Then, figure out what exactly you need from their API. Or, if you're feeling ambitious, decide you want everything. Work to strip down the example to just the surface area that you need. Simplify it down to the least number of files you feel makes sense.
Write an example/app.js that demonstrates how you want the module to be used. For example, maybe you'd start off by requiring the module, then setting some API + Session keys, then calling some API, etc.
Based on the documentation, port what you need in to your module. Reference the Appcelerator Android module dev guide and open source Android modules for inspiration.
Write documentation for the module to specify what the various properties, methods, etc are, so that other developers can figure out how to use the module.
When you're done, submit a PR to OpenTok and revel in your creation and contribution.
Some Hints for Step 2:
.jar files go in lib/.
.so files go in platform/android/libs/armeabi/
Permissions go in timodule.xml, and you can see an example in the open source PayPal module for Android
OpenTok does not work with WebView. OpenTok support for Titanium Android does not currently exist because it is currently in beta and we don't currently have engineering bandwidth to build a Titanium Android integration. However, if you are familiar with Titanium, you are more than welcome to add the integration yourself and send a pull request. You can get the Android beta here and you can get titanium source code here
If you are in a hurry and open to trying other frameworks, our PhoneGap Plugin currently supports both android and ios.

Categories

Resources