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

Expose the current card brand in CardFormView, CardInputWidget, and CardMultiLineWidget #5238

Merged
merged 3 commits into from Jun 30, 2022

Conversation

skyler-stripe
Copy link
Contributor

Summary

  • Exposes the current card brand based on the user's inputs in our Card UIs.

Motivation

Testing

  • Added tests
  • Modified tests
  • Manually verified

Changelog

  • added !

@skyler-stripe skyler-stripe self-assigned this Jun 30, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jun 30, 2022

Diffuse output:

OLD: paymentsheet-example-release-master.apk (signature: none)
NEW: paymentsheet-example-release-pr.apk (signature: none)

          │           compressed           │         uncompressed          
          ├───────────┬───────────┬────────┼───────────┬───────────┬───────
 APK      │ old       │ new       │ diff   │ old       │ new       │ diff  
──────────┼───────────┼───────────┼────────┼───────────┼───────────┼───────
      dex │  14.9 MiB │  14.9 MiB │ -285 B │  50.4 MiB │  50.4 MiB │ -76 B 
     arsc │   1.7 MiB │   1.7 MiB │    0 B │   1.7 MiB │   1.7 MiB │   0 B 
 manifest │   3.6 KiB │   3.6 KiB │    0 B │  16.7 KiB │  16.7 KiB │   0 B 
      res │ 819.9 KiB │ 819.9 KiB │    0 B │   1.3 MiB │   1.3 MiB │   0 B 
   native │   2.5 MiB │   2.5 MiB │    0 B │   5.9 MiB │   5.9 MiB │   0 B 
    asset │     3 MiB │     3 MiB │   +3 B │     3 MiB │     3 MiB │  +3 B 
    other │  80.5 KiB │  80.5 KiB │    0 B │ 155.1 KiB │ 155.1 KiB │   0 B 
──────────┼───────────┼───────────┼────────┼───────────┼───────────┼───────
    total │    23 MiB │    23 MiB │ -282 B │  62.4 MiB │  62.4 MiB │ -73 B 

         │          raw           │             unique             
         ├────────┬────────┬──────┼────────┬────────┬──────────────
 DEX     │ old    │ new    │ diff │ old    │ new    │ diff         
─────────┼────────┼────────┼──────┼────────┼────────┼──────────────
   files │      4 │      4 │    0 │        │        │              
 strings │ 236535 │ 236534 │   -1 │ 208137 │ 208136 │ -1 (+20 -21) 
   types │  41718 │  41718 │    0 │  38640 │  38640 │  0 (+0 -0)   
 classes │  35950 │  35950 │    0 │  35950 │  35950 │  0 (+0 -0)   
 methods │ 211845 │ 211844 │   -1 │ 204785 │ 204784 │ -1 (+1 -2)   
  fields │ 155874 │ 155874 │    0 │ 155134 │ 155134 │  0 (+0 -0)   

 ARSC    │ old  │ new  │ diff 
─────────┼──────┼──────┼──────
 configs │  292 │  292 │  0   
 entries │ 5795 │ 5795 │  0
APK
    compressed    │  uncompressed   │                               
─────────┬────────┼─────────┬───────┤                               
 size    │ diff   │ size    │ diff  │ path                          
─────────┼────────┼─────────┼───────┼───────────────────────────────
 2.6 MiB │ -285 B │ 8.5 MiB │ -76 B │ ∆ classes3.dex                
 7.9 KiB │   +3 B │ 7.8 KiB │  +3 B │ ∆ assets/dexopt/baseline.prof 
─────────┼────────┼─────────┼───────┼───────────────────────────────
 2.6 MiB │ -282 B │ 8.5 MiB │ -73 B │ (total)
