@@ -9437,3 +9437,184 @@ final class $CacheType extends jni.JObjType<Cache> {
9437
9437
return other.runtimeType == ($CacheType ) && other is $CacheType ;
9438
9438
}
9439
9439
}
9440
+
9441
+ /// from: com.example.ok_http.RedirectInterceptor$Companion
9442
+ class RedirectInterceptor_Companion extends jni.JObject {
9443
+ @override
9444
+ late final jni.JObjType <RedirectInterceptor_Companion > $type = type;
9445
+
9446
+ RedirectInterceptor_Companion .fromReference (
9447
+ jni.JReference reference,
9448
+ ) : super .fromReference (reference);
9449
+
9450
+ static final _class =
9451
+ jni.JClass .forName (r"com/example/ok_http/RedirectInterceptor$Companion" );
9452
+
9453
+ /// The type which includes information such as the signature of this class.
9454
+ static const type = $RedirectInterceptor_CompanionType ();
9455
+ static final _id_addRedirectInterceptor = _class.instanceMethodId (
9456
+ r"addRedirectInterceptor" ,
9457
+ r"(Lokhttp3/OkHttpClient$Builder;IZ)Lokhttp3/OkHttpClient$Builder;" ,
9458
+ );
9459
+
9460
+ static final _addRedirectInterceptor = ProtectedJniExtensions .lookup<
9461
+ ffi.NativeFunction <
9462
+ jni.JniResult Function (
9463
+ ffi.Pointer <ffi.Void >,
9464
+ jni.JMethodIDPtr ,
9465
+ ffi.VarArgs <
9466
+ (
9467
+ ffi.Pointer <ffi.Void >,
9468
+ ffi.Int64 ,
9469
+ ffi.Int64
9470
+ )>)>> ("globalEnv_CallObjectMethod" )
9471
+ .asFunction<
9472
+ jni.JniResult Function (ffi.Pointer <ffi.Void >, jni.JMethodIDPtr ,
9473
+ ffi.Pointer <ffi.Void >, int , int )> ();
9474
+
9475
+ /// from: public final okhttp3.OkHttpClient$Builder addRedirectInterceptor(okhttp3.OkHttpClient$Builder builder, int i, boolean z)
9476
+ /// The returned object must be released after use, by calling the [release] method.
9477
+ OkHttpClient_Builder addRedirectInterceptor (
9478
+ OkHttpClient_Builder builder,
9479
+ int i,
9480
+ bool z,
9481
+ ) {
9482
+ return _addRedirectInterceptor (
9483
+ reference.pointer,
9484
+ _id_addRedirectInterceptor as jni.JMethodIDPtr ,
9485
+ builder.reference.pointer,
9486
+ i,
9487
+ z ? 1 : 0 )
9488
+ .object (const $OkHttpClient_BuilderType ());
9489
+ }
9490
+
9491
+ static final _id_new0 = _class.constructorId (
9492
+ r"(Lkotlin/jvm/internal/DefaultConstructorMarker;)V" ,
9493
+ );
9494
+
9495
+ static final _new0 = ProtectedJniExtensions .lookup<
9496
+ ffi.NativeFunction <
9497
+ jni.JniResult Function (
9498
+ ffi.Pointer <ffi.Void >,
9499
+ jni.JMethodIDPtr ,
9500
+ ffi.VarArgs <(ffi.Pointer <ffi.Void >,)>)>> (
9501
+ "globalEnv_NewObject" )
9502
+ .asFunction<
9503
+ jni.JniResult Function (ffi.Pointer <ffi.Void >, jni.JMethodIDPtr ,
9504
+ ffi.Pointer <ffi.Void >)> ();
9505
+
9506
+ /// from: public void <init>(kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)
9507
+ /// The returned object must be released after use, by calling the [release] method.
9508
+ factory RedirectInterceptor_Companion (
9509
+ jni.JObject defaultConstructorMarker,
9510
+ ) {
9511
+ return RedirectInterceptor_Companion .fromReference (_new0 (
9512
+ _class.reference.pointer,
9513
+ _id_new0 as jni.JMethodIDPtr ,
9514
+ defaultConstructorMarker.reference.pointer)
9515
+ .reference);
9516
+ }
9517
+ }
9518
+
9519
+ final class $RedirectInterceptor_CompanionType
9520
+ extends jni.JObjType <RedirectInterceptor_Companion > {
9521
+ const $RedirectInterceptor_CompanionType ();
9522
+
9523
+ @override
9524
+ String get signature =>
9525
+ r"Lcom/example/ok_http/RedirectInterceptor$Companion;" ;
9526
+
9527
+ @override
9528
+ RedirectInterceptor_Companion fromReference (jni.JReference reference) =>
9529
+ RedirectInterceptor_Companion .fromReference (reference);
9530
+
9531
+ @override
9532
+ jni.JObjType get superType => const jni.JObjectType ();
9533
+
9534
+ @override
9535
+ final superCount = 1 ;
9536
+
9537
+ @override
9538
+ int get hashCode => ($RedirectInterceptor_CompanionType ).hashCode;
9539
+
9540
+ @override
9541
+ bool operator == (Object other) {
9542
+ return other.runtimeType == ($RedirectInterceptor_CompanionType ) &&
9543
+ other is $RedirectInterceptor_CompanionType ;
9544
+ }
9545
+ }
9546
+
9547
+ /// from: com.example.ok_http.RedirectInterceptor
9548
+ class RedirectInterceptor extends jni.JObject {
9549
+ @override
9550
+ late final jni.JObjType <RedirectInterceptor > $type = type;
9551
+
9552
+ RedirectInterceptor .fromReference (
9553
+ jni.JReference reference,
9554
+ ) : super .fromReference (reference);
9555
+
9556
+ static final _class =
9557
+ jni.JClass .forName (r"com/example/ok_http/RedirectInterceptor" );
9558
+
9559
+ /// The type which includes information such as the signature of this class.
9560
+ static const type = $RedirectInterceptorType ();
9561
+ static final _id_Companion = _class.staticFieldId (
9562
+ r"Companion" ,
9563
+ r"Lcom/example/ok_http/RedirectInterceptor$Companion;" ,
9564
+ );
9565
+
9566
+ /// from: static public final com.example.ok_http.RedirectInterceptor$Companion Companion
9567
+ /// The returned object must be released after use, by calling the [release] method.
9568
+ static RedirectInterceptor_Companion get Companion =>
9569
+ _id_Companion.get (_class, const $RedirectInterceptor_CompanionType ());
9570
+
9571
+ static final _id_new0 = _class.constructorId (
9572
+ r"()V" ,
9573
+ );
9574
+
9575
+ static final _new0 = ProtectedJniExtensions .lookup<
9576
+ ffi.NativeFunction <
9577
+ jni.JniResult Function (
9578
+ ffi.Pointer <ffi.Void >,
9579
+ jni.JMethodIDPtr ,
9580
+ )>> ("globalEnv_NewObject" )
9581
+ .asFunction<
9582
+ jni.JniResult Function (
9583
+ ffi.Pointer <ffi.Void >,
9584
+ jni.JMethodIDPtr ,
9585
+ )> ();
9586
+
9587
+ /// from: public void <init>()
9588
+ /// The returned object must be released after use, by calling the [release] method.
9589
+ factory RedirectInterceptor () {
9590
+ return RedirectInterceptor .fromReference (
9591
+ _new0 (_class.reference.pointer, _id_new0 as jni.JMethodIDPtr )
9592
+ .reference);
9593
+ }
9594
+ }
9595
+
9596
+ final class $RedirectInterceptorType extends jni.JObjType <RedirectInterceptor > {
9597
+ const $RedirectInterceptorType ();
9598
+
9599
+ @override
9600
+ String get signature => r"Lcom/example/ok_http/RedirectInterceptor;" ;
9601
+
9602
+ @override
9603
+ RedirectInterceptor fromReference (jni.JReference reference) =>
9604
+ RedirectInterceptor .fromReference (reference);
9605
+
9606
+ @override
9607
+ jni.JObjType get superType => const jni.JObjectType ();
9608
+
9609
+ @override
9610
+ final superCount = 1 ;
9611
+
9612
+ @override
9613
+ int get hashCode => ($RedirectInterceptorType ).hashCode;
9614
+
9615
+ @override
9616
+ bool operator == (Object other) {
9617
+ return other.runtimeType == ($RedirectInterceptorType ) &&
9618
+ other is $RedirectInterceptorType ;
9619
+ }
9620
+ }
0 commit comments