forked from hideokamoto/stripe-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to SVGs, adopt latest assets (stripe#2977)
## Summary * Migrated payments frameworks from @3x pngs to asset catalogs * Used SVGs/PDFs where possible, created new @2x/@1x representations if source vectors were not available * Removed some hacks we had in place for dark mode asset support, as this is now handled by the system * Bumped swift-tools-version to fix a bug with resource handling. Migrated StripeCardScan models to copy `mlmodelc` files, as the newer toolset flatten the hierarchy of the files contained in the mlmodelcs. ## Motivation Easier for designers and engineers, enables support for visionOS and future platforms. ## Testing CI, updated existing snapshot tests and checked with Kaleidoscope - [x] Manually check example Cocoapods app - [x] Manually check example Carthage app - [x] Manually check example SPM app ## Changelog Added
- Loading branch information
1 parent
efeb1ac
commit ceedf66
Showing
819 changed files
with
3,046 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
Stripe/StripeiOS/Resources/StripeiOS.xcassets/Cards/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...tripeiOS/Resources/StripeiOS.xcassets/Cards/stp_card_form_amex_cvc.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_card_form_amex_cvc.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.75 KB
...peiOS.xcassets/Cards/stp_card_form_amex_cvc.imageset/stp_card_form_amex_cvc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.91 KB
...OS.xcassets/Cards/stp_card_form_amex_cvc.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
23 changes: 23 additions & 0 deletions
23
...pe/StripeiOS/Resources/StripeiOS.xcassets/Cards/stp_card_form_back.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_card_form_back.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.9 KB
...ces/StripeiOS.xcassets/Cards/stp_card_form_back.imageset/stp_card_form_back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.96 KB
.../StripeiOS.xcassets/Cards/stp_card_form_back.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
23 changes: 23 additions & 0 deletions
23
...e/StripeiOS/Resources/StripeiOS.xcassets/Cards/stp_card_form_front.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_card_form_front.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+964 Bytes
...s/StripeiOS.xcassets/Cards/stp_card_form_front.imageset/stp_card_form_front.png
Oops, something went wrong.
Binary file added
BIN
+2.37 KB
...tripeiOS.xcassets/Cards/stp_card_form_front.imageset/[email protected]
Oops, something went wrong.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
Stripe/StripeiOS/Resources/StripeiOS.xcassets/FPX/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...StripeiOS/Resources/StripeiOS.xcassets/FPX/stp_bank_fpx_affin_bank.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_bank_fpx_affin_bank.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+627 Bytes
...peiOS.xcassets/FPX/stp_bank_fpx_affin_bank.imageset/stp_bank_fpx_affin_bank.png
Oops, something went wrong.
Binary file added
BIN
+1.21 KB
...OS.xcassets/FPX/stp_bank_fpx_affin_bank.imageset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+1.83 KB
...OS.xcassets/FPX/stp_bank_fpx_affin_bank.imageset/[email protected]
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...ipeiOS/Resources/StripeiOS.xcassets/FPX/stp_bank_fpx_alliance_bank.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_bank_fpx_alliance_bank.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+514 Bytes
...xcassets/FPX/stp_bank_fpx_alliance_bank.imageset/stp_bank_fpx_alliance_bank.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
Stripe/StripeiOS/Resources/StripeiOS.xcassets/FPX/stp_bank_fpx_ambank.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_bank_fpx_ambank.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+585 Bytes
...ces/StripeiOS.xcassets/FPX/stp_bank_fpx_ambank.imageset/stp_bank_fpx_ambank.png
Oops, something went wrong.
Binary file added
BIN
+1.07 KB
.../StripeiOS.xcassets/FPX/stp_bank_fpx_ambank.imageset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+1.6 KB
.../StripeiOS.xcassets/FPX/stp_bank_fpx_ambank.imageset/[email protected]
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...StripeiOS/Resources/StripeiOS.xcassets/FPX/stp_bank_fpx_bank_islam.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_bank_fpx_bank_islam.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+463 Bytes
...peiOS.xcassets/FPX/stp_bank_fpx_bank_islam.imageset/stp_bank_fpx_bank_islam.png
Oops, something went wrong.
Binary file added
BIN
+992 Bytes
...OS.xcassets/FPX/stp_bank_fpx_bank_islam.imageset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+1.45 KB
...OS.xcassets/FPX/stp_bank_fpx_bank_islam.imageset/[email protected]
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...ipeiOS/Resources/StripeiOS.xcassets/FPX/stp_bank_fpx_bank_muamalat.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_bank_fpx_bank_muamalat.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+718 Bytes
...xcassets/FPX/stp_bank_fpx_bank_muamalat.imageset/stp_bank_fpx_bank_muamalat.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...tripeiOS/Resources/StripeiOS.xcassets/FPX/stp_bank_fpx_bank_rakyat.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_bank_fpx_bank_rakyat.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+595 Bytes
...iOS.xcassets/FPX/stp_bank_fpx_bank_rakyat.imageset/stp_bank_fpx_bank_rakyat.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
Stripe/StripeiOS/Resources/StripeiOS.xcassets/FPX/stp_bank_fpx_bsn.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_bank_fpx_bsn.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+885 Bytes
...Resources/StripeiOS.xcassets/FPX/stp_bank_fpx_bsn.imageset/stp_bank_fpx_bsn.png
Oops, something went wrong.
Binary file added
BIN
+1.83 KB
...ources/StripeiOS.xcassets/FPX/stp_bank_fpx_bsn.imageset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+2.18 KB
...ources/StripeiOS.xcassets/FPX/stp_bank_fpx_bsn.imageset/[email protected]
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
Stripe/StripeiOS/Resources/StripeiOS.xcassets/FPX/stp_bank_fpx_cimb.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_bank_fpx_cimb.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+305 Bytes
...sources/StripeiOS.xcassets/FPX/stp_bank_fpx_cimb.imageset/stp_bank_fpx_cimb.png
Oops, something went wrong.
Binary file added
BIN
+462 Bytes
...rces/StripeiOS.xcassets/FPX/stp_bank_fpx_cimb.imageset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+622 Bytes
...rces/StripeiOS.xcassets/FPX/stp_bank_fpx_cimb.imageset/[email protected]
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...eiOS/Resources/StripeiOS.xcassets/FPX/stp_bank_fpx_hong_leong_bank.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "stp_bank_fpx_hong_leong_bank.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+923 Bytes
...sets/FPX/stp_bank_fpx_hong_leong_bank.imageset/stp_bank_fpx_hong_leong_bank.png
Oops, something went wrong.
Oops, something went wrong.
File renamed without changes
Oops, something went wrong.