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

[Identity] Support test mode M0 #6536

Merged
merged 13 commits into from
Apr 17, 2023
Merged

[Identity] Support test mode M0 #6536

merged 13 commits into from
Apr 17, 2023

Conversation

ccen-stripe
Copy link
Contributor

@ccen-stripe ccen-stripe commented Apr 13, 2023

Summary

Add a Debug screen to terminate SDK flow or proceed as usual

See similar iOS change: stripe/stripe-ios#2493

Motivation

Add test mode for mobile SDK

Testing

  • Added tests
  • Modified tests
  • Manually verified

Screenshots

7f0515c6-e717-42a5-9d27-2430db7dc489

Changelog

  • [Added] Added test mode for the SDK.

@ccen-stripe ccen-stripe requested review from a team as code owners April 13, 2023 20:15
@ccen-stripe ccen-stripe requested review from tillh-stripe and removed request for a team April 13, 2023 20:15
@ccen-stripe
Copy link
Contributor Author

cc @stripe/stripe-identity-observers

@github-actions
Copy link
Contributor

github-actions bot commented Apr 13, 2023

Diffuse output:

OLD: identity-example-release-base.apk (signature: V1, V2)
NEW: identity-example-release-pr.apk (signature: V1, V2)

          │            compressed             │           uncompressed            
          ├───────────┬───────────┬───────────┼───────────┬───────────┬───────────
 APK      │ old       │ new       │ diff      │ old       │ new       │ diff      
──────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────
      dex │   1.8 MiB │   1.8 MiB │  +2.9 KiB │   3.8 MiB │   3.8 MiB │  +5.7 KiB 
     arsc │   1.3 MiB │   1.3 MiB │  +8.7 KiB │   1.3 MiB │   1.3 MiB │  +8.7 KiB 
 manifest │   2.2 KiB │   2.2 KiB │       0 B │   7.9 KiB │   7.9 KiB │       0 B 
      res │ 338.1 KiB │ 338.1 KiB │      -3 B │ 467.5 KiB │ 467.5 KiB │       0 B 
   native │   6.2 MiB │   6.2 MiB │       0 B │  15.8 MiB │  15.8 MiB │       0 B 
    asset │  67.3 KiB │  67.4 KiB │     +13 B │  87.3 KiB │  87.3 KiB │     +13 B 
    other │ 110.3 KiB │ 110.3 KiB │     -20 B │ 250.9 KiB │ 250.9 KiB │       0 B 
──────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────
    total │   9.8 MiB │   9.8 MiB │ +11.7 KiB │  21.7 MiB │  21.7 MiB │ +14.5 KiB 

 DEX     │ old   │ new   │ diff              
─────────┼───────┼───────┼───────────────────
   files │     1 │     1 │   0               
 strings │ 19213 │ 19238 │ +25 (+217 -192)   
   types │  5979 │  5983 │  +4 (+195 -191)   
 classes │  4860 │  4864 │  +4 (+174 -170)   
 methods │ 29739 │ 29754 │ +15 (+6125 -6110) 
  fields │ 16579 │ 16599 │ +20 (+2140 -2120) 

 ARSC    │ old  │ new  │ diff         
─────────┼──────┼──────┼──────────────
 configs │  258 │  258 │   0          
 entries │ 5112 │ 5130 │ +18 (+18 -0)
APK
      compressed      │     uncompressed      │                                
──────────┬───────────┼───────────┬───────────┤                                
 size     │ diff      │ size      │ diff      │ path                           
──────────┼───────────┼───────────┼───────────┼────────────────────────────────
  1.3 MiB │  +8.7 KiB │   1.3 MiB │  +8.7 KiB │ ∆ resources.arsc               
  1.8 MiB │  +2.9 KiB │   3.8 MiB │  +5.7 KiB │ ∆ classes.dex                  
 30.7 KiB │     -20 B │ 108.8 KiB │       0 B │ ∆ META-INF/MANIFEST.MF         
  5.6 KiB │     +19 B │   5.5 KiB │     +19 B │ ∆ assets/dexopt/baseline.prof  
    670 B │      -6 B │     538 B │      -6 B │ ∆ assets/dexopt/baseline.profm 
    349 B │      -2 B │     524 B │       0 B │ ∆ res/8E.xml                   
 47.5 KiB │      -2 B │ 108.8 KiB │       0 B │ ∆ META-INF/CERT.SF             
  1.2 KiB │      +2 B │   1.2 KiB │       0 B │ ∆ META-INF/CERT.RSA            
    407 B │      +1 B │     592 B │       0 B │ ∆ res/0N.xml                   
    378 B │      -1 B │     724 B │       0 B │ ∆ res/3n.xml                   
    442 B │      +1 B │     744 B │       0 B │ ∆ res/4F.xml                   
    351 B │      -1 B │     524 B │       0 B │ ∆ res/Ah.xml                   
    636 B │      +1 B │   1.2 KiB │       0 B │ ∆ res/Am.xml                   
    600 B │      +1 B │   1.1 KiB │       0 B │ ∆ res/MP1.xml                  
    532 B │      -1 B │     984 B │       0 B │ ∆ res/WT.xml                   
    407 B │      +1 B │     592 B │       0 B │ ∆ res/iV.xml                   
  1.1 KiB │      -1 B │   2.7 KiB │       0 B │ ∆ res/j9.xml                   
    378 B │      -1 B │     724 B │       0 B │ ∆ res/m8.xml                   
    378 B │      -1 B │     724 B │       0 B │ ∆ res/mX.xml                   
    376 B │      +1 B │     540 B │       0 B │ ∆ res/ue.xml                   
    379 B │      -1 B │     724 B │       0 B │ ∆ res/w2.xml                   
──────────┼───────────┼───────────┼───────────┼────────────────────────────────
  3.2 MiB │ +11.7 KiB │   5.4 MiB │ +14.5 KiB │ (total)
