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 Identity test mode M1 #6642

Merged
merged 7 commits into from
May 5, 2023
Merged

Conversation

ccen-stripe
Copy link
Collaborator

@ccen-stripe ccen-stripe commented May 2, 2023

Summary

Support Identity SDK Test mode M1 by invoking the newly added testing/verify and testing/unverify endpoint.

See more details at this internal doc.

iOS change: stripe/stripe-ios#2541

Motivation

Support test mode in mobile SDKs

Testing

  • Added tests
  • Modified tests
  • Manually verified

Screenshots

Before After
before Screenshot_20230504-211513

Changelog

  • [Added] Test mode M1.

@ccen-stripe
Copy link
Collaborator Author

cc @ruben-stripe @stripe/stripe-identity-observers

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 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 KiB │   3.9 MiB │   3.9 MiB │ +6.8 KiB 
     arsc │   1.3 MiB │   1.3 MiB │   -552 B │   1.3 MiB │   1.3 MiB │   -552 B 
 manifest │   2.2 KiB │   2.2 KiB │      0 B │   7.9 KiB │   7.9 KiB │      0 B 
      res │ 337.6 KiB │ 337.6 KiB │      0 B │ 466.3 KiB │ 466.3 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.3 KiB │     +8 B │  87.3 KiB │  87.3 KiB │     +8 B 
    other │ 110.2 KiB │ 110.2 KiB │     +3 B │ 250.9 KiB │ 250.9 KiB │      0 B 
──────────┼───────────┼───────────┼──────────┼───────────┼───────────┼──────────
    total │   9.8 MiB │   9.8 MiB │ +1.5 KiB │  21.7 MiB │  21.7 MiB │ +6.3 KiB 

 DEX     │ old   │ new   │ diff            
─────────┼───────┼───────┼─────────────────
   files │     1 │     1 │   0             
 strings │ 19266 │ 19289 │ +23 (+27 -4)    
   types │  5994 │  6003 │  +9 (+12 -3)    
 classes │  4875 │  4883 │  +8 (+8 -0)     
 methods │ 29855 │ 29890 │ +35 (+541 -506) 
  fields │ 16599 │ 16628 │ +29 (+454 -425) 

 ARSC    │ old  │ new  │ diff       
─────────┼──────┼──────┼────────────
 configs │  258 │  258 │  0         
 entries │ 5131 │ 5130 │ -1 (+0 -1)
APK
     compressed      │     uncompressed     │                                
──────────┬──────────┼───────────┬──────────┤                                
 size     │ diff     │ size      │ diff     │ path                           
──────────┼──────────┼───────────┼──────────┼────────────────────────────────
  1.8 MiB │   +2 KiB │   3.9 MiB │ +6.8 KiB │ ∆ classes.dex                  
  1.3 MiB │   -552 B │   1.3 MiB │   -552 B │ ∆ resources.arsc               
  5.6 KiB │     +7 B │   5.5 KiB │     +7 B │ ∆ assets/dexopt/baseline.prof  
 47.5 KiB │     +7 B │ 108.8 KiB │      0 B │ ∆ META-INF/CERT.SF             
 30.7 KiB │     -4 B │ 108.8 KiB │      0 B │ ∆ META-INF/MANIFEST.MF         
    677 B │     +1 B │     545 B │     +1 B │ ∆ assets/dexopt/baseline.profm 
──────────┼──────────┼───────────┼──────────┼────────────────────────────────
  3.2 MiB │ +1.5 KiB │   5.4 MiB │ +6.3 KiB │ (total)
