From c0bbd18ceb6002ae63b6fb7658a5e200e809afd5 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Fri, 26 May 2023 11:25:00 -0700 Subject: [PATCH] Update setup.md ; delete deprecated maven repos --- mobile/android/build.gradle | 8 -------- mobile/setup.md | 14 +++++++++++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/mobile/android/build.gradle b/mobile/android/build.gradle index 322d3562..29b96346 100644 --- a/mobile/android/build.gradle +++ b/mobile/android/build.gradle @@ -20,14 +20,6 @@ buildscript { } } repositories { - maven { - // Replace AAR from original RN with AAR from react-native-v8 - url("$rootDir/../node_modules/react-native-v8/dist") - } - maven { - // prebuilt libv8android.so - url("$rootDir/../node_modules/v8-android/dist") - } google() mavenCentral() } diff --git a/mobile/setup.md b/mobile/setup.md index 9b0becd8..b9a0d982 100644 --- a/mobile/setup.md +++ b/mobile/setup.md @@ -44,7 +44,7 @@ reboot ## Create Emulator (or connect Android phone and install adb) -Use the GUI of Android studio to create a new virtual devide. As of 23/06/2022 we are using a Pixel 5 as template and System image R API level 30 Android 11.0 +Use the GUI of Android studio to create a new virtual device. As of 26/03/2023 we are using a Pixel 5 as template and System image Tiramisu API level 33 If using a phone, start the USB debugging mode. @@ -63,18 +63,26 @@ Make sure you have the `main.js` file created on `robosats/mobile/html/Web.bundl npm run dev ``` -Point a terminal to `/robosats/mobile/` +Launch your emulator if you are using one: + +``` +cd ~/Android/Sdk/tools && ./emulator -avd +``` + +Point a terminal to `/robosats/mobile/` to start metro ``` npm start ``` -on another temrinal also in `/robosats/mobile/` +And on another terminal, also in `/robosats/mobile/`, build and install the debug app ``` npx react-native run-android ``` +You can also use `react-native run-android --mode=release` to fully test the release builds of the app. + # OSX ## Install JDK