DEX
STRINGS:

   old   │ new   │ diff            
  ───────┼───────┼─────────────────
   19213 │ 19238 │ +25 (+217 -192) 
  + Debug
  + Lb8/d;
  + Lb8/e;
  + Lb8/f;
  + Lb8/g;
  + Lb8/h;
  + Lc8/c;
  + Ld9/c;
  + Ld9/d;
  + Ld9/e;
  + Ld9/f;
  + Ld9/g;
  + Ld9/h;
  + Ld9/i;
  + Ld9/j;
  + Ld9/k;
  + Ld9/l;
  + Ld9/m;
  + Ld9/n;
  + Le7/o0;
  + Lf9/a;
  + Lf9/b;
  + Lf9/c;
  + Lg8/f;
  + Lg8/g;
  + Lg8/h;
  + Lg8/i;
  + Lg8/j;
  + Lg8/k;
  + Lg8/l;
  + Lg8/m;
  + Lg8/n;
  + Lg8/o;
  + Lg8/p;
  + Lg8/q;
  + Lg8/r;
  + Lg8/s;
  + Lg8/t;
  + Lg8/u;
  + Lg8/v;
  + Lh8/b;
  + Lh8/c;
  + Lh8/d;
  + Lh8/e;
  + Li7/c3;
  + Li7/d3;
  + Li7/e3;
  + Lj8/b;
  + Lj8/c;
  + Lj8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ly8/g;
  + Ly8/h;
  + Ly8/i;
  + Ly8/j;
  + Ly8/k;
  + Ly8/l;
  + Ly8/m;
  + Ly8/n;
  + Ly8/o;
  + Ly8/p;
  + Ly8/q;
  + Ly8/r;
  + Ly8/s;
  + Ly8/t;
  + Ly8/u;
  + Ly8/v;
  + Ly8/w;
  + Ly8/x;
  + Ly8/y;
  + Lz7/d;
  + Lz7/e;
  + Lz7/f;
  + Lz7/g;
  + Lz7/h;
  + Lz7/i;
  + Lz7/j;
  + Lz7/k;
  + Lz8/b;
  + Proceed
  + S1
  + T1
  + U1
  + V1
  + W1
  + X1
  + Y1
  + Z1
  + [La8/a;
  + [Ld9/i;
  + [Le7/f0;
  + [Lf8/a;
  + [Lf8/c;
  + [Li7/c2;
  + [Li7/j1;
  + [Li7/p1;
  + [Li7/u2;
  + [Lm8/e;
  + [Lp7/b1;
  + [Lp7/x0;
  + [Lp8/c;
  + [Lr8/l;
  + [Ls8/c;
  + [Lt8/b;
  + [Lu8/f;
  + [Lx0/l1;
  + [Lx8/o;
  + [Ly/a0;
  + [Lz7/d;
  + a2
  + b2
  + c2
  + d2
  + debug
  + e2
  + f2
  + g2
  + i2
  + j2
  + k2
  + ~~R8{backend:dex,compilation-mode:release,has-checksums:false,min-api:21,pg-map-id:39ae78e,r8-mode:full,version:4.0.52}
  
  - La8/d;
  - La8/e;
  - La8/f;
  - La8/g;
  - La8/h;
  - Lc9/b;
  - Lc9/c;
  - Lc9/d;
  - Lc9/e;
  - Lc9/f;
  - Lc9/g;
  - Lc9/h;
  - Lc9/i;
  - Lc9/j;
  - Lc9/k;
  - Lc9/l;
  - Lc9/m;
  - Lc9/n;
  - Le8/c;
  - Le8/d;
  - Le8/e;
  - Le8/f;
  - Le8/g;
  - Le8/h;
  - Le8/i;
  - Le9/c;
  - Lf8/j;
  - Lf8/k;
  - Lf8/l;
  - Lf8/m;
  - Lf8/n;
  - Lf8/o;
  - Lf8/p;
  - Lf8/q;
  - Lf8/r;
  - Lf8/s;
  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lv8/o;
  - Lv8/p0;
  - Lv8/p;
  - Lv8/q0;
  - Lv8/q;
  - Lv8/r0;
  - Lv8/r;
  - Lv8/s0;
  - Lv8/s;
  - Lv8/t0;
  - Lv8/t;
  - Lv8/u0;
  - Lv8/u;
  - Lv8/v0;
  - Lv8/v;
  - Lv8/w0;
  - Lv8/w;
  - Lv8/x0;
  - Lv8/x;
  - Lv8/y0;
  - Lv8/y;
  - Lv8/z0;
  - Lv8/z;
  - Ly7/a;
  - Ly7/b;
  - Ly7/c;
  - Ly7/d;
  - Ly7/e;
  - Ly7/f;
...✂
ARSC
ENTRIES:

   old  │ new  │ diff         
  ──────┼──────┼──────────────
   5112 │ 5130 │ +18 (+18 -0) 
  + string/cancelled
  + string/complete_with_test_data
  + string/complete_with_test_data_details
  + string/completed
  + string/failed
  + string/failure_from_test_mode
  + string/finish_mobile_flow
  + string/finish_mobile_flow_details
  + string/preview_user_experience
  + string/preview_user_experience_details
  + string/proceed
  + string/submit
  + string/test_model_content
  + string/test_model_title
  + string/verification_failure
  + string/verification_failure_async
  + string/verification_success
  + string/verification_success_async

Base automatically changed from ccen/testMode0 to master April 17, 2023 17:07
CHANGELOG.md Outdated Show resolved Hide resolved
@ccen-stripe ccen-stripe enabled auto-merge (squash) April 17, 2023 17:20
@ccen-stripe ccen-stripe merged commit 2526974 into master Apr 17, 2023
@ccen-stripe ccen-stripe deleted the ccen/testMode branch April 17, 2023 17:46
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.

3 participants