Continuos Test Flight upload .apk Android apps - android

I'm wondering if there is some kind of solution like this one for iOS for Android, in order to upload .apk to Test Flight:
Is there any automatic Testflight upload script on application archiving?
So we need to upload .apk files to test Flight repository using some kind of script from command line.
Many thanks

Check out the Upload API from TestFlight.
You can create some sort of batch script you can execute at certain times.
For example:
curl http://testflightapp.com/api/builds.json
-F file=#testflightapp.apk
-F api_token='your_api_token'
-F team_token='your_team_token'
-F notes='This build was uploaded via the upload API'
-F notify=True
-F distribution_lists='Internal, QA'

Related

How to commit file to github using REST API for CI integration

I want to send my .apk file to the github repository through REST API.
File is converting to base64 and send as blob:
BLOB_SHA=$(curl -X POST https://api.github.com/repos/{user}/{repo}/git/blobs -H "Accept: application/vnd.github.v3.raw+json" -H "Authorization: Basic {token}" -d '{"content":{my app in base64},"encoding":"utf-8|base64"}' | jq '.sha')
But here is a message:
bash: /mingw64/bin/curl: Argument list too long
What I try to achive is: build apk on Codemagic, send apk to github, trigger appium test automation.
Maybe there is any other posibility to connect Codemagic build and appium tests?
probably it will be better to run Appium tests with Codemagic after you built an apk. In this case you don't need to commit any binaries back to the repository. Check this link to see example how to run Appium tests https://docs.codemagic.io/yaml-testing/testing/#react-native-integration-tests-using-appium-and-emulator
However if you still want to commit file you can just use git commands but ensure you have write permissions (check this link for example https://docs.codemagic.io/knowledge-base/add-a-git-tag-with-app-version/)

Upload generated .apk into Diawi using script

Is it possible to avoid manually uploading the .apk file into Diawi by using some scripts?
I saw that there is a plugin for Jenkins that uploads the .apk after CI and I was wondering if it is possible to do the same locally by using the command line.
After browsing in the Diawi documentation I found some guidance here. But I had issues with the HTTP 2 version and I had to force curl to use HTTP 1.1 instead. You can open the terminal of the Android Studio a just write the scripts. With the gradlew assembleRelease a .apk file will be generated, and after that, the curl command will upload it to your Diawi profile.
This is the command for Mac users:
./gradlew assembleRelease && curl -v --http1.1 https://upload.diawi.com/ -F token='<your_DIAWI_token>' -F file=#/<path_to_your_apk>/myapp-release.apk -F find_by_udid=0 -F callback_emails='<your_mail>'
This is for Windows users:
gradlew assembleRelease && curl -v --http1.1 https://upload.diawi.com/ -F token="<your_DIAWI_token>" -F file=#/<path_to_your_apk>/myapp-release.apk -F find_by_udid=0 -F callback_emails="<your_mail>"

How to push IPA and APK file to App Center Distribute from appcenter command line and Jenkins

How to push an iOS IPA file and Android APK file to App Center Distribute from the command line? Then I would like to execute appcenter command in Jenkins and upload the ipa and apk file.
I installed the npm appcenter-cli at RHEL
$ appcenter -v
appcenter version 1.1.14
I am using the following command at unix prompt , I put it my ipa and apk file in /tmp directory and provided full access.
$ appcenter login --token e************************88cb4
Logged in as
$ appcenter distribute release -f /tmp/20190322P.ipa -g Collaborators --app ***/Pradeep.iOSDev--ios
but getting below mentioned error
Error: failed to create release upload for /tmp/20190322P.ipa
I followed the followings urls
How to push IPA to App Center Distribute from Continuous Integration Server
https://learn.microsoft.com/en-us/appcenter/cli/
Please suggest me how to upload ipa and apk files from appcenter command line and then execute in Jenkins.
In my case the issue was that app had Store Release Type.
Changed it to Enterprise and then it worked like a charm.
(to get the idea of the issue cause, after googling didn't help, I have executed appcenter distribute release with --debug flag, and the output contained the explanation).

How to create .obb file for my android project?

i am creating a app and my app size 80 mb and i want to make .obb file for publishing app on play store. i tried google and also try This but not getting please give me proper way for how to create .obb file.
You Just Write the similar code like this in command prompt and get the .obb file in tools folder>>
C:\>C:\Development\Android\adt-bundle-windows-x86-20140321\sdk\tools\jobb -d C:\
Myworkspace\ImageTargets\assets\ -o Imagetargets.obb -k globe -pn com.ib.globeap
p.activity -pv 200 -v

Titanium CLI not accepting the .keystore file provided

I am trying to make android build, target set to build for dist-playstore from Titanium CLI. I am using this command
titanium build -p android -b -d /Users/ajeetpratap005/Documents/Titanium_Studio_Workspace/androidTest
-f -L androidTest -A /Users/ajeetpratap005/android-sdks
-K /Users/ajeetpratap005/android-test.keystore
-T dist-playstore -O /Users/ajeetpratap005/Documents/Titanium_Studio_Workspace/androidTest/dist
It builds successfully but I am not able to get my build in the output folder. when I checked the build which is getting generated in the build/android/bin folder, it is signed with the default keystore file which is present in the
<titanium mobile SDK location>/3.0.0.G.A/android/dev_keystore
How do I make titanium CLI to take my .keystore file and dump the production build to the output folder mention in the command..
Please refer to this document
https://wiki.appcelerator.org/display/guides/Packaging+for+the+Android+Market
There are instructions on the android developer site for generating the certificate key file here: http://developer.android.com/guide/publishing/app-signing.html#cert
See this video for more clarity http://vimeo.com/10278960

Categories

Resources