DEX
STRINGS:

   old    │ new    │ diff         
  ────────┼────────┼──────────────
   208137 │ 208136 │ -1 (+20 -21) 
  + ��
  ���
  ���
  ���
  
  ���
  
  ���
  
  ���
  ���
  ��
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  
  ���
  ���
  ���
  
  ���
  ���
  ���
  
  ���
  ���
  
  �� 
  ���
  ���
  
  ���
  ���
  ���
  ���
  ���
  ��	
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ��#
  ��
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���*�(��� Ý�2�0�2�0�:�Ù�Ú�Û�Ü�Ý�Þ�ß�à�á�â�ã�ä�å�æ�B%��������0��
  ��������0���������0�¢���	J������0��2�������0�H�J
  �����0��H�J������032������0�H�¢�����J������0�2������032������0H�J��������0��2������0�2��E��0�H�J������0��2�������0�H�J	�����0VH�J	� ���0VH�J
  �¡���0��H�J��¢���0V2��£���0¤�H�J7�¥���0��2��¦���0V2��§���0�2��¨���0�2��©���0�2��ª���0�H�J��«���0��2��¬���0­�H�J
  �®���0­�H�J
  �¯���0��H�J
  �°���0��H�J��±���0��2��²���03H�J��³���0��2	�´�����0�H�J��µ���0��2	�¶�����03H�J��·���0��2
  �¸�����0¹�H�J��º���0��2	�»�����0&H�J��¼���0��2	�½�����03H�J��¾���0��2	�¿�����03J��À���0��2
  �Á�����0¹�H�J��Â���0��2������0VH�J �Ã���0��2	���Ä���0�2	���Å���0�H�J��Æ���0��2
  �Ç�����0¹�H�J��È���0��2	�É�����03H¢���Ê�J��Ë���0��2
  �Ì�����0¹�H�J��Í���0��2��Î��	����0Ï�0-H�J
  ����0��H�J&����0��2�����0�2�����0�2�����0�H�J
  �Ö���0��H�J,�×���0��2��U��0V2����H��0�2����E��0�H�¢���Ø�R��
  ������00�X��¢��
  R��
  ����0�8BX��¢��������R�����0�8F¢��������R�����0�X��¢��
  ������R�������0�X��¢��
  R�����0�X��¢��
  ������R�����0 X��¢��
  R��!����08VX��¢�����#�_R��%����0&X��¢��
  R��'��0(X��¢��
  ��)R��*��0+X��¢��
  R �,������00-8@X��¢����.�/���0�1R��2����03X��¢��
  R��4����058BX��¢�����6�7R��8��09X��¢��
  ���:�;R��<��0 X��¢��
  R��=��038BX��¢�����>�?R��@��0AX��¢��
  ���B�CR��D��0 X��¢��
  R��E��0�8BX��¢�����F�GR��H��0�8BX��¢�����I�GR �J������0�0KX��¢��
  ���L�M��N�OR��P��03X��¢��
  R��Q������0R0�8BX��¢�����S�TR��U��0VX��¢��
  ���W�X��Y�ZR��[��0VX��¢��
  R��\��0]X��¢��
  ���^�_���aR��b����0c8VX��¢�����d�eR��f����0g8VX��¢�����h�iR��j��038BX��¢�����k�?R��l��0mX��¢��
  ���n�oR��p��0qX��¢��
  ���r�sR+�u��0V2��t��0V8F@FX���¢��
  ��x�y���v�X��w�ZR+�z��0V2��t��0V8F@FX���¢��
  ��}�y���{�X��|�ZR��~��0 X��¢�	
  �������R��������038BX��¢��������?R&����	����00��8X��¢��
  ������/������TR1�����0V2������0V8@BX��¢��
  ������/������X�����ZR/�����0V2��t��0V8F@FX���¢��
  �����y������X�����ZR������0��X��¢��
  ¨�ç�
  + Á�
  ���
  ���
  
  ���
  
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  
  ���
  
  ���
  ���
  ���
  
  ���
  ���
  
  ���
  
  ���
  
  ��%
  ���
  ���
  
  ��
  ���
  ���
  ���
  ���
  
  ���
  
  ���
  
  ���
  
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���*����� Q2�0�:�QRB%��������0��
  ��������0���������0�¢����J��:��0;H�J��<��0;H�J��=��0>H�J��?��0;2��@��0'2��A����0(H�J��B��0;2��C����0DH�J��E��0DH�J��F��0;2��G����0�J��H��0;2��I��0>H�J��J��0;H�J��K��0;H�J��L��0;H�J��M��0;2��A����0(H�J��N��0;2��O����0PH�R��	������0�0
  8BX��¢������
  R�����0�8F¢��������R�����0�X��¢��
  R�����0�X��¢��
  R�������0�8F¢��������R�������0�X��¢��
  R�����0�X��¢��
  ���R�����0 X��¢��
  R��!��0X��¢��
  R��#��0_X��¢��
  R��%������0'������0(0&X��¢��
  R��)������0'0*8BX��¢�����+�,R��-�
   /*���0.0.X��¢��
  R��0��01X��¢��
  R��2��03X��¢��
  R��4��05X��¢��
  R��6��07X��¢��
  R��8��09X��¢��
  ¨�S
  + ù�
  ���
  ���
  ���
  
  ���
  
  ���
  
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ��
  ���
  ���
  ��
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  �� 
  ���
  ���
  ���
  ���
  
  ���
  ���
  ���
  ��%*�7��� �2�0�2�0�:����B/��������0��
  ��������0���������0������	��0
  ¢����J������0��2��	��0
  H�J������0��2�������0�H�J
  �����0��H�J
  �����0��H�J
  �����0��H�J
  �����0��H�J
  �����0��H�J��a��0
  H�J	�����0
  H�J
  � ���0��H�J��¡���0��2��¢���0
  H�J��£���0��2	�¤�����0kH�J��¥���0��2��¦���0:H�J��§���0��2	�¨�����0 H�J��©���0��2	�ª�����0:H�J��«���0��2��¨���0%H�J��¬���0��2
  �­�����0®�H�J��¯���0��2	�°�����05H�J��±���0��2	�²�����0:H�J��³���0��2��¨���0%H�J��´���0��2	�µ�����0�H�¢���TJ��¶���0��2	�·�����0:J��¸���0��2
  �¹�����0®�H�J��º���0��2	�»�����0:H�J��¼���0��2��½���0
  H�J��¾���0��2��¨���0%H�J��¿���0��2����µ�����0�H�¢���TJ �À���0��2	���Á���0�2	���Â���0�H�J��Ã���0��2
  ��
...✂

@skyler-stripe skyler-stripe merged commit 4d84dd4 into master Jun 30, 2022
@skyler-stripe skyler-stripe deleted the exposeBrands branch June 30, 2022 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants