Is it possible to build Android and iOS apps in TFS2017? - android

I believe the new version of TFS won't offer native support for Android and iOS (unless the code is in C++), but in what ways could that be worked around?
Let's say I have a mobile client that has a version for every platform - Android, Windows Phone, iOS. The way I make a new build for Windows Phone is: open Visual Studio, find the right build definition and queue a new build, and then the build commences on a build agent and the output is copied to the folder that's specified in the build definition.
Is it possible to have that procedure for the iOS and Android apps as well? Currently, the procedure is using a Hudson build server, but I'd like to have build definitions for iOS and Android and just queue new builds through Visual Studio and receive the output .ipa and .apk files in the folder specified in the definition.
Thanks in advance for any suggestions.

On-premise TFS supports cross-platform build since TFS 2015, in the new tasks based build system. Check Continuous integration on any platform.
To build an Android app, use Gradle task: https://www.visualstudio.com/en-us/docs/build/steps/build/gradle
To build Xcode project, use Xcode build task: https://www.visualstudio.com/en-us/docs/build/apps/mobile/xcode-ios
In addition, TFS 2017 has some default build definition you can use directly: https://www.visualstudio.com/en-us/docs/build/define/build

Related

How to build .apk & .ipa in Flutter, using Android Studio?

I am new to Flutter developement.
I kept reading, understanding & following Flutter Documentation and has created my first flutter app in Android Studio IDE. It is working fine in android emulators.
Now I want to test application in iOS simulator but I don't know how to generate build for iOS.
Is it possible to generate .ipa through Android Studio IDE? If yes then how can I do that? Also I can not build .apk, what are the steps for that?
Thanks in Advance...
You can use
flutter build apk --release
flutter install
To build for iOS you need a Mac, because it depends on XCode to compile parts of the application.
You should first install X-Code and Android Studio (with Flutter settings and SDK enabled) on macOs, then copy your source code there and open with Android Studio.
After that run flutter clean, flutter packages get and flutter build ios commands in order.
If you have used some libraries that are not supported in iOS they must be omitted or replaced in the project (it can be determined by seeing the library's official page on pub.dev).
Then connect the iPhone to mac and if everything is OK it should be visible in device list section, finally press the Run button to finalize required dependencies by downloading from the internet.

Build (not develop) your android app .apk (gradle build) on server?

I'm trying to build(not develop) an android application on server. I've the whole native android code on the server, which I need to build according to some modification done on the server.
I've been looking all over the internet but couldn't find any detailed solution. All I got to know was I might need Jenkins or some CI tool (which I think is time consuming as I'll need to get them installed on server and then all the android dependencies).
Initial idea was to build the .apk file via some python script which contains all the gradle commands in it.
How can i do this?
Android apps can be built easily on a system that doesn't have any Android tools installed by applying the Android SDK Manager plugin for Gradle to your project.
When running ./gradlew assembleDebug (or whatever task), then Gradle will be installed and then all Android dependencies, including the SDK tools, build tools, platform versions and other dependencies will be installed automatically.
You can run this simply on the command line yourself, or automate to run after every commits to source control easily with Jenkins (it's easy to install on a wide range of operating systems).
You need to install Stand-alone SDK tools and suitable SDK packages to your server to build Android software.
When you have all installed and good, you can build APK with gradle , e.g.
(Linux and Mac)
./gradlew assemble

How to generate app files with Cordova and Visual Studio 2015?

I have installed Visual Studio 2015 with Cordova and I have created a very basic Hello World in HTML, JS and CSS! Now I want to generate an Android .apk and a Windows Phone .appx.
When I use Build command, it does not generate those under platforms\.... How to generate those appfiles?
Configuration
Is it possible I need to configure something somewhere? In config.xml I specified all required information about my app (name, version, etc)
Note
There are a few questions related to this, however they all refer to an older version of Visual Studio.
When you build with Visual Studio they will be placed in $projectdir\bin\Android\Debug or $projectdir\bin\Android\Release.
Also, make sure you have Device selected as the target.

Differences of Android apk exported by Eclipse and Android Studio

What are the differences of apk from Eclipse and Android Studio[IntelliJ IDEA]
is there more security in Android Studio build?
Android Studio utilizes the fast growing Gradle build system. It builds on top of the concepts of Apache Ant and Apache Maven but it also introduces a Groovy DSL (Domain-Specific Language) that allows for scripted builds which opens up many automation possibilities like uploading your beta .apk to TestFlight for testing.
Eclipse on the other hand uses Apache Ant as its main build system which a very robust XML based build system .
Please check this SO Answer
ADT (Eclipse) vs. Android Studio: How much APK file size difference is normal?
Conclusion
Both are identical.But i prefer Android Studio.
They both use the Android SDK to generate the APKs, they should be identical.
Code protection (security by obfuscation) is done with ProGuard both on Android Studio and on ADT (Eclipse). So if you use ProGuard, there should be no difference.

Build an existing PhoneGap project for iOS using PhoneGap Build

I have developed a hybrid app for android using PhoneGap in Windows environment.
This is what i did:
I added android platform after creating a cordova project and then imported it into eclipse and built it and tested it on my android phone.
Now i want to use the same code and build it for iOS using PhoneGap Build service. I can arrange an apple developer certificate but before that i want to make sure whether it is possible to build the existing project for iOS.
Can anyone suggest on this please?
for people looking for an answer to this here, is what i did :
Adobe build only requires a URL of git repo of the project. Once you have got it you can build it for any mobile platforms iOS, Android, Windows, and Blackberry.

Categories

Resources