Skip to content

Commit

Permalink
Merge branch 'staging' into chan-cards
Browse files Browse the repository at this point in the history
# Conflicts:
#	lib/models/isar/stack_theme.dart
#	lib/models/isar/stack_theme.g.dart
  • Loading branch information
ryleedavis committed Jul 21, 2023
2 parents 0ce86ce + 6b3876a commit 1adc5f2
Show file tree
Hide file tree
Showing 126 changed files with 2,113 additions and 1,625 deletions.
16 changes: 5 additions & 11 deletions .metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled.

version:
revision: f1875d570e39de09040c8f79aa13cc56baab8db1
revision: f92f44110e87bad5ff168335c36da6f6053036e6
channel: stable

project_type: app
Expand All @@ -13,17 +13,11 @@ project_type: app
migration:
platforms:
- platform: root
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
- platform: linux
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
create_revision: f92f44110e87bad5ff168335c36da6f6053036e6
base_revision: f92f44110e87bad5ff168335c36da6f6053036e6
- platform: macos
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
- platform: windows
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
create_revision: f92f44110e87bad5ff168335c36da6f6053036e6
base_revision: f92f44110e87bad5ff168335c36da6f6053036e6

# User provided section

Expand Down
Binary file added assets/icon/macos-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion crypto_plugins/flutter_libepiccash
Submodule flutter_libepiccash updated 35 files
+2 −0 .gitignore
+30 −0 example/.metadata
+5 −8 example/lib/init_transaction_view.dart
+45 −99 example/lib/main.dart
+0 −4 example/lib/password_view.dart
+8 −8 example/lib/transaction_view.dart
+2 −2 example/macos/Flutter/GeneratedPluginRegistrant.swift
+4 −1 example/macos/Podfile
+35 −0 example/macos/Podfile.lock
+229 −7 example/macos/Runner.xcodeproj/project.pbxproj
+15 −4 example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+3 −0 example/macos/Runner.xcworkspace/contents.xcworkspacedata
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
+3 −3 example/macos/Runner/Configs/AppInfo.xcconfig
+1 −1 example/macos/Runner/MainFlutterWindow.swift
+12 −0 example/macos/RunnerTests/RunnerTests.swift
+110 −109 example/pubspec.lock
+4 −5 example/pubspec.yaml
+2 −1 ios/Classes/FlutterLibepiccashPlugin.h
+2 −1 ios/Classes/SwiftFlutterLibepiccashPlugin.swift
+34 −27 lib/epic_cash.dart
+63 −0 macos/Classes/FlutterLibepiccashPlugin.h
+46 −0 macos/Classes/FlutterLibepiccashPlugin.swift
+4 −2 macos/flutter_libepiccash.podspec
+3 −3 pubspec.yaml
+178 −449 rust/Cargo.lock
+6 −9 rust/Cargo.toml
+93 −77 rust/src/lib.rs
+29 −0 scripts/macos/build_all.sh
2 changes: 1 addition & 1 deletion crypto_plugins/flutter_liblelantus
Submodule flutter_liblelantus updated 72 files
+8 −1 .gitignore
+0 −3 .idea/.gitignore
+0 −28 .idea/libraries/Dart_SDK.xml
+0 −9 .idea/libraries/Flutter_Plugins.xml
+0 −6 .idea/misc.xml
+0 −10 .idea/modules.xml
+0 −6 .idea/runConfigurations/example_lib_main_dart.xml
+0 −11 .idea/vcs.xml
+0 −115 .idea/workspace.xml
+11 −8 .metadata
+26 −0 example/ios/RunnerTests/RunnerTests.swift
+7 −0 example/macos/.gitignore
+2 −0 example/macos/Flutter/Flutter-Debug.xcconfig
+2 −0 example/macos/Flutter/Flutter-Release.xcconfig
+12 −0 example/macos/Flutter/GeneratedPluginRegistrant.swift
+43 −0 example/macos/Podfile
+811 −0 example/macos/Runner.xcodeproj/project.pbxproj
+8 −0 example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+98 −0 example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+10 −0 example/macos/Runner.xcworkspace/contents.xcworkspacedata
+8 −0 example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+9 −0 example/macos/Runner/AppDelegate.swift
+68 −0 example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
+ example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
+343 −0 example/macos/Runner/Base.lproj/MainMenu.xib
+14 −0 example/macos/Runner/Configs/AppInfo.xcconfig
+2 −0 example/macos/Runner/Configs/Debug.xcconfig
+2 −0 example/macos/Runner/Configs/Release.xcconfig
+13 −0 example/macos/Runner/Configs/Warnings.xcconfig
+12 −0 example/macos/Runner/DebugProfile.entitlements
+32 −0 example/macos/Runner/Info.plist
+15 −0 example/macos/Runner/MainFlutterWindow.swift
+8 −0 example/macos/Runner/Release.entitlements
+27 −0 example/macos/RunnerTests/RunnerTests.swift
+80 −50 example/pubspec.lock
+1 −1 example/pubspec.yaml
+0 −14 ios/Classes/SwiftFlutterLiblelantusPlugin.swift
+0 −1 lelantus.iml
+87 −87 lib/lelantus.dart
+19 −0 macos/Classes/FlutterLiblelantusPlugin.swift
+19 −0 macos/Classes/LelantusPlugin.swift
+23 −0 macos/flutter_liblelantus.podspec
+24 −0 macos/lelantus.podspec
+76 −47 pubspec.lock
+7 −4 pubspec.yaml
+33 −0 scripts/macos/CMakeLists/missingheader/endian.h
+674 −0 scripts/macos/CMakeLists/mobileliblelantus/LICENSE
+311 −0 scripts/macos/CMakeLists/mobileliblelantus/Utils.cpp
+108 −0 scripts/macos/CMakeLists/mobileliblelantus/Utils.h
+453 −0 scripts/macos/CMakeLists/mobileliblelantus/dart_interface.cpp
+91 −0 scripts/macos/CMakeLists/mobileliblelantus/template_CMakeLists.txt
+83 −0 scripts/macos/CMakeLists/secp256k1/template_CMakeLists.txt
+10 −0 scripts/macos/build_all.sh
+8 −0 scripts/macos/build_lib.sh
+4 −0 scripts/macos/build_openssl_arm64.sh
+116 −0 scripts/macos/build_openssl_common.sh
+4 −0 scripts/macos/build_openssl_universal.sh
+4 −0 scripts/macos/build_openssl_x86_64.sh
+13 −0 scripts/macos/config.sh
+7 −0 scripts/macos/copyCMakeLists.sh
+3 −0 scripts/macos/copymobile.sh
+11 −0 scripts/macos/gen_version.sh
+65 −0 scripts/macos/install_missing_headers.sh
+7 −0 scripts/macos/linkDistros.sh
+1 −1 test/flutter_liblelantus_method_channel_test.dart
+1 −1 test/flutter_liblelantus_test.dart
2 changes: 1 addition & 1 deletion crypto_plugins/flutter_libmonero
Submodule flutter_libmonero updated 116 files
34 changes: 23 additions & 11 deletions docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ Then in `File > Settings > Plugins`, install the **Flutter** and **Dart** plugin

