Skip to content

Commit

Permalink
🚀[Release v3.12.1-2400214] Merge into Develop (#232)
Browse files Browse the repository at this point in the history
* Develop (#111)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

Co-authored-by: Mohamed Barry <[email protected]>

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <[email protected]>

* Release/v2.8.0 (#131)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* ## Release Notes: v2.8.0  (version bump)

This release is the first release in months that needed an update based on the changes in the enviroment. In general, the Litewallet code base is bloated with 1000's of lines of unused code and this makes debugging and adding new features very difficult. In addition, the requirements of iOS 14 and the plan to move from UIKit to a SwiftUI+Combine architecture means subsequent PRs will reflect a more streamlined codebase.

## Tech Debt
- Also have watch xcscheme added per upgrade
- Added Issue templates (#122)
	- Bug Report
	- Feature Request
- Updated key for RemoteRunnable in xcscheme
- remove unused fonts
- run code on main thread
- update cocoapods firebase
- update addresses + event

## Improvements
* compute QR code only once
	- Soft launch for Import QR Code

## Bugfixes
* fix crash: window required

## Temporary Workarounds
The proxy server the supports buying LTC is being refactored and so no mobile clients can use the Simplex service
	* Disabled Simplex / Added temp message
		- Was causing crashes when return messages were happening.
		- Will update in the next cycle with an updated UI
		- Added a Analytics:  DID TAP BUY TAB marker
		- Added Coming Soon label to the tableview background view for a temporary sign
		- Added all translation for the coming soon message

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Removed schemes (#125)

Goal: Reduce the codebase in prep for a major refactor. This removed the debug scheme and watch scheme.

* [Tech Debt] Remove Apple Watch code (#124)

* Remove  Apple Watch code

- The Apple Code is very old and has never been updated.
- There is a longer plan to remove superflous code.
- If others ask to re-add it we will look again with the later versions

* Removed NotificationServiceExtension

- This is cruft that has never been called
- Added in 2016
- This is not supported currently

* Change email addresses

Also added feedback and support emails.

* Added HTML for support email

Fixed bitcoin references

* Removed empty UITests

* bump build number

* updated html to be for iPhone only

* Fix podfile and build version

* Revert "[Bugfix] Cleared Simplex  (#126)"

This reverts commit 154eb4fbbe71b4ff1a2323dd316bf7b6783c3b0a.

* bump build number

Co-authored-by: Mohamed Barry <[email protected]>

* [Release v2.8.2] Merge into Master  (#153)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* Develop - Release/v2.8.0 (#132)

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <[email protected]>

* ## Release Notes: v2.8.0  (version bump)

This release is the first release in months that needed an update based on the changes in the enviroment. In general, the Litewallet code base is bloated with 1000's of lines of unused code and this makes debugging and adding new features very difficult. In addition, the requirements of iOS 14 and the plan to move from UIKit to a SwiftUI+Combine architecture means subsequent PRs will reflect a more streamlined codebase.

## Tech Debt
- Also have watch xcscheme added per upgrade
- Added Issue templates (#122)
	- Bug Report
	- Feature Request
- Updated key for RemoteRunnable in xcscheme
- remove unused fonts
- run code on main thread
- update cocoapods firebase
- update addresses + event

## Improvements
* compute QR code only once
	- Soft launch for Import QR Code

## Bugfixes
* fix crash: window required

## Temporary Workarounds
The proxy server the supports buying LTC is being refactored and so no mobile clients can use the Simplex service
	* Disabled Simplex / Added temp message
		- Was causing crashes when return messages were happening.
		- Will update in the next cycle with an updated UI
		- Added a Analytics:  DID TAP BUY TAB marker
		- Added Coming Soon label to the tableview background view for a temporary sign
		- Added all translation for the coming soon message

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Removed schemes (#125)

Goal: Reduce the codebase in prep for a major refactor. This removed the debug scheme and watch scheme.

* [Tech Debt] Remove Apple Watch code (#124)

* Remove  Apple Watch code

- The Apple Code is very old and has never been updated.
- There is a longer plan to remove superflous code.
- If others ask to re-add it we will look again with the later versions

* Removed NotificationServiceExtension

- This is cruft that has never been called
- Added in 2016
- This is not supported currently

* Change email addresses

Also added feedback and support emails.

* Added HTML for support email

Fixed bitcoin references

* Removed empty UITests

* bump build number

* updated html to be for iPhone only

* Fix podfile and build version

* Revert "[Bugfix] Cleared Simplex  (#126)"

This reverts commit 154eb4fbbe71b4ff1a2323dd316bf7b6783c3b0a.

* bump build number

Co-authored-by: Mohamed Barry <[email protected]>

* Fix crash in Amount formatter (#140)

* 🦺 [Tech Debt] Update Podfile and Refactor build process (#144)

* Update Podfile

- Set mimum value of iOS 13
- Removed unused SwiftyJSON
- Removed unused Watch Scheme
- re-added xcscheme
- removed non-used code
- added status badge in README

* removed the podfile target force

* added SPM .build folder exclusion in gitignore

* [Bugfix] Renamed enum from State (#147)

* Renamed enum from State

 ## Problem
 The original design of Breadwallet (Loafwallet) used a SimpleRedux architecture which maanged the State in an unsual (yet effective) way.

Within that design ‘state’ was managed by an enum named “State”

This was fine until SwiftUI and Combine where there is now a name collision since @State is referring to the SwfitUI attribute.

 ## Approach
While redesiging the app would be ideal, the reality is this needs to be fixed as soon as possible because Litewallet is now using SwiftUI.

 Steps to fix the problem:
 - [ ] Renamed variable from `State` to `ReduxState`

* Toggled iOS version 13

* Revert "[Bugfix] Renamed enum from State (#147)" (#150)

This reverts commit ea8293b5c7f206706942416a1d7d9b139926fa97.

* [Warmfix] Issue:146 Remove direct donation: support litecoin foundation (#151)

* Prepared the code for differnt Cell / Remove Donation Code

- Updated localized strings file(s)
- Removed old Donate files
- Updated SendVIewController

* Resolved the previous conflicts

- Added in SupportLitecoinFoundation SwiftUI view and model
- Working in the basic functionality of the new Support Litecoin Foundation view

* Worked in the vars of SupportLitecoinFoundation  view

* Removed Donation code

* Set a URL for the support LTC address

* Add new WebKit view and supporting code

* Adjusted height constants in the nightmare scenario of the SendCell

-There is a nasty sandwich of ViewControllers where SwiftUI should be used.
- This needs to be simplified

# Conflicts:
#	loafwallet/src/ViewControllers/RootModals/SendViewController.swift

* Added new MVVM Views and ViewModels

- Adding more SwiftUI code

* Refactored and stubbed out tests

* version bump

* Renamed enum from State  to ReduxState

## Problem
 The original design of Breadwallet (Loafwallet) used a SimpleRedux architecture which maanged the State in an unsual (yet effective) way.

Within that design ‘state’ was managed by an enum named “State”

This was fine until SwiftUI and Combine where there is now a name collision since @State is referring to the SwfitUI attribute.

 ## Approach
While redesiging the app would be ideal, the reality is this needs to be fixed as soon as possible because Litewallet is now using SwiftUI.

 Steps to fix the problem:
 - [ ] Renamed variable from `State` to `ReduxState` using Xcode Refactor: Rename

* Cleaned up Localized strings file

* Added review fixes

- Added CGFloat multiplier in padding
- Fixed formatting
- Added tracking Support taps

* [Release v2.8.2] Merge into Develop

## Release Notes: v2.8.2 (1)
This release is due to a requirement to App Store to remove references to donations.  In it’s replacement, a reference to the Litecoin Foundation support page where the user can elect to send LTC if they so choose.
- [Warmfix] Issue:146 Remove direct donation: support litecoin foundati…

##  Other Improvements
- Fix crash in Amount formatter (#140)
- [Bugfix] Renamed enum from State (#147) (#150)

## Bugfixes
 - Renaming the enum caused a conflict with SwiftUI @State

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Hotfix Increment

-Updated to allow upload to App Store

* build number change

* fixed conflicts

Co-authored-by: Mohamed Barry <[email protected]>
Co-authored-by: Nikolay Spassov <[email protected]>

* [Release v2.8.3] Merge into Master (#167)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* Develop - Release/v2.8.0 (#132)

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <[email protected]>

* ## Release Notes: v2.8.0  (version bump)

This release is the first release in months that needed an update based on the changes in the enviroment. In general, the Litewallet code base is bloated with 1000's of lines of unused code and this makes debugging and adding new features very difficult. In addition, the requirements of iOS 14 and the plan to move from UIKit to a SwiftUI+Combine architecture means subsequent PRs will reflect a more streamlined codebase.

## Tech Debt
- Also have watch xcscheme added per upgrade
- Added Issue templates (#122)
	- Bug Report
	- Feature Request
- Updated key for RemoteRunnable in xcscheme
- remove unused fonts
- run code on main thread
- update cocoapods firebase
- update addresses + event

## Improvements
* compute QR code only once
	- Soft launch for Import QR Code

## Bugfixes
* fix crash: window required

## Temporary Workarounds
The proxy server the supports buying LTC is being refactored and so no mobile clients can use the Simplex service
	* Disabled Simplex / Added temp message
		- Was causing crashes when return messages were happening.
		- Will update in the next cycle with an updated UI
		- Added a Analytics:  DID TAP BUY TAB marker
		- Added Coming Soon label to the tableview background view for a temporary sign
		- Added all translation for the coming soon message

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Removed schemes (#125)

Goal: Reduce the codebase in prep for a major refactor. This removed the debug scheme and watch scheme.

* [Tech Debt] Remove Apple Watch code (#124)

* Remove  Apple Watch code

- The Apple Code is very old and has never been updated.
- There is a longer plan to remove superflous code.
- If others ask to re-add it we will look again with the later versions

* Removed NotificationServiceExtension

- This is cruft that has never been called
- Added in 2016
- This is not supported currently

* Change email addresses

Also added feedback and support emails.

* Added HTML for support email

Fixed bitcoin references

* Removed empty UITests

* bump build number

* updated html to be for iPhone only

* Fix podfile and build version

* Revert "[Bugfix] Cleared Simplex  (#126)"

This reverts commit 154eb4fbbe71b4ff1a2323dd316bf7b6783c3b0a.

* bump build number

Co-authored-by: Mohamed Barry <[email protected]>

* Fix crash in Amount formatter (#140)

* 🦺 [Tech Debt] Update Podfile and Refactor build process (#144)

* Update Podfile

- Set mimum value of iOS 13
- Removed unused SwiftyJSON
- Removed unused Watch Scheme
- re-added xcscheme
- removed non-used code
- added status badge in README

* removed the podfile target force

* added SPM .build folder exclusion in gitignore

* [Bugfix] Renamed enum from State (#147)

* Renamed enum from State

 ## Problem
 The original design of Breadwallet (Loafwallet) used a SimpleRedux architecture which maanged the State in an unsual (yet effective) way.

Within that design ‘state’ was managed by an enum named “State”

This was fine until SwiftUI and Combine where there is now a name collision since @State is referring to the SwfitUI attribute.

 ## Approach
While redesiging the app would be ideal, the reality is this needs to be fixed as soon as possible because Litewallet is now using SwiftUI.

 Steps to fix the problem:
 - [ ] Renamed variable from `State` to `ReduxState`

* Toggled iOS version 13

* Revert "[Bugfix] Renamed enum from State (#147)" (#150)

This reverts commit ea8293b5c7f206706942416a1d7d9b139926fa97.

* [Warmfix] Issue:146 Remove direct donation: support litecoin foundation (#151)

* Prepared the code for differnt Cell / Remove Donation Code

- Updated localized strings file(s)
- Removed old Donate files
- Updated SendVIewController

* Resolved the previous conflicts

- Added in SupportLitecoinFoundation SwiftUI view and model
- Working in the basic functionality of the new Support Litecoin Foundation view

* Worked in the vars of SupportLitecoinFoundation  view

* Removed Donation code

* Set a URL for the support LTC address

* Add new WebKit view and supporting code

* Adjusted height constants in the nightmare scenario of the SendCell

-There is a nasty sandwich of ViewControllers where SwiftUI should be used.
- This needs to be simplified

# Conflicts:
#	loafwallet/src/ViewControllers/RootModals/SendViewController.swift

* Added new MVVM Views and ViewModels

- Adding more SwiftUI code

* Refactored and stubbed out tests

* version bump

* Renamed enum from State  to ReduxState

## Problem
 The original design of Breadwallet (Loafwallet) used a SimpleRedux architecture which maanged the State in an unsual (yet effective) way.

Within that design ‘state’ was managed by an enum named “State”

This was fine until SwiftUI and Combine where there is now a name collision since @State is referring to the SwfitUI attribute.

 ## Approach
While redesiging the app would be ideal, the reality is this needs to be fixed as soon as possible because Litewallet is now using SwiftUI.

 Steps to fix the problem:
 - [ ] Renamed variable from `State` to `ReduxState` using Xcode Refactor: Rename

* Cleaned up Localized strings file

* Added review fixes

- Added CGFloat multiplier in padding
- Fixed formatting
- Added tracking Support taps

* [Release] Merge v2.8.2 into Develop (#158)

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <[email protected]>

* Release/v2.8.0 (#131)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* ## Release Notes: v2.8.0  (version bump)

This release is the first release in months that needed an update based on the changes in the enviroment. In general, the Litewallet code base is bloated with 1000's of lines of unused code and this makes debugging and adding new features very difficult. In addition, the requirements of iOS 14 and the plan to move from UIKit to a SwiftUI+Combine architecture means subsequent PRs will reflect a more streamlined codebase.

## Tech Debt
- Also have watch xcscheme added per upgrade
- Added Issue templates (#122)
	- Bug Report
	- Feature Request
- Updated key for RemoteRunnable in xcscheme
- remove unused fonts
- run code on main thread
- update cocoapods firebase
- update addresses + event

## Improvements
* compute QR code only once
	- Soft launch for Import QR Code

## Bugfixes
* fix crash: window required

## Temporary Workarounds
The proxy server the supports buying LTC is being refactored and so no mobile clients can use the Simplex service
	* Disabled Simplex / Added temp message
		- Was causing crashes when return messages were happening.
		- Will update in the next cycle with an updated UI
		- Added a Analytics:  DID TAP BUY TAB marker
		- Added Coming Soon label to the tableview background view for a temporary sign
		- Added all translation for the coming soon message

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Removed schemes (#125)

Goal: Reduce the codebase in prep for a major refactor. This removed the debug scheme and watch scheme.

* [Tech Debt] Remove Apple Watch code (#124)

* Remove  Apple Watch code

- The Apple Code is very old and has never been updated.
- There is a longer plan to remove superflous code.
- If others ask to re-add it we will look again with the later versions

* Removed NotificationServiceExtension

- This is cruft that has never been called
- Added in 2016
- This is not supported currently

* Change email addresses

Also added feedback and support emails.

* Added HTML for support email

Fixed bitcoin references

* Removed empty UITests

* bump build number

* updated html to be for iPhone only

* Fix podfile and build version

* Revert "[Bugfix] Cleared Simplex  (#126)"

This reverts commit 154eb4fbbe71b4ff1a2323dd316bf7b6783c3b0a.

* bump build number

Co-authored-by: Mohamed Barry <[email protected]>

* [Release v2.8.2] Merge into Develop

## Release Notes: v2.8.2 (1)
This release is due to a requirement to App Store to remove references to donations.  In it’s replacement, a reference to the Litecoin Foundation support page where the user can elect to send LTC if they so choose.
- [Warmfix] Issue:146 Remove direct donation: support litecoin foundati…

##  Other Improvements
- Fix crash in Amount formatter (#140)
- [Bugfix] Renamed enum from State (#147) (#150)

## Bugfixes
 - Renaming the enum caused a conflict with SwiftUI @State

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Hotfix Increment

-Updated to allow upload to App Store

* build number change

* fixed conflicts

Co-authored-by: Mohamed Barry <[email protected]>

* [Bugfix] Replace the LF Support View (#159)

* Moved the LF Cell from Send.

- BartyCrouch linted the stigns files.

* Updated the LF Support location

- Reset the localiaztion language to ‘Customer support’
- Add the dismissal actions

* [Bugfix] Fix buy tab: Simplex urls (#157)

* Updated the url to new servers

* Linted the Localized strings

* Setup url constants

* updated pk file status

* Updated per PR review comments

* fixed naming of the url variable

* version bump

Co-authored-by: Mohamed Barry <[email protected]>
Co-authored-by: Nikolay Spassov <[email protected]>

* [Merge v2.9.0] into Master (#170)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* Develop - Release/v2.8.0 (#132)

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <[email protected]>

* ## Release Notes: v2.8.0  (version bump)

This release is the first release in months that needed an update based on the changes in the enviroment. In general, the Litewallet code base is bloated with 1000's of lines of unused code and this makes debugging and adding new features very difficult. In addition, the requirements of iOS 14 and the plan to move from UIKit to a SwiftUI+Combine architecture means subsequent PRs will reflect a more streamlined codebase.

## Tech Debt
- Also have watch xcscheme added per upgrade
- Added Issue templates (#122)
	- Bug Report
	- Feature Request
- Updated key for RemoteRunnable in xcscheme
- remove unused fonts
- run code on main thread
- update cocoapods firebase
- update addresses + event

## Improvements
* compute QR code only once
	- Soft launch for Import QR Code

## Bugfixes
* fix crash: window required

## Temporary Workarounds
The proxy server the supports buying LTC is being refactored and so no mobile clients can use the Simplex service
	* Disabled Simplex / Added temp message
		- Was causing crashes when return messages were happening.
		- Will update in the next cycle with an updated UI
		- Added a Analytics:  DID TAP BUY TAB marker
		- Added Coming Soon label to the tableview background view for a temporary sign
		- Added all translation for the coming soon message

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Removed schemes (#125)

Goal: Reduce the codebase in prep for a major refactor. This removed the debug scheme and watch scheme.

* [Tech Debt] Remove Apple Watch code (#124)

* Remove  Apple Watch code

- The Apple Code is very old and has never been updated.
- There is a longer plan to remove superflous code.
- If others ask to re-add it we will look again with the later versions

* Removed NotificationServiceExtension

- This is cruft that has never been called
- Added in 2016
- This is not supported currently

* Change email addresses

Also added feedback and support emails.

* Added HTML for support email

Fixed bitcoin references

* Removed empty UITests

* bump build number

* updated html to be for iPhone only

* Fix podfile and build version

* Revert "[Bugfix] Cleared Simplex  (#126)"

This reverts commit 154eb4fbbe71b4ff1a2323dd316bf7b6783c3b0a.

* bump build number

Co-authored-by: Mohamed Barry <[email protected]>

* Fix crash in Amount formatter (#140)

* 🦺 [Tech Debt] Update Podfile and Refactor build process (#144)

* Update Podfile

- Set mimum value of iOS 13
- Removed unused SwiftyJSON
- Removed unused Watch Scheme
- re-added xcscheme
- removed non-used code
- added status badge in README

* removed the podfile target force

* added SPM .build folder exclusion in gitignore

* [Bugfix] Renamed enum from State (#147)

* Renamed enum from State

 ## Problem
 The original design of Breadwallet (Loafwallet) used a SimpleRedux architecture which maanged the State in an unsual (yet effective) way.

Within that design ‘state’ was managed by an enum named “State”

This was fine until SwiftUI and Combine where there is now a name collision since @State is referring to the SwfitUI attribute.

 ## Approach
While redesiging the app would be ideal, the reality is this needs to be fixed as soon as possible because Litewallet is now using SwiftUI.

 Steps to fix the problem:
 - [ ] Renamed variable from `State` to `ReduxState`

* Toggled iOS version 13

* Revert "[Bugfix] Renamed enum from State (#147)" (#150)

This reverts commit ea8293b5c7f206706942416a1d7d9b139926fa97.

* [Warmfix] Issue:146 Remove direct donation: support litecoin foundation (#151)

* Prepared the code for differnt Cell / Remove Donation Code

- Updated localized strings file(s)
- Removed old Donate files
- Updated SendVIewController

* Resolved the previous conflicts

- Added in SupportLitecoinFoundation SwiftUI view and model
- Working in the basic functionality of the new Support Litecoin Foundation view

* Worked in the vars of SupportLitecoinFoundation  view

* Removed Donation code

* Set a URL for the support LTC address

* Add new WebKit view and supporting code

* Adjusted height constants in the nightmare scenario of the SendCell

-There is a nasty sandwich of ViewControllers where SwiftUI should be used.
- This needs to be simplified

# Conflicts:
#	loafwallet/src/ViewControllers/RootModals/SendViewController.swift

* Added new MVVM Views and ViewModels

- Adding more SwiftUI code

* Refactored and stubbed out tests

* version bump

* Renamed enum from State  to ReduxState

## Problem
 The original design of Breadwallet (Loafwallet) used a SimpleRedux architecture which maanged the State in an unsual (yet effective) way.

Within that design ‘state’ was managed by an enum named “State”

This was fine until SwiftUI and Combine where there is now a name collision since @State is referring to the SwfitUI attribute.

 ## Approach
While redesiging the app would be ideal, the reality is this needs to be fixed as soon as possible because Litewallet is now using SwiftUI.

 Steps to fix the problem:
 - [ ] Renamed variable from `State` to `ReduxState` using Xcode Refactor: Rename

* Cleaned up Localized strings file

* Added review fixes

- Added CGFloat multiplier in padding
- Fixed formatting
- Added tracking Support taps

* [Release] Merge v2.8.2 into Develop (#158)

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <[email protected]>

* Release/v2.8.0 (#131)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* ## Release Notes: v2.8.0  (version bump)

This release is the first release in months that needed an update based on the changes in the enviroment. In general, the Litewallet code base is bloated with 1000's of lines of unused code and this makes debugging and adding new features very difficult. In addition, the requirements of iOS 14 and the plan to move from UIKit to a SwiftUI+Combine architecture means subsequent PRs will reflect a more streamlined codebase.

## Tech Debt
- Also have watch xcscheme added per upgrade
- Added Issue templates (#122)
	- Bug Report
	- Feature Request
- Updated key for RemoteRunnable in xcscheme
- remove unused fonts
- run code on main thread
- update cocoapods firebase
- update addresses + event

## Improvements
* compute QR code only once
	- Soft launch for Import QR Code

## Bugfixes
* fix crash: window required

## Temporary Workarounds
The proxy server the supports buying LTC is being refactored and so no mobile clients can use the Simplex service
	* Disabled Simplex / Added temp message
		- Was causing crashes when return messages were happening.
		- Will update in the next cycle with an updated UI
		- Added a Analytics:  DID TAP BUY TAB marker
		- Added Coming Soon label to the tableview background view for a temporary sign
		- Added all translation for the coming soon message

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Removed schemes (#125)

Goal: Reduce the codebase in prep for a major refactor. This removed the debug scheme and watch scheme.

* [Tech Debt] Remove Apple Watch code (#124)

* Remove  Apple Watch code

- The Apple Code is very old and has never been updated.
- There is a longer plan to remove superflous code.
- If others ask to re-add it we will look again with the later versions

* Removed NotificationServiceExtension

- This is cruft that has never been called
- Added in 2016
- This is not supported currently

* Change email addresses

Also added feedback and support emails.

* Added HTML for support email

Fixed bitcoin references

* Removed empty UITests

* bump build number

* updated html to be for iPhone only

* Fix podfile and build version

* Revert "[Bugfix] Cleared Simplex  (#126)"

This reverts commit 154eb4fbbe71b4ff1a2323dd316bf7b6783c3b0a.

* bump build number

Co-authored-by: Mohamed Barry <[email protected]>

* [Release v2.8.2] Merge into Develop

## Release Notes: v2.8.2 (1)
This release is due to a requirement to App Store to remove references to donations.  In it’s replacement, a reference to the Litecoin Foundation support page where the user can elect to send LTC if they so choose.
- [Warmfix] Issue:146 Remove direct donation: support litecoin foundati…

##  Other Improvements
- Fix crash in Amount formatter (#140)
- [Bugfix] Renamed enum from State (#147) (#150)

## Bugfixes
 - Renaming the enum caused a conflict with SwiftUI @State

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Hotfix Increment

-Updated to allow upload to App Store

* build number change

* fixed conflicts

Co-authored-by: Mohamed Barry <[email protected]>

* [Bugfix] Replace the LF Support View (#159)

* Moved the LF Cell from Send.

- BartyCrouch linted the stigns files.

* Updated the LF Support location

- Reset the localiaztion language to ‘Customer support’
- Add the dismissal actions

* [Bugfix] Fix buy tab: Simplex urls (#157)

* Updated the url to new servers

* Linted the Localized strings

* Setup url constants

* updated pk file status

* Updated per PR review comments

* fixed naming of the url variable

* [Merge v2.8.3] into Develop (#169)

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <[email protected]>

* Release/v2.8.0 (#131)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* ## Release Notes: v2.8.0  (version bump)

This release is the first release in months that needed an update based on the changes in the enviroment. In general, the Litewallet code base is bloated with 1000's of lines of unused code and this makes debugging and adding new features very difficult. In addition, the requirements of iOS 14 and the plan to move from UIKit to a SwiftUI+Combine architecture means subsequent PRs will reflect a more streamlined codebase.

## Tech Debt
- Also have watch xcscheme added per upgrade
- Added Issue templates (#122)
	- Bug Report
	- Feature Request
- Updated key for RemoteRunnable in xcscheme
- remove unused fonts
- run code on main thread
- update cocoapods firebase
- update addresses + event

## Improvements
* compute QR code only once
	- Soft launch for Import QR Code

## Bugfixes
* fix crash: window required

## Temporary Workarounds
The proxy server the supports buying LTC is being refactored and so no mobile clients can use the Simplex service
	* Disabled Simplex / Added temp message
		- Was causing crashes when return messages were happening.
		- Will update in the next cycle with an updated UI
		- Added a Analytics:  DID TAP BUY TAB marker
		- Added Coming Soon label to the tableview background view for a temporary sign
		- Added all translation for the coming soon message

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Removed schemes (#125)

Goal: Reduce the codebase in prep for a major refactor. This removed the debug scheme and watch scheme.

* [Tech Debt] Remove Apple Watch code (#124)

* Remove  Apple Watch code

- The Apple Code is very old and has never been updated.
- There is a longer plan to remove superflous code.
- If others ask to re-add it we will look again with the later versions

* Removed NotificationServiceExtension

- This is cruft that has never been called
- Added in 2016
- This is not supported currently

* Change email addresses

Also added feedback and support emails.

* Added HTML for support email

Fixed bitcoin references

* Removed empty UITests

* bump build number

* updated html to be for iPhone only

* Fix podfile and build version

* Revert "[Bugfix] Cleared Simplex  (#126)"

This reverts commit 154eb4fbbe71b4ff1a2323dd316bf7b6783c3b0a.

* bump build number

Co-authored-by: Mohamed Barry <[email protected]>

* [Release v2.8.2] Merge into Master  (#153)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* Develop - Release/v2.8.0 (#132)

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <[email protected]>

* ## Release Notes: v2.8.0  (version bump)

This release is the first release in months that needed an update based on the changes in the enviroment. In general, the Litewallet code base is bloated with 1000's of lines of unused code and this makes debugging and adding new features very difficult. In addition, the requirements of iOS 14 and the plan to move from UIKit to a SwiftUI+Combine architecture means subsequent PRs will reflect a more streamlined codebase.

## Tech Debt
- Also have watch xcscheme added per upgrade
- Added Issue templates (#122)
	- Bug Report
	- Feature Request
- Updated key for RemoteRunnable in xcscheme
- remove unused fonts
- run code on main thread
- update cocoapods firebase
- update addresses + event

## Improvements
* compute QR code only once
	- Soft launch for Import QR Code

## Bugfixes
* fix crash: window required

## Temporary Workarounds
The proxy server the supports buying LTC is being refactored and so no mobile clients can use the Simplex service
	* Disabled Simplex / Added temp message
		- Was causing crashes when return messages were happening.
		- Will update in the next cycle with an updated UI
		- Added a Analytics:  DID TAP BUY TAB marker
		- Added Coming Soon label to the tableview background view for a temporary sign
		- Added all translation for the coming soon message

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Removed schemes (#125)

Goal: Reduce the codebase in prep for a major refactor. This removed the debug scheme and watch scheme.

* [Tech Debt] Remove Apple Watch code (#124)

* Remove  Apple Watch code

- The Apple Code is very old and has never been updated.
- There is a longer plan to remove superflous code.
- If others ask to re-add it we will look again with the later versions

* Removed NotificationServiceExtension

- This is cruft that has never been called
- Added in 2016
- This is not supported currently

* Change email addresses

Also added feedback and support emails.

* Added HTML for support email

Fixed bitcoin references

* Removed empty UITests

* bump build number

* updated html to be for iPhone only

* Fix podfile and build version

* Revert "[Bugfix] Cleared Simplex  (#126)"

This reverts commit 154eb4fbbe71b4ff1a2323dd316bf7b6783c3b0a.

* bump build number

Co-authored-by: Mohamed Barry <[email protected]>

* Fix crash in Amount formatter (#140)

* 🦺 [Tech Debt] Update Podfile and Refactor build process (#144)

* Update Podfile

- Set mimum value of iOS 13
- Removed unused SwiftyJSON
- Removed unused Watch Scheme
- re-added xcscheme
- removed non-used code
- added status badge in README

* removed the podfile target force

* added SPM .build folder exclusion in gitignore

* [Bugfix] Renamed enum from State (#147)

* Renamed enum from State

 ## Problem
 The original design of Breadwallet (Loafwallet) used a SimpleRedux architecture which maanged the State in an unsual (yet effective) way.

Within that design ‘state’ was managed by an enum named “State”

This was fine until SwiftUI and Combine where there is now a name collision since @State is referring to the SwfitUI attribute.

 ## Approach
While redesiging the app would be ideal, the reality is this needs to be fixed as soon as possible because Litewallet is now using SwiftUI.

 Steps to fix the problem:
 - [ ] Renamed variable from `State` to `ReduxState`

* Toggled iOS version 13

* Revert "[Bugfix] Renamed enum from State (#147)" (#150)

This reverts commit ea8293b5c7f206706942416a1d7d9b139926fa97.

* [Warmfix] Issue:146 Remove direct donation: support litecoin foundation (#151)

* Prepared the code for differnt Cell / Remove Donation Code

- Updated localized strings file(s)
- Removed old Donate files
- Updated SendVIewController

* Resolved the previous conflicts

- Added in SupportLitecoinFoundation SwiftUI view and model
- Working in the basic functionality of the new Support Litecoin Foundation view

* Worked in the vars of SupportLitecoinFoundation  view

* Removed Donation code

* Set a URL for the support LTC address

* Add new WebKit view and supporting code

* Adjusted height constants in the nightmare scenario of the SendCell

-There is a nasty sandwich of ViewControllers where SwiftUI should be used.
- This needs to be simplified

# Conflicts:
#	loafwallet/src/ViewControllers/RootModals/SendViewController.swift

* Added new MVVM Views and ViewModels

- Adding more SwiftUI code

* Refactored and stubbed out tests

* version bump

* Renamed enum from State  to ReduxState

## Problem
 The original design of Breadwallet (Loafwallet) used a SimpleRedux architecture which maanged the State in an unsual (yet effective) way.

Within that design ‘state’ was managed by an enum named “State”

This was fine until SwiftUI and Combine where there is now a name collision since @State is referring to the SwfitUI attribute.

 ## Approach
While redesiging the app would be ideal, the reality is this needs to be fixed as soon as possible because Litewallet is now using SwiftUI.

 Steps to fix the problem:
 - [ ] Renamed variable from `State` to `ReduxState` using Xcode Refactor: Rename

* Cleaned up Localized strings file

* Added review fixes

- Added CGFloat multiplier in padding
- Fixed formatting
- Added tracking Support taps

* [Release v2.8.2] Merge into Develop

## Release Notes: v2.8.2 (1)
This release is due to a requirement to App Store to remove references to donations.  In it’s replacement, a reference to the Litecoin Foundation support page where the user can elect to send LTC if they so choose.
- [Warmfix] Issue:146 Remove direct donation: support litecoin foundati…

##  Other Improvements
- Fix crash in Amount formatter (#140)
- [Bugfix] Renamed enum from State (#147) (#150)

## Bugfixes
 - Renaming the enum caused a conflict with SwiftUI @State

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Hotfix Increment

-Updated to allow upload to App Store

* build number change

* fixed conflicts

Co-authored-by: Mohamed Barry <[email protected]>
Co-authored-by: Nikolay Spassov <[email protected]>

* version bump

Co-authored-by: Mohamed Barry <[email protected]>
Co-authored-by: Nikolay Spassov <[email protected]>

* [Feature Issue 154] Adding Unstoppable Domains functionality  (#155)

* Added UD to Podfile

- Stubbed out the view, viewModel and the test class for UD

* [UI Polish] Added images and localized strings

- Added more of strings and UD structure
- Trimmed images to resize for button
- Added localized strings for placeholder

* Updated UnstoppableDomainsView and Model details

- Added DEV notes script
- Adjusted Previews by unchecking the `build install only`

* Added more tests

- UnstoppableDomains View Model tests
- SupportLitecoinFoundationViewModel tests

* reformatted code in new SwiftUI views and viewModels

* Added UD action to the SendViewController

* Updated project

* Updated localized UD Placeholder

* Setup API keys

* removed pk file

* Changed the localizations related to UD

- Added ‘Or’ label
- Added UD placeholder text
- Changed the LTC address placeholder text

* Added in the Or and relayout of the button

- Added Partner layout view for UD and Simplex

* Resolved code review comments

- Update the localizations
- Refactored the UD shared instance (singleton) to retain throguh the call
- Added timing probes

* revert to current  version

* reformatted the Support LF view strings

* Remove Test Playground.

* Removed unused SocialView and ViewModel

* Improved resolution

- Added a Dispatch and ‘exit’ when address is found sooner than 12 secs. Much better experience for the user.

* Added infura

* Resolved review comments

* Rewrote copy for “Enter a Litecoin address”

* version bump

* Minor bugfix: reordered UD address lines to set the first responder…duh

* build update

* Resolve conflicts

Co-authored-by: Mohamed Barry <[email protected]>
Co-authored-by: Nikolay Spassov <[email protected]>

* [Merge v3.0.0] into Master (#183)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* Develop - Release/v2.8.0 (#132)

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <[email protected]>

* ## Release Notes: v2.8.0  (version bump)

This release is the first release in months that needed an update based on the changes in the enviroment. In general, the Litewallet code base is bloated with 1000's of lines of unused code and this makes debugging and adding new features very difficult. In addition, the requirements of iOS 14 and the plan to move from UIKit to a SwiftUI+Combine architecture means subsequent PRs will reflect a more streamlined codebase.

## Tech Debt
- Also have watch xcscheme added per upgrade
- Added Issue templates (#122)
	- Bug Report
	- Feature Request
- Updated key for RemoteRunnable in xcscheme
- remove unused fonts
- run code on main thread
- update cocoapods firebase
- update addresses + event

## Improvements
* compute QR code only once
	- Soft launch for Import QR Code

## Bugfixes
* fix crash: window required

## Temporary Workarounds
The proxy server the supports buying LTC is being refactored and so no mobile clients can use the Simplex service
	* Disabled Simplex / Added temp message
		- Was causing crashes when return messages were happening.
		- Will update in the next cycle with an updated UI
		- Added a Analytics:  DID TAP BUY TAB marker
		- Added Coming Soon label to the tableview background view for a temporary sign
		- Added all translation for the coming soon message

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Removed schemes (#125)

Goal: Reduce the codebase in prep for a major refactor. This removed the debug scheme and watch scheme.

* [Tech Debt] Remove Apple Watch code (#124)

* Remove  Apple Watch code

- The Apple Code is very old and has never been updated.
- There is a longer plan to remove superflous code.
- If others ask to re-add it we will look again with the later versions

* Removed NotificationServiceExtension

- This is cruft that has never been called
- Added in 2016
- This is not supported currently

* Change email addresses

Also added feedback and support emails.

* Added HTML for support email

Fixed bitcoin references

* Removed empty UITests

* bump build number

* updated html to be for iPhone only

* Fix podfile and build version

* Revert "[Bugfix] Cleared Simplex  (#126)"

This reverts commit 154eb4fbbe71b4ff1a2323dd316bf7b6783c3b0a.

* bump build number

Co-authored-by: Mohamed Barry <[email protected]>

* Fix crash in Amount formatter (#140)

* 🦺 [Tech Debt] Update Podfile and Refactor build process (#144)

* Update Podfile

- Set mimum value of iOS 13
- Removed unused SwiftyJSON
- Removed unused Watch Scheme
- re-added xcscheme
- removed non-used code
- added status badge in README

* removed the podfile target force

* added SPM .build folder exclusion in gitignore

* [Bugfix] Renamed enum from State (#147)

* Renamed enum from State

 ## Problem
 The original design of Breadwallet (Loafwallet) used a SimpleRedux architecture which maanged the State in an unsual (yet effective) way.

Within that design ‘state’ was managed by an enum named “State”

This was fine until SwiftUI and Combine where there is now a name collision since @State is referring to the SwfitUI attribute.

 ## Approach
While redesiging the app would be ideal, the reality is this needs to be fixed as soon as possible because Litewallet is now using SwiftUI.

 Steps to fix the problem:
 - [ ] Renamed variable from `State` to `ReduxState`

* Toggled iOS version 13

* Revert "[Bugfix] Renamed enum from State (#147)" (#150)

This reverts commit ea8293b5c7f206706942416a1d7d9b139926fa97.

* [Warmfix] Issue:146 Remove direct donation: support litecoin foundation (#151)

* Prepared the code for differnt Cell / Remove Donation Code

- Updated localized strings file(s)
- Removed old Donate files
- Updated SendVIewController

* Resolved the previous conflicts

- Added in SupportLitecoinFoundation SwiftUI view and model
- Working in the basic functionality of the new Support Litecoin Foundation view

* Worked in the vars of SupportLitecoinFoundation  view

* Removed Donation code

* Set a URL for the support LTC address

* Add new WebKit view and supporting code

* Adjusted height constants in the nightmare scenario of the SendCell

-There is a nasty sandwich of ViewControllers where SwiftUI should be used.
- This needs to be simplified

# Conflicts:
#	loafwallet/src/ViewControllers/RootModals/SendViewController.swift

* Added new MVVM Views and ViewModels

- Adding more SwiftUI code

* Refactored and stubbed out tests

* version bump

* Renamed enum from State  to ReduxState

## Problem
 The original design of Breadwallet (Loafwallet) used a SimpleRedux architecture which maanged the State in an unsual (yet effective) way.

Within that design ‘state’ was managed by an enum named “State”

This was fine until SwiftUI and Combine where there is now a name collision since @State is referring to the SwfitUI attribute.

 ## Approach
While redesiging the app would be ideal, the reality is this needs to be fixed as soon as possible because Litewallet is now using SwiftUI.

 Steps to fix the problem:
 - [ ] Renamed variable from `State` to `ReduxState` using Xcode Refactor: Rename

* Cleaned up Localized strings file

* Added review fixes

- Added CGFloat multiplier in padding
- Fixed formatting
- Added tracking Support taps

* [Release] Merge v2.8.2 into Develop (#158)

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <[email protected]>

* Release/v2.8.0 (#131)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* ## Release Notes: v2.8.0  (version bump)

This release is the first release in months that needed an update based on the changes in the enviroment. In general, the Litewallet code base is bloated with 1000's of lines of unused code and this makes debugging and adding new features very difficult. In addition, the requirements of iOS 14 and the plan to move from UIKit to a SwiftUI+Combine architecture means subsequent PRs will reflect a more streamlined codebase.

## Tech Debt
- Also have watch xcscheme added per upgrade
- Added Issue templates (#122)
	- Bug Report
	- Feature Request
- Updated key for RemoteRunnable in xcscheme
- remove unused fonts
- run code on main thread
- update cocoapods firebase
- update addresses + event

## Improvements
* compute QR code only once
	- Soft launch for Import QR Code

## Bugfixes
* fix crash: window required

## Temporary Workarounds
The proxy server the supports buying LTC is being refactored and so no mobile clients can use the Simplex service
	* Disabled Simplex / Added temp message
		- Was causing crashes when return messages were happening.
		- Will update in the next cycle with an updated UI
		- Added a Analytics:  DID TAP BUY TAB marker
		- Added Coming Soon label to the tableview background view for a temporary sign
		- Added all translation for the coming soon message

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Removed schemes (#125)

Goal: Reduce the codebase in prep for a major refactor. This removed the debug scheme and watch scheme.

* [Tech Debt] Remove Apple Watch code (#124)

* Remove  Apple Watch code

- The Apple Code is very old and has never been updated.
- There is a longer plan to remove superflous code.
- If others ask to re-add it we will look again with the later versions

* Removed NotificationServiceExtension

- This is cruft that has never been called
- Added in 2016
- This is not supported currently

* Change email addresses

Also added feedback and support emails.

* Added HTML for support email

Fixed bitcoin references

* Removed empty UITests

* bump build number

* updated html to be for iPhone only

* Fix podfile and build version

* Revert "[Bugfix] Cleared Simplex  (#126)"

This reverts commit 154eb4fbbe71b4ff1a2323dd316bf7b6783c3b0a.

* bump build number

Co-authored-by: Mohamed Barry <[email protected]>

* [Release v2.8.2] Merge into Develop

## Release Notes: v2.8.2 (1)
This release is due to a requirement to App Store to remove references to donations.  In it’s replacement, a reference to the Litecoin Foundation support page where the user can elect to send LTC if they so choose.
- [Warmfix] Issue:146 Remove direct donation: support litecoin foundati…

##  Other Improvements
- Fix crash in Amount formatter (#140)
- [Bugfix] Renamed enum from State (#147) (#150)

## Bugfixes
 - Renaming the enum caused a conflict with SwiftUI @State

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Hotfix Increment

-Updated to allow upload to App Store

* build number change

* fixed conflicts

Co-authored-by: Mohamed Barry <[email protected]>

* [Bugfix] Replace the LF Support View (#159)

* Moved the LF Cell from Send.

- BartyCrouch linted the stigns files.

* Updated the LF Support location

- Reset the localiaztion language to ‘Customer support’
- Add the dismissal actions

* [Bugfix] Fix buy tab: Simplex urls (#157)

* Updated the url to new servers

* Linted the Localized strings

* Setup url constants

* updated pk file status

* Updated per PR review comments

* fixed naming of the url variable

* [Merge v2.8.3] into Develop (#169)

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <[email protected]>

* Release/v2.8.0 (#131)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* ## Release Notes: v2.8.0  (version bump)

This release is the first release in months that needed an update based on the changes in the enviroment. In general, the Litewallet code base is bloated with 1000's of lines of unused code and this makes debugging and adding new features very difficult. In addition, the requirements of iOS 14 and the plan to move from UIKit to a SwiftUI+Combine architecture means subsequent PRs will reflect a more streamlined codebase.

## Tech Debt
- Also have watch xcscheme added per upgrade
- Added Issue templates (#122)
	- Bug Report
	- Feature Request
- Updated key for RemoteRunnable in xcscheme
- remove unused fonts
- run code on main thread
- update cocoapods firebase
- update addresses + event

## Improvements
* compute QR code only once
	- Soft launch for Import QR Code

## Bugfixes
* fix crash: window required

## Temporary Workarounds
The proxy server the supports buying LTC is being refactored and so no mobile clients can use the Simplex service
	* Disabled Simplex / Added temp message
		- Was causing crashes when return messages were happening.
		- Will update in the next cycle with an updated UI
		- Added a Analytics:  DID TAP BUY TAB marker
		- Added Coming Soon label to the tableview background view for a temporary sign
		- Added all translation for the coming soon message

## Authors
Kerry Washington <[email protected]>
Mohamed Barry <[email protected]>

* Removed schemes (#125)

Goal: Reduce the codebase in prep for a major refactor. This removed the debug scheme and watch scheme.

* [Tech Debt] Remove Apple Watch code (#124)

* Remove  Apple Watch code

- The Apple Code is very old and has never been updated.
- There is a longer plan to remove superflous code.
- If others ask to re-add it we will look again with the later versions

* Removed NotificationServiceExtension

- This is cruft that has never been called
- Added in 2016
- This is not supported currently

* Change email addresses

Also added feedback and support emails.

* Added HTML for support email

Fixed bitcoin references

* Removed empty UITests

* bump build number

* updated html to be for iPhone only

* Fix podfile and build version

* Revert "[Bugfix] Cleared Simplex  (#126)"

This reverts commit 154eb4fbbe71b4ff1a2323dd316bf7b6783c3b0a.

* bump build number

Co-authored-by: Mohamed Barry <[email protected]>

* [Release v2.8.2] Merge into Master  (#153)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

* [Bugfix] Cleared Simplex  (#126)

* Disabled Simplex 
- Was causing crashes when return messages were happening.
- Will update in the next cycle with an updated UI
- Added a Analytics:  DID TAP BUY TAB marker

* Added Coming Soon label to the tableview background view for a temporary sign
- Added all translation for the coming soon message

* Develop - Release/v2.8.0 (#132)

* [Merge to Master] Develop with tech debt improvements (#123)

* fix crash: window required

* compute QR code only once

* run code on main thread

* update cocoapods firebase

* update addresses + event

* version bump

* remove unused fonts

* Updated key for RemoteRunnable in xcscheme

* Added Issue templates (#122)

- Bug Report
- Feature Request
- Also have watch xcscheme added per upgrade

Co-authored-by: Mohamed Barry <mo…
  • Loading branch information
6 people authored Feb 27, 2024
1 parent 775fab4 commit 04146e8
Show file tree
Hide file tree
Showing 220 changed files with 22,433 additions and 3,466 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
## Litewallet related

litewallet/partner-keys.plist
litewallet/GoogleService-Info.plist

Expand Down
2 changes: 1 addition & 1 deletion litewallet/Assets.xcassets/TabBar/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"version" : 1,
"author" : "xcode"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "LW_RecieveV2.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions litewallet/BRAPIClient+Features.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,4 @@ extension BRAPIClient {
}
}.resume()
}

static func featureEnabled(_ flag: BRFeatureFlags) -> Bool {
if E.isDebug || E.isTestFlight { return true }
let defaults = UserDefaults.standard
return defaults.bool(forKey: BRAPIClient.defaultsKeyForFeatureFlag(flag.description))
}
}
3 changes: 0 additions & 3 deletions litewallet/BRCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import Foundation
typealias BRTxRef = UnsafeMutablePointer<BRTransaction>
typealias BRBlockRef = UnsafeMutablePointer<BRMerkleBlock>

// Used for convert byte array to LTC Address
let characterLengthConstant = 75

/// BRPeerManagerError: Error
enum BRPeerManagerError: Error {
case posixError(errorCode: Int32, description: String)
Expand Down
18 changes: 3 additions & 15 deletions litewallet/Constants/Constants+Events.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,21 +206,6 @@ enum CustomEvent: String {
/// User tapped balance
case _20200207_DTHB = "did_tap_header_balance"

/// Ternio API Wallet details failure
case _20210405_TAWDF = "ternio_api_wallet_details_failure"

/// Ternio API Authenticate Enable 2FA change
case _20210804_TAA2FAC = "ternio_API_auth_2FA_change"

/// Ternio API Wallet details success
case _20210804_TAWDS = "ternio_API_wallet_details_success"

/// Ternio API Login
case _20210804_TAULI = "ternio_API_user_log_in"

/// Ternio API Logout
case _20210804_TAULO = "ternio_API_user_log_out"

/// Heartbeat check If event even happens
case _20210427_HCIEEH = "heartbeat_check_if_event_even_happens"

Expand All @@ -235,4 +220,7 @@ enum CustomEvent: String {

/// User signup
case _20240101_US = "user_signup"

/// Transactions info
case _20240214_TI = "transactions_info"
}
24 changes: 8 additions & 16 deletions litewallet/Constants/Functions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,16 @@ func strongify<Context: AnyObject, Arguments>(_ context: Context?, closure: @esc
}
}

/// Description: 1701029422
/// Description: 1707828867
func tieredOpsFee(amount: UInt64) -> UInt64 {
switch amount {
case 0 ..< 1_398_000:
return 69900
case 1_398_000 ..< 6_991_000:
return 111_910
case 6_991_000 ..< 27_965_000:
return 279_700
case 27_965_000 ..< 139_820_000:
return 699_540
case 139_820_000 ..< 279_653_600:
return 1_049_300
case 279_653_600 ..< 699_220_000:
return 1_398_800
case 699_220_000 ..< 1_398_440_000:
return 2_797_600
case 0 ..< 250_000_000:
return 350_000
case 250_000_000 ..< 1_000_000_000:
return 1_500_000
case _ where amount > 1_000_000_000:
return 3_500_000
default:
return 2_797_600
return 3_500_000
}
}
9 changes: 3 additions & 6 deletions litewallet/Constants/Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ enum S {
}
}

enum Conjuction {
static let asOf = Localization(key: "Conjunction.asOf", value: "as of", comment: "as of a time or date")
}

// MARK: - Generic Button labels

enum Button {
Expand Down Expand Up @@ -115,7 +111,8 @@ enum S {
static let cameraUnavailableTitle = Localization(key: "Send.cameraUnavailableTitle", value: "Litewallet is not allowed to access the camera", comment: "Camera not allowed alert title")
static let cameraUnavailableMessage = Localization(key: "Send.cameraunavailableMessage", value: "Go to Settings to allow camera access.", comment: "Camera not allowed message")
static let balance = Localization(key: "Send.balance", value: "Balance: %1$@", comment: "Balance: $4.00")
static let fee = Localization(key: "Send.fees", value: "Fees: %1$@", comment: "Fees: $0.10")
static let networkFee = Localization(key: "Send.networkFee", value: "Network", comment: "Network")
static let serviceFee = Localization(key: "Send.serviceFee", value: "Service", comment: "Service")
static let feeBlank = Localization(key: "Send.feeBlank", value: "Fees:", comment: "Fees: ")
static let bareFee = Localization(key: "Send.fee", value: "Fee: %1$@", comment: "Fee: $0.01")
static let containsAddress = Localization(key: "Send.containsAddress", value: "The destination is your own address. You cannot send to yourself.", comment: "Warning when sending to self.")
Expand Down Expand Up @@ -207,7 +204,7 @@ enum S {
static let complete = Localization(key: "Transaction.complete", value: "Complete", comment: "Transaction complete label")
static let waiting = Localization(key: "Transaction.waiting", value: "Waiting to be confirmed. Some merchants require confirmation to complete a transaction. Estimated time: 1-2 hours.", comment: "Waiting to be confirmed string")
static let starting = Localization(key: "Transaction.starting", value: "Starting balance: %1$@", comment: "eg. Starting balance: $50.00")
static let fee = Localization(key: "Transaction.fee", value: "(%1$@ fee)", comment: "(b600 fee)")
static let fee = Localization(key: "Transaction.fee", value: "(%1$@ total fees)", comment: "(b600 fee)")
static let ending = Localization(key: "Transaction.ending", value: "Ending balance: %1$@", comment: "eg. Ending balance: $50.00")
static let exchangeOnDaySent = Localization(key: "Transaction.exchangeOnDaySent", value: "Exchange rate when sent:", comment: "Exchange rate on date header")
static let exchangeOnDayReceived = Localization(key: "Transaction.exchangeOnDayReceived", value: "Exchange rate when received:", comment: "Exchange rate on date header")
Expand Down
12 changes: 0 additions & 12 deletions litewallet/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,6 @@ struct E {
return (UIScreen.main.bounds.size.height == 812.0)
}

static var isIPhone8Plus: Bool {
return (UIScreen.main.bounds.size.height == 736.0)
}

static var isIPhoneXsMax: Bool {
return (UIScreen.main.bounds.size.height == 812.0)
}

static var isIPad: Bool {
return (UIDevice.current.userInterfaceIdiom == .pad)
}

static let is32Bit: Bool = {
MemoryLayout<Int>.size == MemoryLayout<UInt32>.size
}()
Expand Down
3 changes: 0 additions & 3 deletions litewallet/Extensions/SafariServices+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ struct WebView: UIViewRepresentable {
}

func updateUIView(_ webview: WKWebView, context _: Context) {
print("::: webview \(webview.frame.size)")

webview.endEditing(true)

if scrollToSignup {
let point = CGPoint(x: 0, y: webview.scrollView.contentSize.height - webview.frame.size.height / 2)
print("::: point \(point)")

webview.scrollView.setContentOffset(point, animated: true)
DispatchQueue.main.async {
Expand Down
5 changes: 0 additions & 5 deletions litewallet/Platform/BRAPIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ let BRAPIClientErrorDomain = "BRApiClientErrorDomain"
}
}

public enum BRAPIClientError: Error {
case malformedDataError
case unknownError
}

public typealias URLSessionTaskHandler = (Data?, HTTPURLResponse?, NSError?) -> Void
public typealias URLSessionChallengeHandler = (URLSession.AuthChallengeDisposition, URLCredential?) -> Void

Expand Down
8 changes: 1 addition & 7 deletions litewallet/Platform/BRWebViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,14 @@ import WebKit
var wkProcessPool: WKProcessPool
var webView: WKWebView?
var server = BRHTTPServer()
var debugEndpoint: String?
var mountPoint: String
var walletManager: WalletManager
let store: Store
let noAuthApiClient: BRAPIClient?
let partner: String?
let activityIndicator: UIActivityIndicatorView
var didLoad = false
var didAppear = false
var didLoadTimeout = 2500
var waitTimeout = 90
// we are also a socket server which sends didview/didload events to the listening client(s)
var didAppear = false // we are also a socket server which sends didview/didload events to the listening client(s)
var sockets = [String: BRWebSocket]()

// this is the data that occasionally gets sent to the above connected sockets
Expand All @@ -34,8 +30,6 @@ import WebKit
return URL(string: "http://127.0.0.1:\(server.port)\(mountPoint)")!
}

private let messageUIPresenter = MessageUIPresenter()

init(partner: String?, mountPoint: String = "/", walletManager: WalletManager, store: Store, noAuthApiClient: BRAPIClient? = nil)
{
wkProcessPool = WKProcessPool()
Expand Down
23 changes: 13 additions & 10 deletions litewallet/StartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,17 @@ struct StartView: View {
.alertMessage[startViewModel.currentLanguage.rawValue],
isPresented: $delayedSelect) {
HStack {
Button(S.Button.yes.localize(), role: .cancel) {
startViewModel.setLanguage(code: startViewModel.currentLanguage.code)
selectedLang = false
}
Button(S.Button.cancel.localize(), role: .destructive) {
// Dismisses
selectedLang = false
}
Button(startViewModel
.yesLabel[startViewModel.currentLanguage.rawValue], role: .cancel) {
// Changes and Dismisses
startViewModel.setLanguage(code: startViewModel.currentLanguage.code)
selectedLang = false
}
Button(startViewModel
.cancelLabel[startViewModel.currentLanguage.rawValue], role: .destructive) {
// Dismisses
selectedLang = false
}
}
}
Spacer()
Expand All @@ -137,7 +140,7 @@ struct StartView: View {
language: startViewModel.currentLanguage,
didTapContinue: $didContinue)
.environmentObject(startViewModel)
.navigationBarBackButtonHidden(true)
.navigationBarBackButtonHidden(false)
) {
ZStack {
RoundedRectangle(cornerRadius: bigButtonCornerRadius)
Expand All @@ -163,7 +166,7 @@ struct StartView: View {
language: startViewModel.currentLanguage,
didTapContinue: $didContinue)
.environmentObject(startViewModel)
.navigationBarBackButtonHidden(true)
.navigationBarBackButtonHidden(false)
) {
ZStack {
RoundedRectangle(cornerRadius: bigButtonCornerRadius)
Expand Down
37 changes: 36 additions & 1 deletion litewallet/StartViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class StartViewModel: ObservableObject {
// MARK: - Lengthy elements

/// Set these to the bottom to make the others more readable

/// These are semi-hardcoded because the state is in flux
let taglines: [String] = [
"The most secure and easiest way to use Litecoin.",
"使用莱特币最安全、最简单的方式。",
Expand Down Expand Up @@ -168,6 +168,41 @@ class StartViewModel: ObservableObject {
"Dili Türkçe olarak değiştirmek istediğinizden emin misiniz?",
"Ви впевнені, що хочете змінити мову на українську?",
]

let yesLabel: [String] = [
"Yes",
"是的",
"是的",
"Oui",
"Ja",
"Ya",
"",
"はい",
"",
"Sim",
"Да",
"",
"Evet",
"Так",
]

let cancelLabel: [String] = [
"Cancel",
"取消",
"取消",
"Annuler",
"Stornieren",
"Membatalkan",
"Annulla",
"キャンセル",
"취소",
"Cancelar",
"Отмена",
"Cancelar",
"İptal etmek",
"Скасувати",
]

func stringToCurrentLanguage(languageString: String) -> LanguageSelection {
switch languageString {
case "English":
Expand Down
42 changes: 24 additions & 18 deletions litewallet/Strings/Base.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -460,21 +460,6 @@
/* Upgrade PIN prompt title. */
"Prompts.SetPin.title" = "Set PIN";

/* Push notifications settings view body */
"Notifications.body" = "Turn on notifications to receive special messages from Litewallet in the future.";

/* Push notifications toggle switch label */
"Notifications.label" = "Push Notifications";

/* Push notifications are off label */
"Notifications.off" = "Off";

/* Push notifications are on label */
"Notifications.on" = "On";

/* Push notifications settings view title label */
"Notifications.title" = "Notifications";

/* Address copied message. */
"Receive.copied" = "Copied to clipboard.";

Expand Down Expand Up @@ -1075,9 +1060,6 @@
/* 1 of 3 */
"WritePaperPhrase.step" = "%1$d of %2$d";

/* as of a time or date */
"Conjunction.asOf" = "as of";

/* No comment provided by engineer. */
"Copy" = "Copy";

Expand Down Expand Up @@ -1470,3 +1452,27 @@

/* Fees Blank: */
"Send.feeBlank" = "Fees:";

/* Network */
"Send.networkFee" = "Network";

/* Service */
"Send.serviceFee" = "Service";

/* Signup cancel */
"Notifications.signupCancel" = "No, thanks";

/* "Email title" */
"Notifications.emailTitle" = "Don't a miss a thing!";

/* "Pitch to get user to sign up" */
"Notifications.pitchMessage" = "Sign up to hear about updates & contests.";

/* "Email address label" */
"Notifications.emailLabel" = "Email address";

/* "Email address placeholder" */
"Notifications.emailPlaceholder" = "Enter here";

/* "Language preference label" */
"Notifications.languagePreference" = "Preferred language:";
Loading

0 comments on commit 04146e8

Please sign in to comment.