DEX
STRINGS:

   old   │ new   │ diff         
  ───────┼───────┼──────────────
   19266 │ 19289 │ +23 (+27 -4) 
  + /testing/unverify
  + /testing/verify
  + About to show error screen with error caused by 
  + ErrorDestination
  + FAILURE
  + FAILURE_ASYNC
  + Lh7/f3;
  + Lh7/g3;
  + Lh7/h3;
  + Lh7/i3;
  + Lh7/j3;
  + Lh7/k3;
  + Lj7/m0;
  + Lj7/n0;
  + SUCCESS_ASYNC
  + Submit
  + VLZZLLI
  + [Lh7/a3;
  + [Lh7/i2;
  + [Lh7/l;
  + [Lh7/v1;
  + completeOption
  + failure_async
  + onClickSubmit
  + simulate_delay
  + success_async
  + ~~R8{backend:dex,compilation-mode:release,has-checksums:false,min-api:21,pg-map-id:4afe199,r8-mode:full,version:8.0.40}
  
  - [Lh7/c2;
  - [Lh7/j1;
  - [Lh7/u2;
  - ~~R8{backend:dex,compilation-mode:release,has-checksums:false,min-api:21,pg-map-id:3b5876e,r8-mode:full,version:8.0.40}
  

TYPES:

   old  │ new  │ diff        
  ──────┼──────┼─────────────
   5994 │ 6003 │ +9 (+12 -3) 
  + Lh7/f3;
  + Lh7/g3;
  + Lh7/h3;
  + Lh7/i3;
  + Lh7/j3;
  + Lh7/k3;
  + Lj7/m0;
  + Lj7/n0;
  + [Lh7/a3;
  + [Lh7/i2;
  + [Lh7/l;
  + [Lh7/v1;
  
  - [Lh7/c2;
  - [Lh7/j1;
  - [Lh7/u2;
  

METHODS:

   old   │ new   │ diff            
  ───────┼───────┼─────────────────
   29855 │ 29890 │ +35 (+541 -506) 
  + b2.c O(w1) → i2
  + b2.c d(n0, f, m0, r, e, a, i, int)
  + b2.c e(r, n0, i, int)
  + b2.c g(n0, String, l, String, String, q1, q1, i, int, int)
  + b2.c i(r, n0, i, int)
  + b2.c u(r, n0, f, i, int)
  + b2.c w(b1) → i2
  + b2.c z(boolean, r, n0, t1, Set, w1, c, i, int)
  + b3.f <init>(z, b1, n0, r, String)
  + com.stripe.android.identity.IdentityActivity y() → n0
  + d7.a0 <init>(n0, d0, k, boolean)
  + d7.b0 <init>(e, d0, n0, int)
  + d7.c0 <init>(d0, n0, q, int, a, l, e, Context, a)
  + d7.d0 <init>(d0, n0, q, int, a, l, e, Context, a)
  + d7.e0 <init>(d0, n0, a, a, l, q, e, a, v1, c, int, int)
  + d7.k0 a(r, n0) → boolean
  + d7.u <init>(a, int, v1)
  + d7.u <init>(v1, a, int, int)
  + d7.v <init>(n0, d)
  + d7.w <init>(n0, d0)
  + d7.w <init>(d0, n0, int)
  + d7.x <init>(n0, d)
  + d7.y <init>(n0, d)
  + d7.z <init>(d0, n0, q, int, int)
  + e7.f c(h, h2, j0, d) → Object
  + e7.f h(String, String, boolean, i0) → Object
  + e7.f i(String, String, File, j, j0, d) → Object
  + e7.f j(String, String, boolean, m0) → Object
  + e7.g Z() → Map
  + e7.g b0() → int
  + e7.g k0() → g
  + e7.g n0() → String
  + e7.h Z() → Map
  + e7.h b0() → int
  + e7.h h0() → Map
  + e7.h k0() → g
  + e7.h n0() → String
  + e7.h n1(OutputStream)
  + e7.h p1() → String
  + e7.h q1() → String
  + e7.h r1(PrintWriter, String)
  + e8.h i(boolean, r, n0, q, i, int)
  + e8.h m(r, n0, i, int)
  + e8.h p(o1, boolean, boolean, c, a, a, i, int)
  + e8.h q(r, n0, h, String, int, int, o1, o1, boolean, boolean, i, int)
  + e8.h t(l, p1, o1, a, i, int, int)
  + h7.a1 <clinit>()
  + h7.a1 <init>()
  + h7.a1 W(Object) → Object
  + h7.a2 <init>(boolean, r, n0, t1, Set, w1, c, int)
  + h7.a3 <clinit>()
  + h7.a3 <init>(String, int)
  + h7.a3 valueOf(String) → a3
  + h7.a3 values() → a3[]
  + h7.b1 <init>(e, String, d)
  + h7.b1 Q(Object, Object) → Object
  + h7.b1 c(Object, d) → d
  + h7.b1 g(Object) → Object
  + h7.b2 W(Object) → Object
  + h7.b3 <init>(a, c, int)
  + h7.b3 a()
  + h7.b3 k() → Object
  + h7.b <init>(boolean, n0, List, String, r, c, int)
  + h7.c2 <init>()
  + h7.c2 W(Object) → Object
  + h7.c3 <init>(o1, boolean, a, c, int, boolean, int)
  + h7.c3 <init>(String, boolean, boolean, String, a, int)
  + h7.c3 Q(Object, Object) → Object
  + h7.c3 a(i, int)
  + h7.d1 <init>(e, int)
  + h7.d1 W(Object) → Object
  + h7.d1 a(c)
  + h7.d2 <clinit>()
  + h7.d2 <init>()
  + h7.d2 W(Object) → Object
  + h7.d3 <init>(n0, r, h, String, d)
  + h7.d3 Q(Object, Object) → Object
  + h7.d3 c(Object, d) → d
  + h7.d3 g(Object) → Object
  + h7.d a(boolean, n0, List, String, r, c, i, int)
  + h7.e1 <init>(a, q2, d)
  + h7.e1 Q(Object, Object) → Object
  + h7.e1 c(Object, d) → d
  + h7.e1 g(Object) → Object
  + h7.e3 <init>(n0, r, h, String, d)
  + h7.e3 c(Object, d) → d
  + h7.e3 g(Object) → Object
  + h7.f0 <clinit>()
  + h7.f0 <init>()
  + h7.f0 W(Object) → Object
  + h7.f1 <init>(n0, d, boolean)
  + h7.f1 Q(Object, Object) → Object
  + h7.f1 c(Object, d) → d
  + h7.f1 g(Object) → Object
  + h7.f2 <clinit>()
  + h7.f2 <init>()
  + h7.f2 W(Object) → Object
  + h7.f3 <init>(n0, r, h, String, d)
  + h7.f3 Q(Object, Object) → Object
  + h7.f3 c(Object, d) → d
  + h7.f3 g(Object) → Object
  + h7.g0 <
...✂
ARSC
ENTRIES:

   old  │ new  │ diff       
  ──────┼──────┼────────────
   5131 │ 5130 │ -1 (+0 -1) 
  - string/stripe_completed

@ccen-stripe ccen-stripe marked this pull request as ready for review May 4, 2023 23:00
@ccen-stripe ccen-stripe requested review from a team as code owners May 4, 2023 23:00
@ccen-stripe ccen-stripe merged commit 1db9fee into master May 5, 2023
10 checks passed
@ccen-stripe ccen-stripe deleted the ccen/testModeM1 branch May 5, 2023 18:07
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