Make a Pixel 4 (API 30) x86_64 emulator with 2GB of storage space for emulation

### Scripted setup

[`scripts/setup.sh`](./../scripts/setup.sh) is provided as a tool to set up installation for building: download the script and run it anywhere. This script should skip the entire [Manual setup](#manual-setup) section below and prepare you for [running](#Running).

### Manual setup
> If you used the `setup.sh` script, skip to [running](#Running)
Install basic dependencies
```
sudo apt-get install libssl-dev curl unzip automake build-essential file pkg-config git python libtool libtinfo5 cmake libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev llvm python3-distutils
Expand Down Expand Up @@ -98,20 +91,21 @@ cd ..
```
or manually by creating the files referenced in that script with the specified content.

### Building plugins for Android
### Build plugins
#### Building plugins for Android
> Warning: This will take a long time, please be patient
```
cd scripts/android
./build_all.sh
```

### Building plugins for Linux
#### Building plugins for Linux
```
cd scripts/linux
./build_all.sh
```

### Building plugins for Windows
#### Building plugins for Windows
```
cd scripts/windows
./deps.sh
Expand Down Expand Up @@ -140,10 +134,28 @@ flutter run linux
Visual Studio is required for Windows development with the Flutter SDK. Download it at https://visualstudio.microsoft.com/downloads/ and install the "Desktop development with C++" workload, including all of its default components.

### Building libraries in WSL2
Set up Ubuntu 20.04 in WSL2. Follow the entire Linux host section to get set up and build windows `dll` libraries. Copy the resulting `dll`s to their respective positions on the Windows host:
Set up Ubuntu 20.04 in WSL2. Follow the entire Linux host section in the WSL2 Ubuntu 20.04 host to get set up to build. You will also need to install Rust and MXE dependencies on the WSL2 Ubuntu 20.04 host:
- [Install Rust](https://rustup.rs/)
```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
- Install MXE by running `stack_wallet/scripts/windows/deps.sh`
```sh
./stack_wallet/scripts/windows/deps.sh
```

The WSL2 host may optionally be navigated to the `stack_wallet` repository on the Windows host in order to build the plugins in-place and skip the next section in which you copy the `dll`s from WSL2 to Windows. Then build windows `dll` libraries by running the following script on the WSL2 Ubuntu 20.04 host:

- `stack_wallet/scripts/windows/build_all.sh`

Copy the resulting `dll`s to their respective positions on the Windows host:

- `stack_wallet/crypto_plugins/flutter_libepiccash/scripts/windows/build/libepic_cash_wallet.dll`
- `stack_wallet/crypto_plugins/flutter_liblelantus/scripts/windows/build/libmobileliblelantus.dll`
<!--
- `stack_wallet/crypto_plugins/flutter_libmonero/scripts/windows/build/libcw_monero.dll`
- `stack_wallet/crypto_plugins/flutter_libmonero/scripts/windows/build/libcw_wownero.dll`
-->
<!-- TODO: script the copying or installation of libraries from WSL2 to the parent Windows host -->

### Install Flutter on Windows host
Expand Down
34 changes: 14 additions & 20 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
PODS:
- "app_settings (3.0.0+1)":
- Flutter
- barcode_scan2 (0.0.1):
- Flutter
- MTBBarcodeScanner
Expand Down Expand Up @@ -112,7 +110,7 @@ PODS:
- Flutter
- flutter_native_splash (0.0.1):
- Flutter
- flutter_secure_storage (3.3.1):
- flutter_secure_storage (6.0.0):
- Flutter
- integration_test (0.0.1):
- Flutter
Expand Down Expand Up @@ -149,7 +147,6 @@ PODS:
- Flutter

DEPENDENCIES:
- app_settings (from `.symlinks/plugins/app_settings/ios`)
- barcode_scan2 (from `.symlinks/plugins/barcode_scan2/ios`)
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
- cw_monero (from `.symlinks/plugins/cw_monero/ios`)
Expand All @@ -169,10 +166,10 @@ DEPENDENCIES:
- lelantus (from `.symlinks/plugins/lelantus/ios`)
- local_auth (from `.symlinks/plugins/local_auth/ios`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
- share_plus (from `.symlinks/plugins/share_plus/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- stack_wallet_backup (from `.symlinks/plugins/stack_wallet_backup/ios`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
- wakelock (from `.symlinks/plugins/wakelock/ios`)
Expand All @@ -188,8 +185,6 @@ SPEC REPOS:
- SwiftyGif

EXTERNAL SOURCES:
app_settings:
:path: ".symlinks/plugins/app_settings/ios"
barcode_scan2:
:path: ".symlinks/plugins/barcode_scan2/ios"
connectivity_plus:
Expand Down Expand Up @@ -229,13 +224,13 @@ EXTERNAL SOURCES:
package_info_plus:
:path: ".symlinks/plugins/package_info_plus/ios"
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/ios"
:path: ".symlinks/plugins/path_provider_foundation/darwin"
permission_handler_apple:
:path: ".symlinks/plugins/permission_handler_apple/ios"
share_plus:
:path: ".symlinks/plugins/share_plus/ios"
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/ios"
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
stack_wallet_backup:
:path: ".symlinks/plugins/stack_wallet_backup/ios"
url_launcher_ios:
Expand All @@ -244,13 +239,12 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/wakelock/ios"

SPEC CHECKSUMS:
app_settings: d103828c9f5d515c4df9ee754dabd443f7cedcf3
barcode_scan2: 0af2bb63c81b4565aab6cd78278e4c0fa136dbb0
connectivity_plus: 413a8857dd5d9f1c399a39130850d02fe0feaf7e
connectivity_plus: 07c49e96d7fc92bc9920617b83238c4d178b446a
cw_monero: 9816991daff0e3ad0a8be140e31933b5526babd4
cw_shared_external: 2972d872b8917603478117c9957dfca611845a92
cw_wownero: ac53899fa5c6ff46b3fb490aa3b7ca36301fa832
device_info_plus: e5c5da33f982a436e103237c0c85f9031142abed
device_info_plus: 7545d84d8d1b896cb16a4ff98c19f07ec4b298ea
devicelocale: b22617f40038496deffba44747101255cee005b0
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
Expand All @@ -260,23 +254,23 @@ SPEC CHECKSUMS:
flutter_libmonero: da68a616b73dd0374a8419c684fa6b6df2c44ffe
flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743
flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef
flutter_secure_storage: 7953c38a04c3fdbb00571bcd87d8e3b5ceb9daec
integration_test: a1e7d09bd98eca2fc37aefd79d4f41ad37bdbbe5
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
integration_test: 13825b8a9334a850581300559b8839134b124670
isar_flutter_libs: b69f437aeab9c521821c3f376198c4371fa21073
lelantus: 417f0221260013dfc052cae9cf4b741b6479edba
local_auth: 1740f55d7af0a2e2a8684ce225fe79d8931e808c
MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb
package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
path_provider_foundation: 37748e03f12783f9de2cb2c4eadfaa25fe6d4852
package_info_plus: fd030dabf36271f146f1f3beacd48f564b0f17f7
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
SDWebImage: 72f86271a6f3139cc7e4a89220946489d4b9a866
share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68
shared_preferences_foundation: 297b3ebca31b34ec92be11acd7fb0ba932c822ca
share_plus: 599aa54e4ea31d4b4c0e9c911bcc26c55e791028
shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c
stack_wallet_backup: 5b8563aba5d8ffbf2ce1944331ff7294a0ec7c03
SwiftProtobuf: 6ef3f0e422ef90d6605ca20b21a94f6c1324d6b3
SwiftyGif: 6c3eafd0ce693cad58bb63d2b2fb9bacb8552780
url_launcher_ios: fb12c43172927bb5cf75aeebd073f883801f1993
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f

PODFILE CHECKSUM: 57c8aed26fba39d3ec9424816221f294a07c58eb
Expand Down
18 changes: 13 additions & 5 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@
files = (
);
inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
Expand Down Expand Up @@ -301,7 +302,6 @@
"${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework",
"${BUILT_PRODUCTS_DIR}/SwiftProtobuf/SwiftProtobuf.framework",
"${BUILT_PRODUCTS_DIR}/SwiftyGif/SwiftyGif.framework",
"${BUILT_PRODUCTS_DIR}/app_settings/app_settings.framework",
"${BUILT_PRODUCTS_DIR}/barcode_scan2/barcode_scan2.framework",
"${BUILT_PRODUCTS_DIR}/connectivity_plus/connectivity_plus.framework",
"${BUILT_PRODUCTS_DIR}/cw_monero/cw_monero.framework",
Expand Down Expand Up @@ -335,7 +335,6 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftProtobuf.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftyGif.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/app_settings.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/barcode_scan2.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/connectivity_plus.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/cw_monero.framework",
Expand Down Expand Up @@ -505,7 +504,10 @@
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
Expand Down Expand Up @@ -692,7 +694,10 @@
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
Expand Down Expand Up @@ -771,7 +776,10 @@
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
Expand Down
Loading

0 comments on commit 1adc5f2

Please sign in to comment.