summary refs log tree commit diff
path: root/pkgs/development/mobile/androidenv
Commit message (Collapse)AuthorAge
* treewide: use quotes for urlPavol Rusnak2021-06-20
|
* Change all alsaLib references to alsa-libAndersonTorres2021-06-10
|
* mkShell: introduce packages argument (#122180)Jonas Chevalier2021-05-13
| | | | | | | | | | The distinction between the inputs doesn't really make sense in the mkShell context. Technically speaking, we should be using the nativeBuildInputs most of the time. So in order to make this function more beginner-friendly, add "packages" as an attribute, that maps to nativeBuildInputs. This commit also updates all the uses in nixpkgs.
* androidenv: Allow multiple ndkVersions to be specifiedMorgan Jones2021-04-24
| | | | | | Android is deprecating ndk.dir in favor of specifying exact NDK version in Gradle configuration. Ensure that we can support multiple NDKs, and link them into the location the Android Gradle Plugin expects.
* Merge pull request #115229 from ↵Sandro2021-03-30
|\ | | | | | | rolfschr/android-fix-shebang-in-make-standalone-toolchain
| * android: replace '$(pwd)' by '.'Rolf Schröder2021-03-27
| |
| * android: Fix shebangs in auto-generated android toolchain scriptsRolf Schröder2021-03-09
| | | | | | | | | | | | | | The script make_standalone_toolchain.py autogenerates some shell scripts when invoked. These scripts have a hardcoded shebang of '#!/bin/bash'. The generated scripts obviously do not work in a Nix environment. This commit makes sure the scripts have the correct shebang.
* | treewide: xlibs -> xorgSamuel Gräfenstein2021-03-17
| | | | | | | | Fix building with `config.allowAliases = false;`.
* | android_prebuilt: Fix evals13412021-03-04
| |
* | androidenv: do not copy verboselyRyan Burns2021-01-27
|/ | | | | | Verbose copying can exceed hydra's output limit, causing spurious failures. For example, see: https://hydra.nixos.org/eval/1644892?filter=android
* treewide: editorconfig fixeszowoq2021-01-21
| | | | | - remove trailing whitespace - use spaces for indentation
* Rework androidenv package generationnuminit2021-01-03
| | | | | | | | | | | | | | androidenv did not previously write license files, which caused certain gradle-based Android tools to fail. Restructure androidenv's list of Android packages into a single repo.json file to prevent duplication and enable us to extract the EULA texts, which we then hash with builtins.hashString to produce the license files that Android gradle tools look for. Remove includeDocs and lldbVersions, as these have been removed from the Android package repositories. Improve documentation and examples.
* androidsdk_9_0: fix evaluation without aliasesJan Tojnar2020-12-06
|
* androidndk: Avoid depending on target-sensative openjdkJohn Ericson2020-09-08
| | | | | | We just need jdk for this script that helps set up toolchains. The script might need to know about the target platform, but the interpreter that runs it (or part of it) doesn't.
* deployAndroidPackage: Use `pname` and `version`John Ericson2020-09-08
|
* Merge pull request #95309 from obsidiansystems/mobile-fixesMatthew Bauer2020-08-28
|\ | | | | Support Android 29 in cross-compilation
| * androidenv: remove duplicate addons.nix entriesMatthew Bauer2020-08-17
| |
| * android: update sdk, ndk to 29, 21Matthew Bauer2020-08-17
| |
* | androidenv: fix convert files not quoting urlseyjhb2020-08-19
| |
* | androidenv/emulate-app: use runtimeShell instead of stdenv.shellLuca Favatella2020-08-16
|/ | | | See also https://github.com/NixOS/nixpkgs PR 56408.
* androidenv.build-tools: add libc++ to enable buildToolsVersion 29.0.3eyjhb2020-08-01
|
* androidenv: add missing emulator dynamic librariesvponte2020-05-30
|
* treewide: Per RFC45, remove all unquoted URLsMichael Reilly2020-04-10
|
* androidenv: manually (!) delete more complex version of google imagesLuca Favatella2020-03-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit was built as a revert commit followed by deletion: * Revert "androidenv: manually (!) delete oldest revision of google images". * Delete other revision. Using `systemImageType = "google_apis_playstore"` (and `abiVersion = "x86"` and `platformVersion = "28"` - that I expect resolved to `97d9d4f4a2afa8b0f5d52e90748e19c10406ca93`), the symptom is: ``` Warning: Observed package id 'system-images;android-28;google_ndk_playstore;x86' in inconsistent location '/nix/store/...-androidsdk/libexec/android-sdk/system-images/android-28/google_apis_playstore/x86' (Expected '/nix/store/...-androidsdk/libexec/android-sdk/system-images/android-28/google_ndk_playstore/x86') ... Error: Package path is not valid. Valid system image paths are: system-images;android-28;google_ndk_playstore;x86 ``` How is the actual image name `google_ndk_playstore` when the fetched image has id `google_apis_playstore`? Attempt keeping - of the two images - the one that looks simpler. For the `"28".google_apis."x86"` images, in the XML the differences are: more complex license (what is `arm-dbt`?); higher emulator. Namely: ``` <uses-license ref="android-sdk-license"/> <dependencies> <dependency path="patcher;v4"/> <dependency path="emulator"> <min-revision> <major>27</major> <minor>1</minor> <micro>7</micro> ... <uses-license ref="android-sdk-arm-dbt-license"/> <dependencies> <dependency path="patcher;v4"/> <dependency path="emulator"> <min-revision> <major>29</major> <minor>1</minor> <micro>12</micro> ``` Analogously for `"28".google_apis_playstore."x86"`.
* androidenv/emulate-app: fix image id for recent device managerLuca Favatella2020-03-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Symptom: ``` Available Android targets: ---------- id: 1 or "android-28" Name: Android 9 Type: Platform API level: 28 Revision: 6 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in Tag/ABIs : google_ndk_playstore/x86 ... Error: Invalid --tag google_apis_playstore for the selected target. ``` For creation of AVD, switch from `android` to `avdmanager` as the latter seems enabling selecting the image with less friction (and is better documented as not deprecated). This requires using recent tools - from https://developer.android.com/studio/releases/sdk-tools : > SDK Tools, Revision 25.3.0 (March 2017) > ... > `android avd` command-line functionality replaced with new > `avdmanager` tool. For listing of targets, switch from `android` to `avdmanager` as the `android` command invocation fails in recent tools. Symptom (not missing `s` as backward incompatibility): ``` Invalid or unsupported command "list targets" Supported commands are: android list target android list avd android list device android create avd android move avd android delete avd android list sdk android update sdk ``` References: - https://developer.android.com/studio/tools/help/android - https://developer.android.com/studio/command-line/avdmanager
* androidenv: add missing linux dependenciesFreeman Latif2020-03-09
| | | | | | | | | | | | | | | | | | | This is extracted from https://github.com/NixOS/nixpkgs PR 78623. The symptom I observed was: ``` builder for '/nix/store/7zz585ch9jqjvz8k88rf7fs046inxszq-emulator-30.0.3.drv' failed with exit code 1; last 10 log lines: libXext.so.6 -> found: /nix/store/qkmj8pa3ka9v335bbgx74ah4080fwdbf-libXext-1.3.4/lib/libXext.so.6 libXfixes.so.3 -> found: /nix/store/nhp59xxq4g51mgpwgjsp8pvkn7531b86-libXfixes-5.0.3/lib/libXfixes.so.3 libXi.so.6 -> not found! libXrender.so.1 -> not found! libXtst.so.6 -> not found! libasound.so.2 -> not found! libz.so.1 -> found: /nix/store/pb2am7dfsv524pb2z7m8mp8nkcmgd3cl-zlib-1.2.11/lib/libz.so.1 libdbus-1.so.3 -> found: /nix/store/ddqrvb1b0xdb8g18f4advmq4wk0aiknd-dbus-1.12.16-lib/lib/libdbus-1.so.3 libGL.so.1 -> found: /nix/store/bbpgyifsh2hv0ivhl3g4ik2nw7d10zdx-emulator-30.0.3/libexec/android-sdk/emulator/lib64/gles_mesa/libGL.so.1 libc++.so.1 -> found: /nix/store/bbpgyifsh2hv0ivhl3g4ik2nw7d10zdx-emulator-30.0.3/libexec/android-sdk/emulator/lib64/libc++.so.1 ```
* androidenv: manually (!) delete default images with same nameLuca Favatella2020-03-09
| | | | | | ... complex as apparently dependent on OS of host of emulator. This shall rather be solved by enhancement of the scripts.
* androidenv: manually (!) delete oldest revision of google imagesLuca Favatella2020-03-09
| | | | | | ... as same name hence clashing. This shall rather be solved by enhancement of the scripts.
* androidenv: fix default platform-tools to a known oneLuca Favatella2020-03-09
|
* androidenv: bump emulator version to latest stable - as per LinuxLuca Favatella2020-03-09
| | | | | | | | | | | | | | | | | | | | Move to a known version of the emulator. Each OS has a distinct version... pick the one on Linux. A better solution would be to let the user of `emulateApp` overload what the emulator version shall be (and maybe it is already possible and I do not see it) - without need to reproduce large portions of `default.nix`. Using the previous emulator showed the following warning: ``` Your emulator is out of date, please update by launching Android Studio: ``` I am not aware of any reasons for not wanting the latest emulator (as I expect it shall be compatible usually with more system images - not less), so bump its default version. Emulator release notes: https://developer.android.com/studio/releases/emulator
* androidenv: update the generated expressionsLuca Favatella2020-03-09
| | | | ... running `generate.sh`.
* androidenv: fix packages xsl used in generate.shLuca Favatella2020-03-09
| | | | | Entry `<remotePackage path="cmdline-tools;latest">` resulted in a duplicated `"cmdline-tools"."1.0"`.
* androidenv: fix system images xsl used in generate.shTad Fisher2020-03-09
| | | | | | | | | | Updated with fixes for `convertsystemimages.xsl`: - Use `type-details/codename` if it exists, falling back to `type-details/api-level`: this results in "Q" rather than "28" for preview images - Use `<xsl:text>` elements to control whitespace in the output. This is extracted from https://github.com/NixOS/nixpkgs PR 58131.
* androidenv: update generate.sh to use nix-shell and fail on errorTad Fisher2020-03-09
| | | | | | | | | Update generate.sh to run using nix-shell. Also make it fail with meaningful output instead of writing empty output files. This is extracted from https://github.com/NixOS/nixpkgs PR 58131. This relies on the shebang being used.
* androidenv: add platform SDK 29Sander van der Burg2020-03-01
|
* androidenv build-tools: fix old versions under linuxLenz Weber2020-02-14
|
* androidenv.lldb: Fix libssl not foundHernawan Faïz Abdillah2020-01-07
|
* treewide: *inputs are listsRobin Gloster2019-12-31
|
* android: Install platform-tools binaries on all OSesKirill Elagin2019-11-19
|
* deployAndroidPackage: prefer local buildsJamey Sharp2019-11-16
| | | | | | These derivations just unzip something and maybe do a little patching, so there's no benefit to sending the zip file off to a build server and then downloading the unzipped results again.
* treewide: remove redundant quotesvolth2019-09-08
|
* Merge staging-next into stagingFrederik Rietdijk2019-08-28
|\
| * androidenv: rename stdenv.lib -> libErik Arvstedt2019-08-17
| | | | | | | | Removes some visual clutter.
| * androidenv/emulate-app: rename androidsdkComposition -> sdkErik Arvstedt2019-08-17
| | | | | | | | This greatly improves readability by shortening some of the overlong lines.
| * androidenv/emulate-app: fix passing extra args to the sdk compositionErik Arvstedt2019-08-17
| | | | | | | | | | This feature was originally intended but left unfinished, as indicated by the unused variables 'args' and 'androidSdkArgNames'.
| * androidenv: fix deployment of google_apis* system imagesErik Arvstedt2019-08-17
| | | | | | | | Fixes #56866
* | treewide: remove redundant quotesvolth2019-08-26
|/
* treewide: remove unused variables (#63177)volth2019-06-16
| | | | | | * treewide: remove unused variables * making ofborg happy
* Merge pull request #61168 from matthewbauer/release-cross-fixesMatthew Bauer2019-06-03
|\ | | | | release-cross.nix changes/fixes
| * androidenv: add more context to os not found errorMatthew Bauer2019-05-08
| | | | | | | | | | We don’t have android sdk available for aarch64, so this error happens a lot. Adding some context on what is going on makes this clearer.