From 06278f6253f597e8c8acda7c570b1dc92c63d754 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Tue, 12 Jun 2018 20:19:02 +0800 Subject: [PATCH 1/2] add RNTester to ci --- .circleci/config.yml | 5 +++++ RNTester/android/app/build.gradle | 2 +- RNTester/android/app/gradle.properties | 6 +++--- RNTester/android/app/my-release-key.keystore | Bin 0 -> 2257 bytes 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 RNTester/android/app/my-release-key.keystore diff --git a/.circleci/config.yml b/.circleci/config.yml index 185be9135eb451..0347a4ba3d24cf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -563,6 +563,11 @@ jobs: - store_test_results: path: ~/react-native/reports/junit + - run: + name: Build Android RNTester + command: | + ./gradlew RNTester:android:app:assembleRelease + # Analyze pull request and raise any lint/flow issues. # Issues will be posted to the PR itself via GitHub bots. # This workflow should only fail if the bots fail to run. diff --git a/RNTester/android/app/build.gradle b/RNTester/android/app/build.gradle index 5e5503b5eb7ca6..d34e0e1add4c47 100644 --- a/RNTester/android/app/build.gradle +++ b/RNTester/android/app/build.gradle @@ -81,7 +81,7 @@ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ -def enableProguardInReleaseBuilds = false +def enableProguardInReleaseBuilds = true android { compileSdkVersion 23 diff --git a/RNTester/android/app/gradle.properties b/RNTester/android/app/gradle.properties index 04cbf4f74219c9..926d2479c3f36b 100644 --- a/RNTester/android/app/gradle.properties +++ b/RNTester/android/app/gradle.properties @@ -2,6 +2,6 @@ android.useDeprecatedNdk=true org.gradle.parallel=true org.gradle.configureondemand=true MYAPP_RELEASE_STORE_FILE=my-release-key.keystore -MYAPP_RELEASE_KEY_ALIAS=my-key-alias -MYAPP_RELEASE_STORE_PASSWORD=***** -MYAPP_RELEASE_KEY_PASSWORD=***** +MYAPP_RELEASE_KEY_ALIAS=androiddebugkey +MYAPP_RELEASE_STORE_PASSWORD=android +MYAPP_RELEASE_KEY_PASSWORD=android diff --git a/RNTester/android/app/my-release-key.keystore b/RNTester/android/app/my-release-key.keystore new file mode 100644 index 0000000000000000000000000000000000000000..364e105ed39fbfd62001429a68140672b06ec0de GIT binary patch literal 2257 zcmchYXEfYt8;7T1^dLH$VOTZ%2NOdOH5j5LYLtZ0q7x-V8_6gU5)#7dkq{HTmsfNq zB3ZqcAxeY^G10@?efK?Q&)M(qInVv!xjx+IKEL}p*K@LYvIzo#AZG>st5|P)KF1_Z;y){W{<7K{nl!CPuE z_^(!C(Ol0n8 zK13*rzAtW>(wULKPRYLd7G18F8#1P`V*9`(Poj26eOXYyBVZPno~Cvvhx7vPjAuZo zF?VD!zB~QG(!zbw#qsxT8%BSpqMZ4f70ZPn-3y$L8{EVbbN9$H`B&Z1quk9tgp5FM zuxp3pJ0b8u|3+#5bkJ4SRnCF2l7#DyLYXYY8*?OuAwK4E6J{0N=O3QNVzQ$L#FKkR zi-c@&!nDvezOV$i$Lr}iF$XEcwnybQ6WZrMKuw8gCL^U#D;q3t&HpTbqyD%vG=TeDlzCT~MXUPC|Leb-Uk+ z=vnMd(|>ld?Fh>V8poP;q;;nc@en$|rnP0ytzD&fFkCeUE^kG9Kx4wUh!!rpjwKDP zyw_e|a^x_w3E zP}}@$g>*LLJ4i0`Gx)qltL}@;mDv}D*xR^oeWcWdPkW@Uu)B^X&4W1$p6}ze!zudJ zyiLg@uggoMIArBr*27EZV7djDg@W1MaL+rcZ-lrANJQ%%>u8)ZMWU@R2qtnmG(acP z0d_^!t>}5W zpT`*2NR+0+SpTHb+6Js4b;%LJB;B_-ChhnU5py}iJtku*hm5F0!iql8Hrpcy1aYbT z1*dKC5ua6pMX@@iONI?Hpr%h;&YaXp9n!ND7-=a%BD7v&g zOO41M6EbE24mJ#S$Ui0-brR5ML%@|ndz^)YLMMV1atna{Fw<;TF@>d&F|!Z>8eg>>hkFrV)W+uv=`^F9^e zzzM2*oOjT9%gLoub%(R57p-`TXFe#oh1_{&N-YN z<}artH|m=d8TQuKSWE)Z%puU|g|^^NFwC#N=@dPhasyYjoy(fdEVfKR@cXKHZV-`06HsP`|Ftx;8(YD$fFXumLWbGnu$GMqRncXYY9mwz9$ap zQtfZB^_BeNYITh^hA7+(XNFox5WMeG_LtJ%*Q}$8VKDI_p8^pqX)}NMb`0e|wgF7D zuQACY_Ua<1ri{;Jwt@_1sW9zzdgnyh_O#8y+C;LcZq6=4e^cs6KvmK@$vVpKFGbQ= z$)Eux5C|Fx;Gtmv9^#Y-g@7Rt7*eLp5n!gJmn7&B_L$G?NCN`AP>cXQEz}%F%K;vUs{+l4Q{}eWW;ATe2 zqvXzxoIDy(u;F2q1JH7Sf;{jy_j})F+cKlIOmNfjBGHoG^CN zM|Ho&&X|L-36f}Q-obEACz`sI%2f&k>z5c$2TyTSj~vmO)BW~+N^kt`Jt@R|s!){H ze1_eCrlNaPkJQhL$WG&iRvF*YG=gXd1IyYQ9ew|iYn7r~g!wOnw;@n42>enAxBv*A zEmV*N#sxdicyNM=A4|yaOC5MByts}s_Hpfj|y<6G=o=!3S@eIFKDdpR7|FY>L&Wat&oW&cm&X~ z5Bt>Fcq(fgnvlvLSYg&o6>&fY`ODg4`V^lWWD=%oJ#Kbad2u~! zLECFS*??>|vDsNR&pH=Ze0Eo`sC_G`OjoEKVHY|wmwlX&(XBE<@sx3Hd^gtd-fNwUHsylg06p`U2y_={u}Bc Date: Wed, 13 Jun 2018 09:33:37 +0800 Subject: [PATCH 2/2] move location --- .circleci/config.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0347a4ba3d24cf..a4c71f320ab986 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -558,16 +558,17 @@ jobs: - run: *run-android-unit-tests - run: *run-android-instrumentation-tests - # Collect Results - - run: *collect-android-test-results - - store_test_results: - path: ~/react-native/reports/junit - + # Build Android RNTester - run: name: Build Android RNTester command: | ./gradlew RNTester:android:app:assembleRelease + # Collect Results + - run: *collect-android-test-results + - store_test_results: + path: ~/react-native/reports/junit + # Analyze pull request and raise any lint/flow issues. # Issues will be posted to the PR itself via GitHub bots. # This workflow should only fail if the bots fail to run.