From 4b99caa1a9b96390783037c905167352b77d6523 Mon Sep 17 00:00:00 2001 From: Guus der Kinderen Date: Wed, 23 Jan 2019 16:21:50 +0100 Subject: [PATCH] Android SDK build instructions: add 'clean' I'm ashamed to admit that I spent several _days_ chasing a bug that was already fixed. :( This obvious instruction would have been a time-saver. --- android/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/android/README.md b/android/README.md index 8ea9b1c70..2ea33509d 100644 --- a/android/README.md +++ b/android/README.md @@ -87,6 +87,10 @@ Change this value (which represents the Maven repository location used internall Make sure to do this in both files! Each file should require one line to be changed. +To prevent artifacts from previous builds affecting you're outcome, it's good to start with cleaning your work directories: + + $ ./gradlew clean + To create the release assembly for any _specific_ third-party React Native module that you need, you can execture the following commands, replace the module name in the examples below. $ ./gradlew :react-native-webrtc:assembleRelease @@ -99,7 +103,7 @@ You build and publish the SDK itself in the same way: Alternatively, you can assemble and publish _all_ subprojects, which include the react-native modules, but also the SDK itself, with a single command: - $ ./gradlew assembleRelease publish + $ ./gradlew clean assembleRelease publish You're now ready to use the artifacts. In _your_ project, add the Maven repository that you used above (`/tmp/repo`) into your top-level `build.gradle` file: