- Good places to start
- Great explanation of scopes, how to create/utilize them, as well as the use of
SupervisorJob
for working it into whatever lifecycle you're implementing coroutines in, and the use of newer extension properties (such asviewModelScope
) that can be used in components that have them. - https://medium.com/androiddevelopers/easy-coroutines-in-android-viewmodelscope-25bffb605471
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Copy over block data to your Dojo #### | |
## If you wanted to MOVE over the data instead of copying it, see --> https://gist.github.com/05nelsonm/5c3607a3ad7d138d908e8a3d985a0df0 | |
## Written for use with Ubuntu Desktop 18.04 LTS & Dojo v1.0.0 ## | |
## On your machine running Dojo, open 2 terminals, we'll call them [terminal A] & [terminal Doc] | |
## In [terminal A] Check the size of your .bitcoin directory | |
$ df -hf ~/.bitcoin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All credit goes to Mark Engelberg (https://github.com/Engelberg) for figuring this out! | |
His original writeup can be found at: | |
https://gist.github.com/Engelberg/aac9da2f27b723683982d187bd4d5ea4 | |
Thought I'd just write more of a follow along tutorial for the less technical | |
## Written for use with Ubuntu Desktop 18.04 LTS & Dojo v1.0.0 ## | |
## Stop your Dojo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Getting LND working with Dojo | |
## Written for use with Ubuntu Desktop 18.04 LTS & Dojo v1.0.0 ## | |
## Start Dojo | |
$ cd /path/to/docker/my-dojo/ && sudo ./dojo.sh start | |
## Login to the bitcoind docker container as root | |
$ sudo docker exec -u root -it bitcoind /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Move over block data to your Dojo #### | |
## If you wanted to copy over the data instead of moving it, see --> https://gist.github.com/05nelsonm/96ad8da7724de3a66f44d6c2d70b361c | |
## Written for Ubuntu Desktop 18.04 LTS & Dojo v1.0.0 ## | |
## Start Dojo | |
$ cd /path/to/docker/my-dojo/ && sudo ./dojo.sh start | |
## Login to the bitcoind docker container as root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Move your bitcoind data from the Dojo's bitcoind docker container, to outside of the container on your host machine #### | |
## Written for use with Ubuntu Desktop 18.04 LTS & Dojo v1.0.0 ## | |
## Start Dojo | |
$ cd /path/to/docker/my-dojo/ && sudo ./dojo.sh start | |
## Login to the bitcoind docker container as root | |
$ sudo docker exec -u root -it bitcoind /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////// Library user's Application class //////// | |
class App: Application() { | |
override fun onCreate() { | |
initMyLibrary() | |
} | |
Class that uses the androidx.webkit
library to override device WebView
's proxy settings
such that application with Tor bundled into it can connect to hidden services for serving html.
/*
* Copyright 2021 Matthew Nelson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at