-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: regtest app variant #1458
Conversation
Just making sure that normal development workflow works as expected and seems to be the case 👍 |
android/app/src/regtest/res/mipmap-anydpi-v26/ic_launcher_round.xml
Outdated
Show resolved
Hide resolved
6ac1db5
to
d27dad1
Compare
Followed instructions and Android is working for me, when building for iOS I get:
@ovitrif Any ideas? Could have to do with the regtest assets |
@pwltr Can you try a Honestly I'm not sure which one of the commands have fixed it in my case, but I do recall having to resolve the same issue.
Xcode build issues feel very unstable to me, for example I couldn't get the app to build via Xcode for 2 days, then randomly it started to work 🤷🏻 |
Yeah that works! Should have known 🤷♂️. It's stuck on the splash screen now though:
I doubt this was the issue in your case but I find myself having to delete |
d27dad1
to
b46dc2c
Compare
Thank you @pwltr for testing and sharing this. I tried again in a fresh clone and I got the same issue when running the The thing is, this won't work anyways to set the default network to regtest, because it takes configuration from After a lot of trial & error, I found a fix that got it working for me. It's important mention that the release configuration works differently, and I can't test it given I don't have the certificates, so I personally can't tell for sure if it will work right. I'd really appreciate if @Jasonvdb could check if the setup works for iOS |
Note: if we can't get the current setup to work for iOS release builds, this might be an alternative, though it would take some time to set-up fastlane: |
1ffe300
to
0292da9
Compare
Updated with:
|
AFAIK we addressed all points, but I still see "1 change requested" although the comment is outdated and 'resolved'
Put on hold until we can build iOS releases using the self-hosted build machine. This way it will enable me to troubleshoot and verify it on iOS as well |
0292da9
to
97ded3f
Compare
@Jasonvdb I revisited this changeset and made the setup much simpler, also now I'm pretty sure the iOS regtest app should build correctly. I also updated the testing steps in PR description as well as build instructions for regtest app in Happy to get your feedback when you can check this again 🙏🏻 |
- build: fix color of regtest android app circle icon - build: replace regtest build icon to monochrome - chore: add alias task to restore rn cli and metro functionality - refactor: specify debuggable variants explicitly - refactor: remove regtest color overrides - chore: update BUILD.md - chore: add scripts for building regtest app - chore: add app icon for regtest flavour - chore: add app_name for regtest flavour - refactor: flag app_name non-translatable - chore: add regtest android build flavour
- simplify build setup scripts for regtest - use custom variable for app name - disable test build config in regtest scheme - build: remove unused bundling script - build: fix run of regtest app via xcode - build: remove duplicated scripts value - docs: fix typo in BUILD.md - docs: update readme for iOS regtest builds - build: add bundle:regtest:ios task - build: update buildable name to new default - build: set release cfg for regtest scheme - build: add bundle:ios node task - build: set name and icon for regtest release cfg - build: add Release.Regtest cfg - build: add separate bitkit.regtest scheme - build: set name and icon for regtest debug - build: set display name to PRODUCT_NAME - build: add debug regtest build to flipper config - build: rename regtest debug app - build: add Debug.Regtest config - chore: add ios regtest icon
97ded3f
to
154cb58
Compare
Closing this for now, given it's stale for a long time. |
Description
This PR adds support to build an app variant having
regtest
as default bitcoin network.Aside to the default network, the regtest variant has:
Bitkit Regtest
to.synonym.bitkit.wallet.regtest
to.synonym.bitkit.regtest
Considerations
.env.production
file with the corresponding configurations.To Test
1️⃣ Regtest Android
yarn regtest:set
yarn bundle:regtest
yarn regtest:unset
Bitkit Regtest
installed with the default Bitcoin NetworkRegtest
.2️⃣ Mainnet Android
yarn bundle
then install the appBitkit
installed with the default Bitcoin NetworkMainnet
.3️⃣ Regtest iOS
yarn regtest:set
bitkit.regtest
schemeBitkit Regtest
installed with the default Bitcoin NetworkRegtest
.yarn regtest:unset
2️⃣ Mainnet iOS
yarn clean
, reopen project and switch tobitkit
schemeBitkit
installed with the default Bitcoin NetworkMainnet
.➕ Other configurations
yarn start
can still run build and run the app on Android / iOSyarn android
&yarn ios
still worksLinked Issues/Tasks
https://app.asana.com/0/0/1205821036778041/f
Type of change
Tests
Screenshot / Video
N/a - build setup.
QA Notes
N/a - build setup.