Android Wear Deployment VS. Mobile Deployment - deployment

I have 2 modules in my project Mobile & Wear because I eventually want to add wear support. I have not done any work to the Wear project, it is just whatever Android Studio generates as part of the project creation template.
I noticed Android Studio creates 2 separate APKs when you do a signed build. I see 1 mobile APK and 1 Wear APK upon signed build.
If I would like to publish only the mobile Module now, and Wear later. Do I just upload the Mobile APK and that's it? Or are there any additional config / code changes necessary?
Thanks.

When you're developing, there's two different apk's as you said, because each one is used to test the app while we are developing.
Once that you want to submit your app to the market, these two .apk will become just one, calling this process "packaging wearable app".
So, if you want have just your mobile .apk, please go to build.gradle(mobile), and comment the code:
wearApp project(':wear')
Basically this line is telling to your compiler, to pack your wear app into your mobile app.

Related

Generate HarmonyOS (Huawei) build from Flutter project

I am working on one Flutter project. In which, We want to generate builds of Android, iOS, and HarmonyOS (Huawei). But I am not sure does Flutter supports this OS or not. I went through some of the stuff on the internet but was unable to figure out how to generate and what kind of commands were needed. Here, Anyone has previously generated HarmonyOS compatible build from the Flutter project. Please share your thoughts.
For now it is not possible directly from Flutter. Because of the change in architecture brought by Huawei with HarmonyOS it is not anymore an "Android device" and it doesn't run "Android applications".
Now what you can call "native HarmonyOS applications" are *.app files (not *.apk or *.aab)
Most recent answer on Quora to:
Will Harmony OS run Android apps?
Gives the following response:
Answered Jun 4, 2021 by Mahdi Parastech, Software Engineer
Nope, because:
The structure of the APIs are different.
Hongmeng (HarmonyOS) apps are in *.app, Android apps are *.apk
The structure of pages (activities) are different, Hongmeng uses some additional json files and puts pages inside *.har files.
Hongmeng uses Javascript too, and that's the only option in Wearable Hongmeng devices, but Android apps are just written in Java.
source
Apparently you should be able to migrate your native android application to HarmonyOS by using their IDE but the thing is that Flutter was not build for this architecture.
Except if the Flutter team decides for some reason to support HarmonyOS I don't think it will be possible to develop HarmonyOS applications by using Flutter.

How we can publish flutter app on app store from windows

I Develop a flutter application, I am a Windows user. I don't have a MacBook, so is there any way to publish the flutter app on the app store using windows?
You can't build or publish iOS from Windows or any other system except MacOS. If you have no mac take a look at cloud services that can dedicate one to you (e.g. MacStadium). CI/CD services like CodeMagic, AppCenter is an option too, it is more suitable for small or pet projects when you don't need to build iOS often.

How to deploy Ionic app for remote internal users to test

I have an ionic app build on my system.
For now, I have been testing my app using Ionic DevAPP (which can be found on the App Store and Google Play).
Prerequisite to run an app on my mobile device using Ionic DevApp is, My app needs to be up and running using the command:
ionic serve
This option looks great when doing development.
But now, I have my app build and I want to share it with the testing team and PO who is located on shore.
I want to know is there any way or free platform where the users can run an app on their mobile devices directly without starting a dev server.
NOTES:
I know about Ionic dashboard, but it is not free when comes to sharing builds.
I don't want to upload my app on Play Store or Google Play.
Any help is recommended as I am really looking for options to share my app.
I use Diawi To share both apk and ipa, bypassing play/app stores.

Can we run a Capacitor PWA app offline?

i just created an Ionic project and i added capacitor on it ( with a "npx cap init" ), i set up my service worker ( i just left the <--- ...... ---> in my index.html ). Then i run " ionic serve " from my laptop, and i tried to access it from my mobile phone ( so basically i did a personnal hotspot with my mobile internet, i mean my laptop and mobile phone have the same internet connection ), and it works.
I can access to my ionic app from my mobile whereas it is runt on my laptop, but now i'd like to add/download this app on my mobile phone and use it offline.
Do you know any way i can do that ?
Thanks a lot !
Capacitor works by serving your static assets (like javascript and HTML) from a self-hosted web server, whose behavior is dependent on your capacitor.config.json. This behaviour is most obvious if you look at the source code.
If you have server.url specified in capacitor.config.json, Capacitor's self-hosted server will act as a proxy for the server you point to.
If you do not have server.url specified, Capacitor's self-hosted web server will serve the files that were bundled with your native app.
Based on this, when you are creating the build for your phone, you will need to remove the server url property from your capacitor.config.json. You may also need to generate the capacitor.config.json on the fly in order to separate your development and production needs.
Note that the Ionic Framework and Capacitor have two completely different deployment paths; this answer assumes that you use Capacitor to create your builds.
Of course you can make an app and install it on your phone - that is basic purpose of Capacitor. Docs for android, docs for ios
Steps are similar to this (example for android):
Install Android Studio
At capacitor.config.json define techSupportEmail
npx cap add android
npm run build && npx cap copy android && npx cap open android
Enable developer mode on your phone
Plug your phone in
In Android Studio choose your device and hit "play" button

How to get Samsung Smart TV Emulator to see my app?

I'm just getting started on Samsung Smart TV development, and so far my first baby step has been a big failure.
I am running Linux, and because I already have Eclipse installed and configured for Android development, I haven't had success in getting the Smart TV SDK installed and working. However, encouraged by How to build & deploy a Samsung SmartTV app without the IDE (e.g: on Linux), I have decided to go forward without it.
I do have the VirtualBox emulator running, however. So right now, I have built a basic app from the example here:
http://www.samsungdforum.com/upload_files/files/guide/data/html/html_2/getting_started/coding_js.html
And would like to see if I can just get it to start up on my emulator.
If I understand correctly, I need to take the directory structure of my app (with config.xml, index.html, and the Resources, JavaScript and CSS folders), package it into a .zip, and drop it in the "Apps" folder I have shared with the emulator. But when I do that, if I go to the emulator, refresh it, and hit "Open App", I am presented with an empty App list.
I know that the emulator is seeing the Apps folder, because if I put a subdirectory in it, then that directory shows in the Apps list in the emulator. But it's not showing the .zip file for my app.
I have been scouring the web for any useful information, but all tutorials just say something along the lines of "now test the app in your emulator to make sure it works. Now on to deployment...". Nobody gives any information on how to test the app in the emulator.
Can someone please shine some light on this for me?
Unzip your app in the app folder it should look like this
Samsung TV SDK 4\apps\yourapp\index.html
Samsung TV SDK 4\apps\yourapp\config.xml
Samsung TV SDK 4\apps\yourapp\other files and folders