clarify instructions, adjust flutter app

This commit is contained in:
John Smith 2022-08-23 12:55:15 -04:00
parent 075bd99075
commit 8cce818fea
4 changed files with 15 additions and 44 deletions

View File

@ -80,51 +80,20 @@ cd veilid-flutter
Development of Veilid on MacOS is possible on both Intel and ARM hardware. Development of Veilid on MacOS is possible on both Intel and ARM hardware.
Development requires: Development requires:
* Android Studio
* Xcode, preferably latest version * Xcode, preferably latest version
* Homebrew [here](https://brew.sh) * Homebrew [here](https://brew.sh)
* Android SDK and NDK * Android SDK and NDK
* Java 8
* Rust * Rust
You may decide to use Android Studio [here](https://developer.android.com/studio) You will need to use Android Studio [here](https://developer.android.com/studio)
to maintain your Android dependencies. If so, use the dependency manager to maintain your Android dependencies. Use the SDK Manager in the IDE to install the following packages (use package details view to select version):
within your IDE. If you plan on using Flutter for Veilid development, the Android Studio * Android SDK Build Tools (30.0.3)
method is highly recommended as you may run into path problems with the 'flutter' * NDK (Side-by-side) (22.0.7026061)
command line without it. If you do so, you may skip to * Cmake (3.22.1)
[Run Veilid setup script](#Run Veilid setup script). * Android SDK Command Line Tools (latest) (7.0/latest)
* build-tools;30.0.3 #### Setup command line environment
* ndk;22.0.7026061
* cmake;3.22.1
#### Setup Java
```shell
brew install openjdk@8
```
and then symlink it as appropriate for your system:
Intel:
```shell
sudo ln -sfn /usr/local/opt/openjdk@8/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-8.jdk
```
ARM:
```shell
sudo ln -sfn /opt/homebrew/openjdk@8/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-8.jdk
```
#### Setup Dependencies using the CLI
Otherwise, you may choose to use Android `sdkmanager`. Use
the command line to install the requisite package versions: `brew install android-commandlinetools`
```shell
sdkmanager --install "build-tools;30.0.3"
sdkmanager --install "ndk;22.0.7026061"
sdkmanager --install "cmake;3.22.1"
```
Export environment variables and add the Android SDK platform-tools directory to Export environment variables and add the Android SDK platform-tools directory to
your path. your path.

View File

@ -21,7 +21,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS: SPEC CHECKSUMS:
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02 path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
veilid: 9141c973879377a5ce4f659b227ec01f0d687530 veilid: 804173397bd9d07c5a70ac6933cc2afbe54afc82
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c

View File

@ -43,5 +43,7 @@
</array> </array>
<key>UIViewControllerBasedStatusBarAppearance</key> <key>UIViewControllerBasedStatusBarAppearance</key>
<true/> <true/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
</dict> </dict>
</plist> </plist>

View File

@ -39,10 +39,10 @@ Future<VeilidConfig> getDefaultVeilidConfig() async {
network: VeilidConfigNetwork( network: VeilidConfigNetwork(
connectionInitialTimeoutMs: 2000, connectionInitialTimeoutMs: 2000,
connectionInactivityTimeoutMs: 60000, connectionInactivityTimeoutMs: 60000,
maxConnectionsPerIp4: 8, maxConnectionsPerIp4: 32,
maxConnectionsPerIp6Prefix: 8, maxConnectionsPerIp6Prefix: 32,
maxConnectionsPerIp6PrefixSize: 56, maxConnectionsPerIp6PrefixSize: 56,
maxConnectionFrequencyPerMin: 8, maxConnectionFrequencyPerMin: 128,
clientWhitelistTimeoutMs: 300000, clientWhitelistTimeoutMs: 300000,
reverseConnectionReceiptTimeMs: 5000, reverseConnectionReceiptTimeMs: 5000,
holePunchReceiptTimeMs: 5000, holePunchReceiptTimeMs: 5000,
@ -86,7 +86,7 @@ Future<VeilidConfig> getDefaultVeilidConfig() async {
natpmp: true, natpmp: true,
detectAddressChanges: true, detectAddressChanges: true,
enableLocalPeerScope: false, enableLocalPeerScope: false,
restrictedNatRetries: 3, restrictedNatRetries: 0,
tls: VeilidConfigTLS( tls: VeilidConfigTLS(
certificatePath: "", certificatePath: "",
privateKeyPath: "", privateKeyPath: "",