Skip to content

Commit

Permalink
1.0.0 Dion Release
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ultimaterex authored Apr 6, 2023
2 parents ac826ae + 320accd commit 4faeec5
Show file tree
Hide file tree
Showing 238 changed files with 6,089 additions and 6,392 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ jobs:
- uses: stelynx/[email protected]
with:
package: ribn
ignore: "*_state.dart, do_not_import_me.dart"
ignore: "*_state.dart, do_not_import_me.dart, js_workers/* , platform_web/*"

- name: Install dependencies and generated files
run: make gen

- name: Run tests
run: flutter test --coverage .
run: flutter test --platform chrome --coverage .


- uses: codecov/[email protected]
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nightly_build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
- name: Install flutter dependencies
run: make gen

- name: print nversion
run: echo $nversion

- name: Build android app
run: flutter build appbundle --release --build-number=${{github.run_number}} --dart-define=nightlyBuildVersion=$nversion

Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules/
dist/
mock/
pubspec.lock
.env

# Ignore secrets
key.properties
Expand All @@ -24,6 +25,11 @@ app.*.map.json
.history
.svn/

# Auto generated files
*.g.dart
*.freezed.dart
*.mocks.dart


# Android Studio will place build artifacts here
/android/app/debug
Expand Down Expand Up @@ -102,6 +108,7 @@ unlinked_spec.ds
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*
**/ios/Podfile.lock
**/ios/fastlane/report.xml

# macOS
**/Flutter/ephemeral/
Expand Down
27 changes: 24 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ clean: ## Cleans the environment
@rm -rf pubspec.lock
@flutter clean
@flutter pub get

fix_warnings: ## fix any warnings
@echo "╠ Attempting to fix warnings..."
@dart fix --dry-run
Expand All @@ -44,9 +45,9 @@ gen: ## Generates the assets

format: ## Formats the code
@echo "╠ Formatting the code"
@dart format lib .
@dart format lib . -l 120
@flutter pub run import_sorter:main
@dart format .
@dart format . -l 120

lint: ## Lints the code
@echo "╠ Verifying code..."
Expand All @@ -67,6 +68,11 @@ analyze:
ditto:
echo "hello world"

validate_packages:
@echo "╠ Validating packages..."
@flutter pub get
@flutter pub run dependency_validator

arm_mac_hard_clean:
flutter clean && \
flutter pub get && \
Expand All @@ -76,4 +82,19 @@ arm_mac_hard_clean:
rm Podfile.lock && \
sudo arch -x86_64 gem install ffi && \
arch -x86_64 pod install && \
cd ..
cd ..

file_test:
@reset
@flutter test test/middleware_test.dart

nuclear_clean:
@echo "╠ Nuking pubcache completely, this might take a while...."
@flutter clean
@flutter pub cache repair
@flutter pub get

test_coverage:
@flutter test --coverage
@genhtml coverage/lcov.info -o coverage/html
@open coverage/html/index.html
2 changes: 2 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ analyzer:
dead_code: error
strong-mode:
implicit-casts: true
plugins:
- custom_lint


linter:
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:label="Ribn"
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/ic_launcher">
<activity
android:exported="true"
Expand Down
Binary file added assets/icons/bullet_point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/improve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions ios/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-firebase_app_distribution (0.4.2)
ffi (1.15.5)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
Expand Down Expand Up @@ -280,11 +281,13 @@ GEM
zeitwerk (2.5.4)

PLATFORMS
arm64-darwin-22
universal-darwin-21

DEPENDENCIES
cocoapods
fastlane
fastlane-plugin-firebase_app_distribution
fastlane-plugin-flutter_version!

BUNDLED WITH
Expand Down
27 changes: 19 additions & 8 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -201,6 +201,7 @@
/* Begin PBXShellScriptBuildPhase section */
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
Expand All @@ -215,6 +216,7 @@
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
Expand Down Expand Up @@ -359,9 +361,11 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = DZ7Z4DLW5R;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = DZ7Z4DLW5R;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -372,6 +376,7 @@
PRODUCT_BUNDLE_IDENTIFIER = co.topl.ribn;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Firebase App Distribute Profile";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
Expand Down Expand Up @@ -495,9 +500,11 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = DZ7Z4DLW5R;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = DZ7Z4DLW5R;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -508,6 +515,7 @@
PRODUCT_BUNDLE_IDENTIFIER = co.topl.ribn;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Firebase App Distribute Profile";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
Expand All @@ -522,10 +530,12 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Distribution";
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = DZ7Z4DLW5R;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = DZ7Z4DLW5R;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -535,7 +545,8 @@
MARKETING_VERSION = 0.1.0;
PRODUCT_BUNDLE_IDENTIFIER = co.topl.ribn;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "match AppStore co.topl.ribn";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Firebase App Distribute Profile";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
Expand Down
6 changes: 4 additions & 2 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
</dict>
</plist>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>
12 changes: 12 additions & 0 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,16 @@ platform :ios do

delete_temp_keychain(keychain_name)
end

lane :distribute do

firebase_app_distribution(
app: "TODO_CHANGE",
groups: 'topl',
release_notes: "Speedy recent transactions",
ipa_path: '../build/ios/ipa/Ribn.ipa',
service_credentials_file: '../service_account_key.json',
)

end
end
5 changes: 5 additions & 0 deletions ios/fastlane/Pluginfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!

gem 'fastlane-plugin-firebase_app_distribution'
8 changes: 8 additions & 0 deletions ios/fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do



### ios distribute

```sh
[bundle exec] fastlane ios distribute
```



----

This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
Expand Down
14 changes: 0 additions & 14 deletions lib/actions/login_actions.dart

This file was deleted.

15 changes: 0 additions & 15 deletions lib/actions/misc_actions.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Dart imports:
import 'dart:async';

class PersistAppState {}

class FailedToPersistAppStateAction {}
Expand All @@ -16,18 +13,6 @@ class NavigateToRoute {
NavigateToRoute(this.route, {this.arguments});
}

class DownloadAsFileAction {
final String fileName;
final String text;
const DownloadAsFileAction(this.fileName, this.text);
}

class DeleteWalletAction {
final String password;
final Completer<bool> completer;
const DeleteWalletAction({required this.password, required this.completer});
}

class ResetAppStateAction {
const ResetAppStateAction();
}
Expand Down
35 changes: 0 additions & 35 deletions lib/actions/restore_wallet_actions.dart

This file was deleted.

7 changes: 0 additions & 7 deletions lib/actions/user_details_actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,3 @@ class UpdateAssetDetailsAction {
this.icon,
});
}

class UpdateBiometricsAction {
final bool isBiometricsEnabled;
UpdateBiometricsAction({
required this.isBiometricsEnabled,
});
}
Loading

0 comments on commit 4faeec5

Please sign in to comment.