on master help sign in
Provide a way to accept the Android SDK licence agreement
commitf6b1667d30c3f3a4a9f2f80695d6938db4ffb9aa authorKen Micklas <kmicklas@gmail.com> dateWed 3 Apr 2019, 13:44 (8 years ago) parent144d935
4 files changed+12−3
ChangeLog.md+2−1 README.md+1 default.nix+2−1 skeleton/default.nix+7−1
ChangeLog.md+2−1
@@ -4,7 +4,8 @@ This project's release branch is `master`. This log is written from the perspect
44
55## Unreleased
66
7−* Fixed crashes of Android apps on 32-bit ARM devices.
7+* Fix crashes of Android apps on 32-bit ARM devices.
8+* Provide a way to indicate acceptance of the Android SDK license by passing `config.android_sdk.accept_license = true;` in the arguments to the import of `.obelisk/impl` in the project's `default.nix`.
89
910## v0.1.0.0 - 2019-03-29
1011
README.md+1
@@ -272,6 +272,7 @@ It's also possible to inspect iOS WkWebView apps once they are installed in the
272272NOTE: Currently Android builds are only supported on Linux.
273273
2742741. In your project's `default.nix` set a suitable value for `android.applicationId` and `android.displayName`.
275+1. In your project's `default.nix` pass `config.android_sdk.accept_license = true;` in the arguments to the import of of `.obelisk/impl` to indicate your acceptance of the [Android Software Development Kit License Agreement](https://developer.android.com/studio/terms), which is required to build Android apps.
2752761. Run `nix-build -A android.frontend -o result-android` to build the Android app.
2762771. A debug version of the app should be generated at `result-android/android-app-debug.apk`
277278
default.nix+2−1
@@ -1,6 +1,7 @@
11{ system ? builtins.currentSystem
22, profiling ? false
33, iosSdkVersion ? "10.2"
4+, config ? {}
45}:
56let
67 cleanSource = builtins.filterSource (name: _: let baseName = builtins.baseNameOf name; in !(
@@ -16,7 +17,7 @@ let
1617 ];
1718
1819 getReflexPlatform = sys: import ./dep/reflex-platform {
19− inherit iosSdkVersion;
20+ inherit iosSdkVersion config;
2021 system = sys;
2122 enableLibraryProfiling = profiling;
2223
skeleton/default.nix+7−1
@@ -1,7 +1,13 @@
11{ system ? builtins.currentSystem # TODO: Get rid of this system cruft
22, iosSdkVersion ? "10.2"
33}:
4−with import ./.obelisk/impl { inherit system iosSdkVersion; };
4+with import ./.obelisk/impl {
5+ inherit system iosSdkVersion;
6+ # You must accept the Android Software Development Kit License Agreement at
7+ # https://developer.android.com/studio/terms in order to build Android apps.
8+ # Uncomment and set this to `true` to indicate your acceptance:
9+ # config.android_sdk.accept_license = false;
10+};
511project ./. ({ ... }: {
612 android.applicationId = "systems.obsidian.obelisk.examples.minimal";
713 android.displayName = "Obelisk Minimal Example";