Skip to content

Commit

Permalink
fixup! Upgrade react-native to 0.60.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Pombeiro committed Sep 9, 2019
1 parent f303b1f commit 0df1b45
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nix/mobile/android/targets/release-android.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, stdenvNoCC, lib, target-os, callPackage,
mkFilter, bash, file, gnumake, watchman, gradle,
androidEnvShellHook, mavenAndNpmDeps,
nodejs, openjdk, jsbundle, status-go, zlib }:
nodejs, openjdk, jsbundle, status-go, unzip, zlib }:

{ build-number,
build-type, # Build type (e.g. nightly, release, e2e). Default is to use .env.nightly file
Expand Down Expand Up @@ -44,9 +44,9 @@ in stdenv.mkDerivation {
root = path;
};
};
nativeBuildInputs = [ bash gradle ] ++ lib.optionals stdenv.isDarwin [ file gnumake watchman ];
nativeBuildInputs = [ bash gradle ] ++ lib.optionals stdenv.isDarwin [ file gnumake watchman unzip ];
buildInputs = [ nodejs openjdk ];
phases = [ "unpackPhase" "patchPhase" "buildPhase" "installPhase" ];
phases = [ "unpackPhase" "patchPhase" "buildPhase" "checkPhase" "installPhase" ];
unpackPhase = ''
runHook preUnpack
Expand Down Expand Up @@ -117,6 +117,10 @@ in stdenv.mkDerivation {
${unsetEnvVars}
'';
doCheck = true;
checkPhase = ''
unzip -l $out/${outApkName} | grep 'assets/index.android.bundle'
'';
installPhase = ''
mkdir -p $out
cp ${generatedApkPath} $out/${outApkName}
Expand Down

0 comments on commit 0df1b45

Please sign in to comment.