Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Jan 24, 2025
1 parent a32cbd1 commit 5f998a9
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 979 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import java.security.cert.X509Certificate
import javax.net.ssl.SSLEngine
import javax.net.ssl.X509ExtendedKeyManager

class X509Foo(
class FixedResponseX509ExtendedKeyManager(
private val certificateChain: Array<X509Certificate>,
private val privateKey: PrivateKey,
private val alias: String,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 1 addition & 3 deletions pkgs/ok_http/example/integration_test/certificate_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ import 'dart:async';
import 'dart:io' as io;
import 'dart:typed_data';

import 'package:flutter/services.dart' show rootBundle;
import 'package:http/http.dart';
import 'package:http/io_client.dart';
import 'package:integration_test/integration_test.dart';
import 'package:ok_http/ok_http.dart';
import 'package:test/test.dart';
import 'package:flutter/services.dart' show rootBundle;
import 'package:jni/jni.dart';

Future<Uint8List> loadCertificateBytes(String path) async {
return (await rootBundle.load(path)).buffer.asUint8List();
Expand Down
5 changes: 1 addition & 4 deletions pkgs/ok_http/jnigen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ classes:
- "com.example.ok_http.DataCallback"
- "okhttp3.WebSocket"
- "com.example.ok_http.WebSocketListenerProxy"
- "com.example.ok_http.X509Foo"
- "com.example.ok_http.Verifier"
- "com.example.ok_http.SocketFactoryFoo"
- "com.example.ok_http.SSLSocketFactoryFoo"
- "com.example.ok_http.FixedResponseX509ExtendedKeyManager"
- "okio.ByteString"
- "com.example.ok_http.WebSocketInterceptor"
- "java.util.concurrent.TimeUnit"
Expand Down
Loading

0 comments on commit 5f998a9

Please sign in to comment.