Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS Username, Password, Payment and Device Linking flow #1019

Merged
merged 202 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from 175 commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
be7096a
Design Sign in screen.
jigar-f Nov 28, 2023
df0902d
Create blank screen and make changes in CTextField to support passw…
jigar-f Nov 29, 2023
a8e5957
Design Enter password screen.
jigar-f Nov 29, 2023
90d8cf7
Reuse sign in screen for Reset password one.
jigar-f Nov 29, 2023
2c73193
Design verification screen.
jigar-f Nov 29, 2023
b4e6875
Design Reset password screen.
jigar-f Nov 29, 2023
dddf07c
Design Create Account screen and dialogs.
jigar-f Nov 29, 2023
6d161ac
Completed create account flow.
jigar-f Nov 30, 2023
d587aad
Refactor code.
jigar-f Nov 30, 2023
ae4cb19
Change pro condition
jigar-f Nov 30, 2023
c4760fa
Added pro account dialog.
jigar-f Nov 30, 2023
b93e073
Added input validation across multiple screens
jigar-f Nov 30, 2023
116bf75
Started working on SRP stuff.
jigar-f Dec 1, 2023
463a141
Added signup API.
jigar-f Dec 4, 2023
b990935
Implemented step 1 and 2 for login request
jigar-f Dec 4, 2023
1150870
Added prepare API call.
jigar-f Dec 5, 2023
1c0e366
Change API model to use protos.
jigar-f Dec 6, 2023
6ccadaf
Added logs.
jigar-f Dec 6, 2023
0612cc8
Update protos, Mange errors,
jigar-f Dec 11, 2023
062bb5d
Added changes to signup API and UI changes.
jigar-f Dec 11, 2023
7926914
Implemented sign up API.
jigar-f Dec 11, 2023
e7b0865
Change Salt API to use email.
jigar-f Dec 11, 2023
538b370
IOS Payment (#964)
jigar-f Dec 13, 2023
c86269b
Implemented verification flow for pro user.
jigar-f Dec 13, 2023
b538e54
Implemented Login API.
jigar-f Dec 14, 2023
b128b8a
Added password validation in sign in and Implemented Signout design.
jigar-f Dec 14, 2023
a47a7c1
Started working on reset password flow.
jigar-f Dec 14, 2023
37ee981
Implemented Account Recovery flow.
jigar-f Dec 15, 2023
f124953
Refactored account management code and fixed issues in the sign-in pr…
jigar-f Dec 15, 2023
cfb1200
Added Model extension in swift.
jigar-f Dec 15, 2023
d72ca84
Fixed user caching issue.
jigar-f Dec 18, 2023
9a2d79b
Design change email screen with validation.
jigar-f Dec 18, 2023
157e217
Completed Change email feature.
jigar-f Dec 18, 2023
92c8e91
Throw same error as login.
jigar-f Dec 18, 2023
4f4f2d8
Use Notifier for logout tile.
jigar-f Dec 18, 2023
8096407
Implemented signout.
jigar-f Dec 19, 2023
2e5d8ea
Design Delete Account flow and Implemented API
jigar-f Dec 19, 2023
6aa7a11
Refactor code, changes in purchase data and started working on paymen…
jigar-f Dec 19, 2023
69eee90
Show warning only if user is logged in/
jigar-f Dec 19, 2023
546f0fc
Added validation while delete account.
jigar-f Dec 20, 2023
8d6ddf2
Implemented Delete Account.
jigar-f Dec 20, 2023
207aee5
Added showPasswordSuccessDialog and some other changes.
jigar-f Dec 20, 2023
4d8fde4
Added ablity to create account and fix issue with salt.
jigar-f Dec 21, 2023
d802697
Show proper error while Reset password.
jigar-f Dec 21, 2023
ab05b56
Hide Device linking for ios.
jigar-f Dec 21, 2023
1377299
Changes in start up sequence and some other changes.
jigar-f Dec 21, 2023
fd4a06f
Design new landing screen when user comes first time.
jigar-f Dec 22, 2023
43dbe11
updated error message.
jigar-f Dec 25, 2023
6ce7b56
Updated to flutter 3.16
jigar-f Dec 29, 2023
72651b2
Upload internal build to testflight.
jigar-f Jan 2, 2024
07170a1
Uploaded new build to testflight.
jigar-f Jan 3, 2024
9330396
Update prod.xcscheme
jigar-f Jan 3, 2024
edd8ab8
Updated DWARF_DSYM_FOLDER_PATH path
jigar-f Jan 3, 2024
067d0fe
Update build config.
jigar-f Jan 3, 2024
62f2ef9
Fixed edge case for in app puchase.
jigar-f Jan 4, 2024
d0c18a1
Fixed UI issues for Un/Pw flow.
jigar-f Jan 4, 2024
fd35a6c
IOS Device Linking (#969)
jigar-f Jan 5, 2024
43c3e81
Uploaded build to TestFlight 7.5.4.
jigar-f Jan 5, 2024
37bbe73
Added PR requested chanegs.
jigar-f Jan 8, 2024
c4df5bd
Created method for GenerateEncryptedKey and reuse it.
jigar-f Jan 8, 2024
0564c05
Ran go mod tidy
jigar-f Jan 8, 2024
356cbd9
Uploaded build to testflight.
jigar-f Jan 9, 2024
f68877b
Added dialog for change email.
jigar-f Jan 10, 2024
6f27426
Updated change email request.
jigar-f Jan 11, 2024
e42683d
Remove change password button.
jigar-f Jan 11, 2024
21632bf
Added option to sign in once user reset password.
jigar-f Jan 11, 2024
c473a97
Uploaded new build to testflight.
jigar-f Jan 11, 2024
aca5542
Made changes on pro activation code flow support username password.
jigar-f Jan 16, 2024
f1b11cd
Added email confirm dialog.
jigar-f Jan 17, 2024
2e589bd
Added device limit templet.
jigar-f Jan 17, 2024
9cba8e1
Created logo with text widget and reuse.
jigar-f Jan 18, 2024
17568dd
Remove duplicate imports.
jigar-f Jan 18, 2024
4139a48
Design Device limit screen with validation.
jigar-f Jan 18, 2024
b63d900
Check Device connected if not switch to free account.
jigar-f Jan 18, 2024
41e6c6f
Added remove device method.
jigar-f Jan 18, 2024
08e063d
Added device id payload in two endpoints.
jigar-f Jan 24, 2024
1ea7af4
Check for max device limit and ask user to removed if needed.
jigar-f Jan 25, 2024
d0d0b26
Avoid calling api when user goes back on sign in.
jigar-f Feb 6, 2024
0343919
Save user device if user has reached limit.
jigar-f Feb 19, 2024
13b44d0
Device limit flow changes.
jigar-f Feb 21, 2024
11a60ac
Create reuseabel widget.
jigar-f Feb 29, 2024
a1bd0a6
Updated header for auth flow.
jigar-f Feb 29, 2024
4f8ab5e
Implemented Validate email API.
jigar-f Mar 1, 2024
d46b948
Made changes in Create account flow.
jigar-f Mar 1, 2024
1cedd61
Made changes on verification flow.
jigar-f Mar 4, 2024
da427d5
Change pro dialog location.
jigar-f Mar 4, 2024
a9a5a06
Updated signup request payload add skip email.
jigar-f Mar 5, 2024
edab4fc
Change design of promo codes and make changes on same flow.
jigar-f Mar 5, 2024
faff21c
By pass account creation when pro user for promo code flow.
jigar-f Mar 5, 2024
1775060
Mange multiple routes for verification.
jigar-f Mar 5, 2024
f636f29
Updated tos widget.
jigar-f Mar 6, 2024
1241439
updated webview.
jigar-f Mar 6, 2024
a9a6597
Added some more validation.
jigar-f Mar 6, 2024
8d5f8ff
Updated change email protoc.
jigar-f Mar 7, 2024
4f813ef
Started working on change email flow.
jigar-f Mar 7, 2024
a84b599
Completed change email flow.
jigar-f Mar 7, 2024
d77240d
Hide Change email while create account.
jigar-f Mar 7, 2024
2b58823
Uploaded 7.5.5 to testflight.
jigar-f Mar 7, 2024
90ce203
While creating account use forgot password resend.
jigar-f Mar 8, 2024
9cc8c06
Fix issue on promo code.
jigar-f Mar 11, 2024
c6e62b9
Uploaded build to testflight.
jigar-f Mar 13, 2024
2f4023a
Fixed merged conflicts.
jigar-f Mar 14, 2024
9132808
Merge branch 'main' into jigar/username-password
jigar-f May 29, 2024
d2306ad
Merged main to this (Working on conflicts.)
jigar-f May 29, 2024
371d267
Merged ios client to use new network model.
jigar-f May 29, 2024
914d66c
fixed merged conflicts on flutter end.
jigar-f May 29, 2024
998b091
Fixed some UI issue and method channel issue.
jigar-f May 29, 2024
351523d
Add ability to pass custom header on api client.
jigar-f May 30, 2024
5759564
send proper error to UI.
jigar-f May 30, 2024
6e5093b
added documenation sign auth methods
jigar-f May 30, 2024
098f81f
Remove unused logs.
jigar-f May 30, 2024
8293167
Use auth client for auth apis.
jigar-f May 30, 2024
0268521
use ChainedThenFronted proxies
jigar-f May 31, 2024
3fe2fe8
Continue working on auth flow changes.
jigar-f May 31, 2024
1708e08
Fixed issue on link validate API.
jigar-f May 31, 2024
88b7f38
fixed issue while sign up.
jigar-f Jun 3, 2024
0136918
Delete account if user comes back from verification.
jigar-f Jun 3, 2024
1c3c562
update protoc and show message when recovery code is wrong.
jigar-f Jun 3, 2024
a87e7c1
fixed issue with device linking.
jigar-f Jun 3, 2024
6a16a5f
add redeem code method in ios.
jigar-f Jun 3, 2024
c665379
Removed commented code.
jigar-f Jun 3, 2024
7a2f32e
Expose header to all endpoints.
jigar-f Jun 4, 2024
63727aa
update action type in reportIssue.
jigar-f Jun 4, 2024
7305f5e
Uploaded build to testflight 7.5.7
jigar-f Jun 4, 2024
855f353
Pass user id as header in signup.
jigar-f Jun 4, 2024
c544a71
implement device add api.
jigar-f Jun 4, 2024
b35f7da
Uploaded 7.5.8 to testflight.
jigar-f Jun 4, 2024
ab7bc95
updated price change lang and cleanups.
jigar-f Jun 5, 2024
1dadfbc
removed unused code.
jigar-f Jun 5, 2024
4cfc9de
Merge branch 'main' into jigar/username-password
jigar-f Jun 5, 2024
e748876
fixed merged conflicts.
jigar-f Jun 5, 2024
ac2b56e
Comment out test cases and check for error on reseller
jigar-f Jun 5, 2024
e76dcff
more cleanups.
jigar-f Jun 5, 2024
eeaab56
Ran gofmt.
jigar-f Jun 5, 2024
72c6826
Started working on pro user chanegs.
jigar-f Jun 5, 2024
bea5403
added exciting pro user flow.
jigar-f Jun 5, 2024
638443b
Exclude db from Icloud storage.
jigar-f Jun 5, 2024
2cdc0f8
Small UI changes
jigar-f Jun 6, 2024
c549558
update account popup.
jigar-f Jun 6, 2024
ad038f8
show first time screen only when user is new.
jigar-f Jun 6, 2024
5f9f57b
Hide device linking for ios.
jigar-f Jun 6, 2024
cbe34f5
Merge remote-tracking branch 'origin/main' into jigar/username-password
atavism Jun 6, 2024
fd9aae1
Uploaded new build.
jigar-f Jun 7, 2024
5517bfe
Merge branch 'jigar/username-password' of https://github.com/getlante…
jigar-f Jun 7, 2024
c8c0b7e
Updated some pacakges.
jigar-f Jun 7, 2024
ddc4ebf
Read currency from planId.
jigar-f Jun 7, 2024
fc39bee
make sure email is lowercase for auth methods.
jigar-f Jun 10, 2024
c86b344
Remove commented code.
jigar-f Jun 10, 2024
99c8b49
added back device linking.
jigar-f Jun 10, 2024
b973876
enable device logout code and small other chanegs.
jigar-f Jun 10, 2024
bcf9d51
Remove automatic code signin.
jigar-f Jun 12, 2024
4ae8246
Started working on signout api.
jigar-f Jun 13, 2024
835fd8d
Fix issue with plist.
jigar-f Jun 13, 2024
3e1e5a0
Added isUserLoggedIn method.
jigar-f Jun 14, 2024
d1b5960
Fix issue with new signout flow
jigar-f Jun 14, 2024
2e9aaec
Update .gitignore
jigar-f Jun 14, 2024
a65eb7e
Upload new build to testflight
jigar-f Jun 14, 2024
ad5b0e5
Uploaded 7.5.14 to testflight.
jigar-f Jun 14, 2024
453ab37
Fixed multiple issues
jigar-f Jun 14, 2024
1a2f924
Uploaded build to testflight.
jigar-f Jun 14, 2024
6a6828d
Added internal headers.
jigar-f Jun 17, 2024
786a3b4
Update Podfile.lock
jigar-f Jun 17, 2024
478dc28
Merge branch 'main' into jigar/username-password
jigar-f Jun 17, 2024
8ad0522
Hide authflow from other platform but ios.
jigar-f Jun 17, 2024
6ff237d
Added legacy reseller checkout.
jigar-f Jun 17, 2024
fa48e77
Added internal header to track platform.
jigar-f Jun 17, 2024
eac51ea
Change VPN tab ui and disable ads.
jigar-f Jun 17, 2024
dcf3403
Uploaded build 7.5.16 to testflight.
jigar-f Jun 18, 2024
e3e4825
Show pro banner if user is not pro.
jigar-f Jun 18, 2024
c9b3775
Removed duplicates string and fix config issue.
jigar-f Jun 18, 2024
09f515b
Merge branch 'main' into jigar/username-password
jigar-f Jun 18, 2024
e590b65
Remove duplicated strings.
jigar-f Jun 18, 2024
748d6af
iOS Username and Password: Code Review Suggestions (#1101)
atavism Jun 18, 2024
3cccb7f
go mod tidy
atavism Jun 18, 2024
494f691
Remove scale widget for mobile ui.
jigar-f Jun 19, 2024
4adae43
Fixed connectivity warning issue.
jigar-f Jun 19, 2024
5890089
Updated flashlight and change debounceDuration for ios.
jigar-f Jun 20, 2024
95ae4cd
Uploaded 7.6.17 to testflight.
jigar-f Jun 20, 2024
ae1142a
Remove unused code.
jigar-f Jun 21, 2024
0db551c
fixed issue while reseller flow.
jigar-f Jun 21, 2024
f4df8a2
Pulled new translation.
jigar-f Jun 21, 2024
85acf91
Fixed issue on tx/config locale file not updating.
jigar-f Jun 21, 2024
d48218c
Uploaded 7.5.18 to testflight.
jigar-f Jun 21, 2024
4094e01
Fix languages mapping and pull translation.
jigar-f Jun 21, 2024
fa3bd16
merge latest
atavism Jun 22, 2024
22e34d6
merge latest
atavism Jun 22, 2024
ea2ed78
Merge branch 'main' into jigar/username-password
jigar-f Jun 24, 2024
7bc0a36
Fixed merged conflicts and updated some packages.
jigar-f Jun 24, 2024
95522be
Uploaded 7.5.19 to testflight.
jigar-f Jun 24, 2024
0b6802f
Hide datacap on ios.
jigar-f Jun 24, 2024
81d396e
Merge branch 'main' into jigar/username-password
jigar-f Jun 24, 2024
1a0406b
Fixed issue with authClient.
jigar-f Jun 24, 2024
f71e14f
fixed issue on report issue edit text.
jigar-f Jun 24, 2024
cb7ac5d
Ask for password while reseller flow.
jigar-f Jun 24, 2024
c58707a
Uploaded 7.5.20 to testflight.
jigar-f Jun 24, 2024
84cc1b7
increase checkInterval time.
jigar-f Jun 25, 2024
5059c44
Merge branch 'main' into jigar/username-password
jigar-f Jun 25, 2024
6e5bd02
Refactor Ad helper and do not load ads multiple times.
jigar-f Jun 25, 2024
c57459e
Update ad_helper.dart
jigar-f Jun 25, 2024
503e8c7
Deleted account when user click on verification.
jigar-f Jun 25, 2024
c0f74f2
Uploaded 7.5.21 to testflight.
jigar-f Jun 25, 2024
005eb76
Fixed issue with notifier not initialised.
jigar-f Jun 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@ liblantern_amd64.dylib
lib/generated_bindings.dart

*.env
ExportOptions.plist
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ lang_map = zh-Hant: zh-rHK, bn_IN: bn-rIN, bg_BG: bg-rBG, ku_IQ: ku-rIQ, pl_

[o:lantern-1:p:lantern:r:lantern-flutter]
file_filter = assets/locales/<lang>.po
source_file = assets/locales/en.po
source_file = assets/locales/en-us.po
source_lang = en_US
type = PO
minimum_perc = 80
Expand Down
28 changes: 25 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ internalsdk/protos/%.pb.go: protos_shared/%.proto
internalsdk/protos/vpn.pb.go: protos_shared/vpn.proto
@protoc --go_out=internalsdk protos_shared/vpn.proto

internalsdk/protos/auth.pb.go: protos_shared/auth.proto
@protoc --go_out=internalsdk protos_shared/auth.proto

# Compiles autorouter routes
routes: lib/core/router/router.gr.dart

Expand Down Expand Up @@ -134,7 +137,7 @@ SENTRY_AUTH_TOKEN=sntrys_eyJpYXQiOjE2OTgwNjIxMzguODAxMzE4LCJ1cmwiOiJodHRwczovL3N
SENTRY_ORG=getlantern
SENTRY_PROJECT_IOS=lantern-ios

DWARF_DSYM_FOLDER_PATH=$(shell pwd)/build/ios/Release-prod-iphoneos/Runner.app.dSYM
DWARF_DSYM_FOLDER_PATH=$(shell pwd)/build/ios/archive/Runner.xcarchive/dSYMs/
INFO_PLIST := ios/Runner/Info.plist

DESKTOP_LIB_NAME ?= liblantern
Expand Down Expand Up @@ -473,9 +476,13 @@ set-version:
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $$NEXT_BUILD" $(INFO_PLIST)


ios-release:set-version build-framework
ios-release:set-version build-release-framework
@echo "Flutter Clean..."
flutter clean
@echo "Flutter Pub get..."
flutter pub get
@echo "Creating the Flutter iOS build..."
flutter build ipa --flavor prod --release
flutter build ipa --flavor prod --release --export-options-plist ./ExportOptions.plist
@echo "Uploading debug symbols to Sentry..."
export SENTRY_LOG_LEVEL=info
sentry-cli --auth-token $(SENTRY_AUTH_TOKEN) upload-dif --include-sources --org $(SENTRY_ORG) --project $(SENTRY_PROJECT_IOS) $(DWARF_DSYM_FOLDER_PATH)
Expand Down Expand Up @@ -704,6 +711,21 @@ build-framework: assert-go-version install-gomobile
mkdir -p $(INTERNALSDK_FRAMEWORK_DIR)
mv ./$(INTERNALSDK_FRAMEWORK_NAME) $(INTERNALSDK_FRAMEWORK_DIR)/$(INTERNALSDK_FRAMEWORK_NAME)

build-release-framework: assert-go-version install-gomobile
@echo "Nuking $(INTERNALSDK_FRAMEWORK_DIR) and $(MINISQL_FRAMEWORK_DIR)"
rm -Rf $(INTERNALSDK_FRAMEWORK_DIR) $(MINISQL_FRAMEWORK_DIR)
@echo "generating Ios.xcFramework"
go env -w 'GOPRIVATE=github.com/getlantern/*' && \
gomobile init && \
gomobile bind -target=ios \
-tags='headless lantern ios netgo' \
-ldflags="$(LDFLAGS)" \
$(GOMOBILE_EXTRA_BUILD_FLAGS) \
github.com/getlantern/lantern-client/internalsdk github.com/getlantern/pathdb/testsupport github.com/getlantern/pathdb/minisql github.com/getlantern/lantern-client/internalsdk/ios
@echo "moving framework"
mkdir -p $(INTERNALSDK_FRAMEWORK_DIR)
mv ./$(INTERNALSDK_FRAMEWORK_NAME) $(INTERNALSDK_FRAMEWORK_DIR)/$(INTERNALSDK_FRAMEWORK_NAME)


install-gomobile:
@echo "installing gomobile" && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public String getFormattedPrice(Map<String, Long> price) {
return getFormattedPrice(price, false);
}

private String getFormattedPrice(Map<String, Long> price, boolean formatFloat) {
private String getFormattedPrice(Map<String, Long> price, boolean formatFloat) {
final String formattedPrice;
Long currencyPrice = price.get(currencyCode);
if (currencyPrice == null) {
Expand Down
21 changes: 21 additions & 0 deletions assets/images/add_account_ illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/images/empty_check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/images/eye.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/images/eye_cross.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/images/lock_filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/images/sign_in.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/images/sign_out.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/images/warning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading