Generate apk file from playground online - android

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.

Related

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.

Phonegap remote build

I'm developing app in Sencha touch(Touch 2.4 && CMD 5) and packaging using Phonegap/Cordova for Android and iOS. I'm developing on windows machine with Android device(HTC) and iOS device(iPhone 5).
Initially i packaged the app with cordova, and with limitation of iOS build i keep working for Android build only. I added 5 plugins (Facebook, Network Information, Camera, FIle Transfer, Email Composer) using cordova and all working fine for android build. My latest Android apk file size is 3.8 MB.
Now i need to build iOS ipa as well, so i opted "Phonegap Remote Build Service" option. I clone my Sencha touch project and packaged it to Phonegap, added all plugins, mention the iOS platform in app.json and set remote true and add local.properties file with email and password set of paid adobe phonegap account. When i execute command "sencha app build native" , it did everything right but gave error of "Invalid email or password". Then i went for other option, i made zip file of phonegap folder and uploaded manually, and build on Adobe Phonegap Build portal, it provided me both the builds but with one big issue of huge size. Both files(apk, ipa) reached 37-40 MB.
Now i need help of different options which i can take(Other than iOS machine), how i can minimize the size of files. As locally cordova packaging providing me very lightweight apk file. If I'm doing something wrong in Phonegap packaging, please mention it.
Thanx in advance.
When you say manuall upload turns zip size to 37 - 40 MB ,i think it must contain library folder as well .
for Invalid email or password : - there must be some typo mistake only this is possible scenario i could think off.
Thanks

Build Android APK programmatically

I need to build a web environment which creates signed Android .apk files from a given Android application source code. How can I get this? The web environment will be running on a Linux machine.
I was thinking on a Linux shell script which builds signed .apk file. However, I've read some information about Apache Ant but I don't understand exactly its purpose and if it could do the trick.

Android and Unity 3D game development

I am starting to explore the game development using unity 3d for android. I have downloaded the trial version of unity 3.3. I went through few tutorials.
I have one question that is not answered. In the normal apps which we develop using eclipse, we can deploy onto mobile by copying the apk file. What about unity 3d? How do I get the game onto my phone. I don't want to publish on market.
It is possible to transfer your assets to Eclipse. When it's integrated you can debug via your android phone. Be sure to read the tutorial on Unity's homepage. There is a step by step start-up guide and some more. Following links are worth looking at:
Getting started with Unity and Android
Official - Integrating Unity with Eclipse
Alternative link - Integrating Unity with Eclipse
It would seem that the official "integration" link is broken so I updated with a forum post that covers the same topic. However I recommend to try with the official link first.
Yes, you can simply copy the apk to your device and install it. Unity builds an apk file (and will optionally sign it using a keystore that you provide or let it generate for you). Once it has built that apk you can deploy it normally. You can even have it include a customized manifest in the apk that it builds if you want to (but it generates a nice one from your settings in the unity project by default).
There are two methods for this, as far i understand,
Using Build Settings--> Build, It builds the apk file that can be installed on your device using adb install <apk file path and name>
Using Build Settigs--> Build and Run. Which automatically installs the apk built apk file on your device if connected
go to file
-build
-select android platform(your pc has to have android development kit)
-save your apk
As it is still unanswered I try to close this question
First of all, current version of Unity 5.2 is much more powerfull than version 3.3. mentioned in original question.
What about unity 3d? How do I get the game onto my phone. I don't want to publish on market.
The same way. Unity allows you to publish build as *.apk on ocal machine and then you can just copy it to your phone and install it.
What is more cool, now you can debug your application running on phone. You have to install Unity Remote to the phone and run. Now you can set breakpoints and debug as normally.
If you change your mind and go to publish on Market - Unity will sign your *.apk
Hope this helps someone, good luck!
The Same way you generate the apk through Eclipse like that in unity you need to build the project. For that android sdk and jdk should be installed in your system and u need to show those path in the unity Preferences then u need a google keystore and need to sign in with that key store in the Publisher settings and then u are able to build the apk which will be store in your local system and you can copy that to your mobile and install the apk file.

Building the apk using the ant script .

I am facing problem in creating the .apk file using the ant script . The generated .apk named as _unaligned.apk instead of .apk and on installing the _unaligned.apk file to the device I get force-close showing the java.lang.VerifyError exception, but the same apk generated using IDE works fine. I am struck on this for a long time. Can you share the build.xml file that generates the .apk file?
this Bloq entry explains all necessary steps. Especially if you want to customize your build script.
If your are looking for the actual build script, just look into your Android SDK folder platforms/android-X/templates. There should be a file called android_rules.xml.
I customized my build script to clean, build, sign and distributing the apk to an attached device. If you like, I can provide you with my script. Just contact me!
You'll need to use zipalign & sign your apk with some key; as long as you're testing the app you can simply use the debug key with ant debug
At least that's what I understand from this page which you may want to read carefully.
What ant command are you running at the command / terminal prompt?
I have been having different problems with manually running ant (Repackage apk file to contain custom assets what build tool to use) and there might be some info on that thread to help you.
Alternatively, remember that one needs to sign the apk file before deploying it (see Joubarc's link).

Categories

Resources