mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
androidenv: Add the Android Instant Apps SDK
This commit is contained in:
parent
84e34d4d5d
commit
af78d76718
@ -305,4 +305,16 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
instant_apps = buildGoogleApis {
|
||||
name = "instant_apps_sdk";
|
||||
src = fetchurl {
|
||||
url = https://dl.google.com/android/repository/aiasdk-1.0.0.zip;
|
||||
sha1 = "50074a0f0312ee1d0d81d2cddc3d84a8a9e97a53";
|
||||
};
|
||||
meta = {
|
||||
description = "Android Instant Apps Development SDK";
|
||||
url = "https://developer.android.com/";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -5,7 +5,8 @@
|
||||
, zlib, glxinfo, xkeyboardconfig
|
||||
, includeSources
|
||||
}:
|
||||
{ platformVersions, abiVersions, useGoogleAPIs, useExtraSupportLibs ? false, useGooglePlayServices ? false }:
|
||||
{ platformVersions, abiVersions, useGoogleAPIs, useExtraSupportLibs ? false
|
||||
, useGooglePlayServices ? false, useInstantApps ? false }:
|
||||
|
||||
let inherit (stdenv.lib) makeLibraryPath; in
|
||||
|
||||
@ -164,6 +165,9 @@ stdenv.mkDerivation rec {
|
||||
"ln -s ${addons.google_play_services}/google-play-services google_play_services"
|
||||
else ""}
|
||||
|
||||
${stdenv.lib.optionalString useInstantApps
|
||||
"ln -s ${addons.instant_apps}/whsdk instantapps"}
|
||||
|
||||
cd ../..
|
||||
|
||||
# Symlink required sources
|
||||
|
@ -165,6 +165,7 @@ rec {
|
||||
useGoogleAPIs = true;
|
||||
useExtraSupportLibs = true;
|
||||
useGooglePlayServices = true;
|
||||
useInstantApps = true;
|
||||
};
|
||||
|
||||
androidsdk_7_0 = androidsdk {
|
||||
@ -179,6 +180,7 @@ rec {
|
||||
useGoogleAPIs = true;
|
||||
useExtraSupportLibs = true;
|
||||
useGooglePlayServices = true;
|
||||
useInstantApps = true;
|
||||
};
|
||||
|
||||
androidsdk_7_1_1 = androidsdk {
|
||||
@ -193,6 +195,7 @@ rec {
|
||||
useGoogleAPIs = true;
|
||||
useExtraSupportLibs = true;
|
||||
useGooglePlayServices = true;
|
||||
useInstantApps = true;
|
||||
};
|
||||
|
||||
androidsdk_8_0 = androidsdk {
|
||||
@ -207,6 +210,7 @@ rec {
|
||||
useGoogleAPIs = true;
|
||||
useExtraSupportLibs = true;
|
||||
useGooglePlayServices = true;
|
||||
useInstantApps = true;
|
||||
};
|
||||
|
||||
androidndk = import ./androidndk.nix {
|
||||
|
@ -60,6 +60,22 @@ in
|
||||
};
|
||||
};
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- Instant apps -->
|
||||
<xsl:for-each select="sdk:extra[sdk:path='instantapps']">
|
||||
instant_apps = buildGoogleApis {
|
||||
name = "instant_apps_sdk";
|
||||
src = fetchurl {
|
||||
url = https://dl.google.com/android/repository/<xsl:value-of select="sdk:archives/sdk:archive/sdk:url"/>;
|
||||
sha1 = "<xsl:value-of select="sdk:archives/sdk:archive/sdk:checksum[@type='sha1']" />";
|
||||
};
|
||||
meta = {
|
||||
description = "Android Instant Apps Development SDK";
|
||||
url = "https://developer.android.com/";
|
||||
};
|
||||
};
|
||||
</xsl:for-each>
|
||||
|
||||
}
|
||||
</xsl:template>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user