Android: Difference between revisions

imported>ANicon111
Undid accidental grief
imported>Jmarmstrong1207
Using the nixpkgs androidenv: Remove blog post from 2012 and github link. Seems to use old methods that have better alternatives in the nixos manual referenced, and have duplicate info otherwise. Move the section to the top as it's essential for developing. Rename section to
Line 1: Line 1:
== Using the Android SDK and Manually Creating Emulators ==
NixOS uses the androidenv package for building android SDKs and manually creating emulators without the use of Android Studio.
The first link provides a guide for creating a custom android SDK, using a predefined SDK, and how to manually create an emulator. The second link is an extra guide that might have some helpful tips for improving your workflow.
# [https://nixos.org/manual/nixpkgs/unstable/#android  documentation]
# [https://sandervanderburg.blogspot.de/2014/02/reproducing-android-app-deployments-or.html  Reproducing Android app deployments]
== adb setup ==
== adb setup ==


Line 200: Line 208:
# [https://github.com/danielfullmer/robotnix robotnix], building aosp roms (e.g. LineageOS) with nix.
# [https://github.com/danielfullmer/robotnix robotnix], building aosp roms (e.g. LineageOS) with nix.
# [https://github.com/mrVanDalo/LineagoOS-build LineageOS build setup using terranix and hcloud], based on the [https://gist.github.com/Nadrieril/d006c0d9784ba7eff0b092796d78eb2a shell.nix to build LineageOS]. Useful if you are in a rush and don't have to much CPU power on your hand.
# [https://github.com/mrVanDalo/LineagoOS-build LineageOS build setup using terranix and hcloud], based on the [https://gist.github.com/Nadrieril/d006c0d9784ba7eff0b092796d78eb2a shell.nix to build LineageOS]. Useful if you are in a rush and don't have to much CPU power on your hand.
== Using the nixpkgs androidenv ==
User Sander van der Burg created two awesome blog posts as well as a number of test cases usable as examples on how to use the nixpkgs androidenv and the emulator provided:
# [https://nixos.org/manual/nixpkgs/unstable/#android  androidenv documentation]
# [https://sandervanderburg.blogspot.de/2012/11/building-android-applications-with-nix.html  Building Android applications with the Nix package manager ]
# [https://sandervanderburg.blogspot.de/2014/02/reproducing-android-app-deployments-or.html  Reproducing Android app deployments (or playing Angry Birds on NixOS)]
# [https://github.com/svanderburg/nix-androidenvtests A set of androidenv test cases]