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

Mike/signed commits cherry pick #231

Closed
wants to merge 231 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
ab4b973
initial code commit
mikemag-dev Nov 3, 2023
649f7a0
catchup
mike-dydx Nov 6, 2023
2a757ec
clean up and add animation
mike-dydx Nov 6, 2023
91998e8
Merge pull request #2 from dydxprotocol/mike/trcl-3095-orderbook-asks…
ruixhuang Nov 6, 2023
97c4e78
change details font color to match
mike-dydx Nov 6, 2023
0c60eb3
update PR template
mike-dydx Nov 6, 2023
697938a
[Draft] Clean up MarketInfo data and add SwiftLint action (#3)
ruixhuang Nov 6, 2023
9a7b506
Merge pull request #4 from dydxprotocol/mike/trcl-3055-market-differe…
johnqh Nov 6, 2023
41d0268
Add Swiftlint to git pre-commit (#6)
ruixhuang Nov 7, 2023
3f57660
stay on market screen after trade
mike-dydx Nov 7, 2023
3c5df75
Merge pull request #7 from dydxprotocol/mike/trcl-3052-after-placing-…
ruixhuang Nov 7, 2023
5ee77a5
Update all FE license file
johnqh Nov 7, 2023
4165c75
Load AppScheme from env.jsons and add scripts to update the info.plis…
ruixhuang Nov 7, 2023
74dcd24
Lint
ruixhuang Nov 7, 2023
5838842
TRCL-3132 TRCL-3182 Alignments changes, and removed some v3 items fro…
johnqh Nov 7, 2023
8900c4b
Merge pull request #8 from dydxprotocol/feature/TRCL-3132-Market-details
johnqh Nov 7, 2023
bd9c6ed
point to new cartera repo (#9)
mike-dydx Nov 7, 2023
b406047
Merge branch 'main' into features/app_scheme
ruixhuang Nov 7, 2023
762cc98
format good til as a time. do "-" if created at is unavailable
mike-dydx Nov 7, 2023
cb1f8aa
Fix
ruixhuang Nov 7, 2023
31ce344
Merge pull request #10 from dydxprotocol/features/app_scheme
johnqh Nov 8, 2023
fae4f0c
Fix build
ruixhuang Nov 8, 2023
4fe2907
address comment
mike-dydx Nov 8, 2023
d8992de
Merge pull request #11 from dydxprotocol/mike/trcl-2408-show-good-til…
johnqh Nov 8, 2023
cb926d3
Merge pull request #12 from dydxprotocol/features/fix_build
johnqh Nov 8, 2023
d5ae646
Bump Abacus and show transfer error message (#15)
ruixhuang Nov 9, 2023
a36f966
update app icon (#17)
mike-dydx Nov 10, 2023
eeadde7
Remove CryptoSwift Pod (#13)
ruixhuang Nov 10, 2023
ae85168
TRCL-3204 Update Abacus and v4-client (#18)
johnqh Nov 10, 2023
66a76a0
TRCL-2841 : Trading Network current value not shown on Settings (#19)
mike-dydx Nov 10, 2023
52b3739
Use the Info.plist scheme for router. And updated Abacus (#14)
johnqh Nov 10, 2023
e55f2a5
make portfolio selector sticky (#20)
mike-dydx Nov 10, 2023
cdf5299
Add FF settings to load custom deployment URL (#21)
ruixhuang Nov 10, 2023
61dd6da
update app icon (#22)
mike-dydx Nov 20, 2023
96ac793
Update amount from double to string (#24)
ruixhuang Nov 22, 2023
3b44ef3
TRCL-2984 : Create 3P Suggested Release Instructions doc (#23)
mike-dydx Nov 22, 2023
ca496e4
Bump Abacus and check for transferStatus.squidTransactionStatus. (#25)
ruixhuang Nov 22, 2023
0e75da9
Made layout consistent between orders and fills (#26)
ruixhuang Nov 27, 2023
07a8638
Localization update (#27)
ruixhuang Nov 27, 2023
d89fedb
Add CCTP under feature flag (#28)
ruixhuang Nov 28, 2023
0c6c212
update copyright & add disclaimer (#29)
mike-dydx Nov 28, 2023
dd059cf
TRCL-3098 : Add transfer entry point to profile page (#30)
mike-dydx Nov 29, 2023
5065f81
TRCL-3276 Fetch CCTP transfer status (#31)
ruixhuang Nov 29, 2023
1c64d3f
TRCL-3281 : Add transfer entry point to profile page pt 2 - UI Tweaks…
mike-dydx Dec 1, 2023
f72a1a9
reduce only view to show always, supports disabled state (#33)
mike-dydx Dec 1, 2023
d0c25b1
TRCL-2878 CCTP deposit integration (#34)
ruixhuang Dec 2, 2023
a7968aa
Mike/trcl 3314 trading rewards profile card (#36)
mike-dydx Dec 4, 2023
7610e76
Fix update view (#35)
ruixhuang Dec 4, 2023
d4f0561
TRCL-3317 : Trading Rewards Detail Screen Rewards Summary Card (#37)
mike-dydx Dec 5, 2023
0e5e1f9
TRCL-3318 : Trading Rewards Details Screen Help Card (#38)
mike-dydx Dec 6, 2023
b9fcb45
Fix the issue of release build not getting the feature flag values (#40)
ruixhuang Dec 7, 2023
937606f
TRCL-3319 : Trading Rewards Details Screen History Card (#41)
mike-dydx Dec 8, 2023
f24c836
add learn more cards to trading rewards screen (#42)
mike-dydx Dec 11, 2023
4a71194
TRCL-3316 : Trading Rewards Detail Screen Estimated Rewards Card (#43)
mike-dydx Dec 12, 2023
49f382f
Update .gitignore (#44)
mike-dydx Dec 15, 2023
b991ca5
TRCL-3415 CCTP Withdrawal (#45)
ruixhuang Dec 19, 2023
1055e91
Create config.yml (#47)
mike-dydx Dec 21, 2023
83b7845
add script to update v4-native-client.js (#48)
mike-dydx Dec 21, 2023
cb9fcfe
TRCL-3408 : Trading Rewards hook in real data (#46)
mike-dydx Jan 3, 2024
550e0b7
Bump Abacus (#49)
ruixhuang Jan 3, 2024
34336da
TRCL-3367 : Update Colors to Match Design (#39)
mike-dydx Jan 3, 2024
d337d49
remove governance and staking cards, replace strings (#50)
mike-dydx Jan 4, 2024
44a583c
TRCL-3370 Depth chart highlight, total cost was always $0 (#52)
johnqh Jan 10, 2024
bd9dc4e
TRCL-3441 : Add Tooltip to Rewards History (#51)
mike-dydx Jan 10, 2024
47bdc54
clean up settings files, remove trading network selector from standar…
mike-dydx Jan 11, 2024
6d41d4c
update workflows (#55)
mike-dydx Jan 12, 2024
0771cf7
bump abacus (#57)
mike-dydx Jan 19, 2024
fc83a2c
Remove cctp feature flag (#58)
ruixhuang Jan 20, 2024
ed00b21
Update v4-native-client.js (#59)
mike-dydx Jan 22, 2024
b5a3155
update client js from branch without cctp breaking changes (#60)
mike-dydx Jan 23, 2024
c3b7c23
Fee screen layout fix (#61)
johnqh Jan 24, 2024
530b780
Bump V4-client (#62)
ruixhuang Jan 24, 2024
dff7ce5
TRCL-3496 Reduce Profile->History tab height (#63)
ruixhuang Jan 24, 2024
6f314dd
Portfolio chart timeline has the selector defaults to 7d, but is disp…
ruixhuang Jan 24, 2024
fa68c62
default to sepolia chain id (#65)
mike-dydx Jan 24, 2024
969955e
TRCL-3513 Have price on the left for bids when show orderbook side by…
johnqh Jan 24, 2024
3eef716
update app scheme and bundle display name (#66)
mike-dydx Jan 24, 2024
ceda063
Feature/trcl 3501 reduce only post only (#69)
johnqh Jan 25, 2024
dd84902
Cleaned up order details (#71)
johnqh Jan 25, 2024
2000918
fix displaying "-$0" (#68)
mike-dydx Jan 25, 2024
ae97774
update abacus and v4-client (#72)
mike-dydx Jan 29, 2024
1633a24
use production firebase config only for app store installs (#74)
mike-dydx Jan 29, 2024
ed9d3ea
Safer check of .appStore vs .testFlight build, and enables TESTFLIGHT…
johnqh Jan 30, 2024
ecfeaf7
Feature/debug (#77)
johnqh Jan 30, 2024
4212177
add default icon for transfer search items (#78)
mike-dydx Jan 30, 2024
71204cf
remove setting default env (#79)
mike-dydx Jan 30, 2024
dd44a52
bump abacus to 1.3.6 (#80)
mike-dydx Jan 31, 2024
b548b64
MOB-88 : Scrolling Trades and then Tapping Orders Breaks Scroll (#81)
mike-dydx Feb 2, 2024
3f7355c
update bitrise config (#82)
mike-dydx Feb 4, 2024
c17d8ab
MOB-181 : Tap Orderbook Price to Set Limit Price (#83)
mike-dydx Feb 5, 2024
6343a8c
MOB-95 : Improve draft hide/show animation (#84)
mike-dydx Feb 6, 2024
d495cc2
MOB-94 : match signed number formatting to web (#86)
mike-dydx Feb 14, 2024
bd70ab4
Add color preference settings (#85)
ruixhuang Feb 15, 2024
37fea76
MOB-73 : Trading Rewards hook in real data pt 1 (non-chaos labs data)…
mike-dydx Feb 15, 2024
441c857
Add v4-web and template installation to bootstrap.sh (#88)
ruixhuang Feb 20, 2024
fd71c2a
bump abacus (#90)
mike-dydx Feb 20, 2024
0e5cb6e
bump abacus to 1.4.10 (#91)
mike-dydx Feb 20, 2024
f2ec889
update abacus protocol implementation to fix compilation (#93)
mike-dydx Feb 21, 2024
bc37b97
Update config.yml (#89)
mike-dydx Feb 21, 2024
89e67ae
SDWebImageSVGKitPlugin -> SDWebImageSVGCoder (#95)
mike-dydx Feb 21, 2024
cd408f1
MOB-250 : Add metric to track screenshot taken (#96)
mike-dydx Feb 22, 2024
048fb24
MOB-240 : Trading Rewards hook in real data pt 2 (launch incentives) …
mike-dydx Feb 22, 2024
48dc09b
fix trading rewards background image (#97)
mike-dydx Feb 27, 2024
92b4e03
MOB-252 : Add link to share app on profile screen (#98)
mike-dydx Feb 27, 2024
eca2585
collect feedback from settings menu (#99)
mike-dydx Feb 28, 2024
5b1ac4b
Update license (#100)
ruixhuang Feb 28, 2024
e5c5c81
MOB-299 : update `connectWallet` parameters to support memo field (#103)
mike-dydx Mar 5, 2024
cbef6d2
MOB-297: Fix total dydx amount not populated from Profile tab (#101)
ruixhuang Mar 5, 2024
ba826ff
MOB-242 : implement logic to display pre-prompt and then ask for app …
mike-dydx Mar 5, 2024
cb3038f
update app review pre-prompt to match design (#104)
mike-dydx Mar 6, 2024
5227096
Update README.md (#105)
ruixhuang Mar 6, 2024
8f9cc7d
add `screen_view` event for better firebase analytics integration (#106)
mike-dydx Mar 6, 2024
75b344e
MOB-309 : add additional logic to rate app flow where `requestReview`…
mike-dydx Mar 7, 2024
d1ef76e
MOB-295: Add iOS tooling scripts for UI testings (#56)
ruixhuang Mar 8, 2024
8246ea5
MOB-308: iOS: Handle deposit flow when user onboarded via Desktop Sca…
ruixhuang Mar 8, 2024
f94b887
update satoshi fonts to go from regular to medium (#109)
mike-dydx Mar 12, 2024
cd4a8ee
MOB-326 : update resources to use satoshi-medium instead of satoshi-r…
mike-dydx Mar 12, 2024
281de6b
MOB-328 Correlate x-request-id to correlate route requests from Squid…
ruixhuang Mar 13, 2024
5ab4e54
MOB-316 : Display markets list when market title is tapped on trade p…
mike-dydx Mar 14, 2024
ff72ee6
bump abacus (#113)
mike-dydx Mar 14, 2024
88ef1eb
MOB-346 : pre-select last selected market for trade input if no marke…
mike-dydx Mar 14, 2024
f207b60
MOB-333 Withdrawal error message "insufficient balance" but it seems …
ruixhuang Mar 14, 2024
dddc436
update classname to fix routing (#116)
mike-dydx Mar 15, 2024
e148e1e
abacus 1.6.5 -> 1.6.6 (#117)
mike-dydx Mar 15, 2024
5a5d113
add privacy info file per apple (#118)
mike-dydx Mar 15, 2024
4277ae4
Bump Abacus and link to system status (#119)
ruixhuang Mar 19, 2024
3e447e5
MOB-386 Fix Subaccount transfer for France (#121)
ruixhuang Mar 21, 2024
90acbe3
Feature/mob 353 abacus update (#120)
johnqh Mar 26, 2024
262ff67
MOB-409 Onboarding and transfer analytics (#122)
ruixhuang Mar 28, 2024
3610793
MOB-417 : add settings control to turn in-app notifications on/off co…
mike-dydx Mar 29, 2024
ae3b98c
bump to 1.6.23 (#125)
mike-dydx Mar 29, 2024
a71b2bc
add tp/sl button and screen stub (#126)
mike-dydx Apr 1, 2024
af40d53
MOB-102 : iOS: Update Withdraw Dialog for withdrawal limits (#123)
mike-dydx Apr 1, 2024
93d7678
add entry price and oracle price receipt area (#127)
mike-dydx Apr 1, 2024
fb05e3f
MOB-433 Remove FullStory (#128)
ruixhuang Apr 3, 2024
a857b94
bump abacus to 1.6.28 (#130)
mike-dydx Apr 3, 2024
d29ff03
MOB-427 : add TL/SL inputs to price triggers panel screen (#129)
mike-dydx Apr 4, 2024
06f111c
MOB-437 : add TL/SL inputs to price triggers panel screen (multiple o…
mike-dydx Apr 4, 2024
7dd15d0
Fix wrong localization key (#132)
ruixhuang Apr 8, 2024
49be4e0
Update settings.json (#133)
mike-dydx Apr 8, 2024
070d891
initialize settings dict with values (#135)
mike-dydx Apr 8, 2024
e76b86b
Update v4-native-client.js (#136)
ruixhuang Apr 8, 2024
419438e
bump 1.6.28 -> 1.6.36 (#137)
mike-dydx Apr 10, 2024
bd4f4e1
Mike/mob 428 add custom amount to price triggers screen (#134)
mike-dydx Apr 10, 2024
cd199ff
bump 1.6.36 -> 1.6.38 (#138)
mike-dydx Apr 10, 2024
215f12e
MOB-452 : add cta button to submit trades (#139)
mike-dydx Apr 12, 2024
b695fd9
bump abacus 1.6.38->1.6.41 (#141)
mike-dydx Apr 12, 2024
adc6ff5
Allow null ethereamAddress when starting up Abacus at launch. (#142)
ruixhuang Apr 12, 2024
cb8804c
MOB-428 : add custom amount to price triggers screen (#140)
mike-dydx Apr 12, 2024
7c3461d
MOB-429 : add limit price to price triggers screen (#144)
mike-dydx Apr 22, 2024
8416f07
bump to 1.6.43 (#146)
mike-dydx Apr 23, 2024
b7e7dfc
MOB-456 : integrate abacus validation error with button states (#145)
mike-dydx Apr 23, 2024
c6bb76e
MOB-431 : add TP/SL display to market screen (#147)
mike-dydx Apr 25, 2024
472449c
bump abacus 1.6.50 (#148)
mike-dydx Apr 26, 2024
f2ac38f
MOB-461 : TP/SL cleanup & testing (#149)
mike-dydx Apr 29, 2024
e844a95
Bump Abacus (#150)
ruixhuang Apr 30, 2024
d34deae
MOB-465 Integrate Abacus changes for trigger order notification (#151)
ruixhuang Apr 30, 2024
96bcfbe
bump to 1.6.55 (#153)
mike-dydx May 2, 2024
af14fc9
MOB-467 : Wait for submission to complete before dismissing (#152)
mike-dydx May 3, 2024
e7820b8
handle new compliance statuses (#154)
mike-dydx May 3, 2024
08b361b
SL/TP clean up (#155)
mike-dydx May 3, 2024
b6cac06
MOB-330: Upgrade SDWebImageSwiftUI pod (#156)
ruixhuang May 6, 2024
5587879
MOB-395 Modify position cell to indicate whether it is cross or isol…
ruixhuang May 7, 2024
a4884ce
Bump Abacus and v4-client (#159)
ruixhuang May 8, 2024
e71311a
MOB-483 Add isolated / cross margin mode button, Add target leverage …
ruixhuang May 8, 2024
4b81b9e
MOB-357 Margin Mode Selection Screen (#160)
ruixhuang May 9, 2024
11f8ba8
MOB-359 Target Leverage Selection Screen (#161)
ruixhuang May 9, 2024
e223419
MOB-493 iOS - Adjust margin screen for isolated margin UI (#162)
ruixhuang May 10, 2024
27ca752
remove `if DEBUG` check for sltp functionality, use abacus feature fl…
mike-dydx May 13, 2024
27b6f6c
Bump Abacus and v4-client (#164)
ruixhuang May 13, 2024
6bba9de
fix value formatting and UI layout bug (#165)
mike-dydx May 14, 2024
7da6605
Bump Abacus (#166)
ruixhuang May 14, 2024
500f3bc
MOB-486 iOS: Log error into Crashlytics (#167)
ruixhuang May 14, 2024
5a57fd1
bump to 1.7.18 (#168)
mike-dydx May 15, 2024
8ef5c01
analyticsv2 PoC (#169)
mike-dydx May 21, 2024
53c395a
add footer support, add coming soon copy (#170)
mike-dydx May 24, 2024
788ab98
bump to 1.7.32 (#171)
mike-dydx May 28, 2024
13ea50a
resolve build issue (#172)
mike-dydx May 29, 2024
089b0cf
pipe in expiresAt and support email (#173)
mike-dydx May 29, 2024
2f29178
fix platform list footer display logic (#174)
mike-dydx May 29, 2024
d233370
Update Abacus.podspec (#176)
mike-dydx May 29, 2024
cbfc5b6
Bump v4-client to 1.1.15 (#177)
prashanDYDX May 30, 2024
caa0dac
Update v4-clients to 1.1.16 (#178)
prashanDYDX May 31, 2024
d98f671
bump abacus to 1.7.47 (#179)
mike-dydx Jun 3, 2024
8f4933a
isolated markets integration pt. 1 (#175)
mike-dydx Jun 4, 2024
ca7e4ea
revert firebase version change (#180)
mike-dydx Jun 4, 2024
34dca4c
update pods
mike-dydx Jun 5, 2024
3c20de6
ensure `enable_app_rating` defaults to true if feature flags do not w…
mike-dydx Jun 5, 2024
da7616e
Revert "update pods"
mike-dydx Jun 5, 2024
983b009
Revert "ensure `enable_app_rating` defaults to true if feature flags …
mike-dydx Jun 5, 2024
3ecd6ec
fix app launch hang up (#183)
mike-dydx Jun 5, 2024
4fce259
add memo warning to transfer input (#181)
mike-dydx Jun 5, 2024
2544920
conditionally display warning for non-usdc (#184)
mike-dydx Jun 5, 2024
6177b11
do not render svgs (#185)
mike-dydx Jun 6, 2024
37a6ad0
isolated markets integration pt. 2 (#187)
mike-dydx Jun 7, 2024
9e4e5df
Bump Abacus and v4-client (#188)
ruixhuang Jun 11, 2024
b1b99b7
MOB-544 Add preference setting for gas payment type (#189)
ruixhuang Jun 11, 2024
3503756
isolated markets integration pt3 (#190)
mike-dydx Jun 12, 2024
2c17f5c
unopened isolated positions pt1 (#191)
mike-dydx Jun 17, 2024
d978c8e
remove isolated markets feature flag (#192)
mike-dydx Jun 18, 2024
d968362
unopened isolated positions pt2 - cancel flow (#195)
mike-dydx Jun 19, 2024
d3ad781
unopened isolated positions pt2 follow up - empty state (#197)
mike-dydx Jun 19, 2024
5be28e8
Remove gas option from settings for release build (#198)
ruixhuang Jun 21, 2024
a062a8b
edit margin from market view (#200)
mike-dydx Jun 24, 2024
170a944
add new receipt lines (#199)
mike-dydx Jun 25, 2024
6ad1142
MOB-573 & MOB-586 : ISO Bug - iOS: On Position Cards, show dollar amo…
mike-dydx Jun 26, 2024
8616a9b
isolated position testing follow-ups (#202)
mike-dydx Jun 28, 2024
95d734f
final isolated markets tweaks (#204)
mike-dydx Jun 28, 2024
6207dc0
handle short position case for displaying liquidation price, live-upd…
mike-dydx Jul 1, 2024
5545df6
MOB-601 : Position Card Updates (#206)
mike-dydx Jul 2, 2024
5a1c2db
bump abacus to 1.8.20 (#207)
mike-dydx Jul 2, 2024
7f0299e
fix cancel orders bug when orders cancellations fail (#208)
mike-dydx Jul 2, 2024
d65a8e8
Update dydxMarketInfoViewBuilder.swift (#209)
mike-dydx Jul 3, 2024
f69bad3
bump abacus to 1.8.35 (#211)
mike-dydx Jul 11, 2024
96e4059
Turn on Skip (#212)
mike-dydx Jul 18, 2024
b302fcc
fix skip mutli-tx withdrawal (#214)
mike-dydx Jul 24, 2024
caf125e
add slider to target leverage screen (#213)
mike-dydx Jul 25, 2024
a7a0674
Bump Abacus and v4-client (#216)
ruixhuang Jul 26, 2024
cb50b43
integrate statsig (#215)
mike-dydx Jul 27, 2024
da1c46e
Update subaccount transfer threshold to 0.5 (#217)
ruixhuang Jul 29, 2024
ff5f5d4
default skip on, persist feature flags through session (#218)
mike-dydx Jul 29, 2024
83e4e57
Swap out incentives blog link (#219)
prashanDYDX Aug 1, 2024
5182b42
vault landing (#220)
mike-dydx Aug 2, 2024
db70dda
CLI-627: vault landing screen graph (#221)
mike-dydx Aug 8, 2024
4112e86
bump abacus (#224)
mike-dydx Aug 8, 2024
718edbf
CLI-638: prediction markets UI (#222)
mike-dydx Aug 9, 2024
f3b17ea
return optional feature flag value so default works (#225)
mike-dydx Aug 9, 2024
98cee88
dump feature flags to user properties (#223)
mike-dydx Aug 9, 2024
81dbc07
CLI-638: iOS prediction markets UI (#226)
mike-dydx Aug 13, 2024
5ac7ce3
CLI-641: USDC sweep into subaccount does not work for fresh address (…
mike-dydx Aug 13, 2024
34e62f4
display id updates, abacus -> 1.8.90 (#229)
mike-dydx Aug 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
26 changes: 26 additions & 0 deletions .github/workflows/SwiftLint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: SwiftLint on Changed Files

on:
pull_request:
paths:
- '**/*.swift'

jobs:
swiftlint:
runs-on: macos-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install SwiftLint
run: |
brew install swiftlint

- name: Lint Modified Swift Files
run: |
# Fetch changes from the base branch of the pull request
git fetch origin ${{ github.base_ref }}
# Use git diff to find changed Swift files, then lint each file with SwiftLint
git diff --name-only origin/${{ github.base_ref }} | grep '\.swift$' | xargs swiftlint --config dydx/.swiftlint.yml --fix lint

20 changes: 19 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,25 @@
dydx/fastlane
dydx/Pods/abacus/.gradle
dydx/Pods/abacus/build
dydx/Pods/Abacus
dydxV4/dydxV4/_Configurations/credentials.json
dydxV4/dydxV4/_Configurations/GoogleService-Info-Staging.plist
dydxV4/dydxV4/_Configurations/GoogleService-Info.plist
scripts/secrets
scripts/secrets
scripts/percy_test.sh

# fastlane specific
**/fastlane/report.xml

# deliver temporary files
**/fastlane/Preview.html

# scan temporary files
**/fastlane/test_output

*.p12
*.certSigningRequest
*.cer
*.mobileprovision
*.ipa
*.dSYM.*
937 changes: 937 additions & 0 deletions AmplitudeInjections/AmplitudeInjections.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ``AmplitudeInjections``

<!--@START_MENU_TOKEN@-->Summary<!--@END_MENU_TOKEN@-->

## Overview

<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@-->

## Topics

### <!--@START_MENU_TOKEN@-->Group<!--@END_MENU_TOKEN@-->

- <!--@START_MENU_TOKEN@-->``Symbol``<!--@END_MENU_TOKEN@-->
18 changes: 18 additions & 0 deletions AmplitudeInjections/AmplitudeInjections/AmplitudeInjections.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// AmplitudeInjections.h
// AmplitudeInjections
//
// Created by John Huang on 4/19/22.
//

#import <Foundation/Foundation.h>

//! Project version number for AmplitudeInjections.
FOUNDATION_EXPORT double AmplitudeInjectionsVersionNumber;

//! Project version string for AmplitudeInjections.
FOUNDATION_EXPORT const unsigned char AmplitudeInjectionsVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <AmplitudeInjections/PublicHeader.h>


Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
//
// AmplitudeTracking.swift
// AmplitudeInjections
//
// Created by John Huang on 4/19/22.
//

import AmplitudeSwift
import PlatformParticles
import Utilities

open class AmplitudeTracking: TransformerTracker {

private let amplitude: Amplitude

public init(_ apiKey: String) {
self.amplitude = Amplitude.init(configuration: .init(apiKey: apiKey))
super.init()
}

override open func log(event: String, data: [String: Any]?, revenue: NSNumber?) {
if !excluded {
var data = data
if let revenue = revenue {
if data == nil {
data = [String: Any]()
}
data?["$revenue"] = revenue
}
Console.shared.log("analytics log | Amplitude: logging event \(event) with data: \((data ?? [:]).description)")
let event = BaseEvent(eventType: event, eventProperties: data)
amplitude.track(event: event)
}
}

override public func setUserId(_ userId: String?) {
Console.shared.log("analytics log | Amplitude: User ID set to: `\(userId ?? "nil")`")
amplitude.setUserId(userId: userId)
}

// https://amplitude.com/docs/sdks/analytics/ios/ios-swift-sdk#identify
override public func setValue(_ value: Any?, forUserProperty userProperty: String) {
Console.shared.log("analytics log | Amplitude: User Property `\(userProperty)` set to: \(value ?? "nil")")
let identify = Identify()
if value != nil {
identify.set(property: userProperty, value: value)
} else {
identify.unset(property: userProperty)
}
amplitude.identify(identify: identify)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//
// AmplitudeInjectionsTests.swift
// AmplitudeInjectionsTests
//
// Created by John Huang on 4/19/22.
//

import XCTest
@testable import AmplitudeInjections

class AmplitudeInjectionsTests: XCTestCase {

override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
}

override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}

func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
// Any test you write for XCTest can be annotated as throws and async.
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
}

func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}

}
Loading
Loading