Android Teamcity Setup - android

I am trying to setup Android build in Teamcity. I have some doubts about setting up the CI. Apologies for Naive questions
Where to install the Android SDK and JAVA_11. Tamcity server or Build Agent?
How to handle builds for different app flavors?
How do I generate .aab file for prod?

Related

What is the difference between apk built in ci/cd on gitlab and one built in Android studio

I have an Android project and it's on gitlab with ci/cd configured according to this article
https://about.gitlab.com/blog/2018/10/24/setting-up-gitlab-ci-for-android-projects/
I build debug version of the app both on gitlab and in Android Studio
The apk files are different, although their content are identical. The gitlab apk doesn't install on the phone(the play market protection error). The Android studio file does install on the phone.
Is there any meta data in jar (zip?) files? From what I see (by looking at the Meta-Inf folder) both are not signed. What could be the difference between them?
Please advise

how to build APK files for applications developed using Flet (python)

in flutter i can build APK files for Android applications using
flutter build apk
how to build APK files for applications developed using Flet (python)?
flet currently does not have support for mobile platforms. But it will be soon.
Take a look here.

Upload ipa and apk after build to s3 using teamCity

I would like to upload my ipa and apk to s3 bucket using team city...
My app builds with react native and for iOS Im using Xcode and for android I'm using Gradle and visual studio code
For example: I would like after I'm doing cd android && ./gradlew assembleRelease in the cmd so the app builds for android and when it done to upload the apk which created to my s3 bucket using team city. (same with Xcode after pressing the play button)
I have been trying to find a good guide to explain me how to do it but I couldn't find a guide that will satisfy me...
I would like to get some help and to know my options
Thank you
You can set up an external S3 artifacts storage in TeamCity and publish necessary files as artifacts in General build configuration settings. TeamCity will automatically publish data to the configured bucket at the end of the build.

AppCenter's responsibility

I'm trying to figure out the CI portion that provided by AppCenter. I've implemented CodePush for my app and please correct me if my understanding is wrong.
We build the native android app and generate a signed apk.
Release the generated signed apk to playstore
execute command to upload bundle appcenter codepush release-react -a <owner>/<android-app> -d Production
The above are generally the way I understand CodePush and I've tested and working fine.
Now I've noticed that we can integrate our github project branch to appcenter, and whenever there is a git push, AppCenter will build it automatically and we can configure to release to playstore automatically.
Now the part I don't understand is, is this CI auto build by AppCenter actually nothing to do with CodePush?
If now my situation is only having updates on JS code side, actually when I git-push to repo, there isn't a need to auto-release to playstore right?
Correct, Build and Push are separate services in App Center. Build does the binary build of your app while CodePush simply updates the JavaScript and related code in an Apache Cordova or React Native. They're separate workflows and it seems you want to trigger them separate ways.
If you're using CodePush, you can't also use Build to auto build and deploy the native app to devices, you're duplicating work. I'm not an expert, but you probably want to manually deploy your builds whenever you make changes to the native side of the app (which should be rarely, right?) - like when there's major updates to the native framework or new plugins added to the native app

Generate apk file from playground online

I have written a small test app on nativescript playground online, and I want .apk file of it. Is there any online tool to generate .apk file from playground, instead of having to install tns and run 'tns run'/'tns debug'/'tns build' on my local machine ?
No, it's not possible to generate APK from Playground.
If you don't want to setup Android SDK locally, you may try cloud build option but at least that requires NativeScript CLI / Sidekick setup on your local machine.

Categories

Resources