mirror of
https://github.com/immich-app/immich.git
synced 2026-07-05 20:57:40 +00:00
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Docker / pre-job (push) Waiting to run
Docker / Re-Tag ML (push) Blocked by required conditions
Docker / Re-Tag Server (push) Blocked by required conditions
Docker / Build and Push ML (push) Blocked by required conditions
Docker / Build and Push Server (push) Blocked by required conditions
Docker / Docker Build & Push Server Success (push) Blocked by required conditions
Docker / Docker Build & Push ML Success (push) Blocked by required conditions
Docs build / pre-job (push) Waiting to run
Docs build / Docs Build (push) Blocked by required conditions
Zizmor / Zizmor (push) Waiting to run
Static Code Analysis / pre-job (push) Waiting to run
Static Code Analysis / Run Dart Code Analysis (push) Blocked by required conditions
Test / OpenAPI Clients (push) Waiting to run
Test / pre-job (push) Waiting to run
Test / Test & Lint Server (push) Blocked by required conditions
Test / Unit Test CLI (push) Blocked by required conditions
Test / Unit Test CLI (Windows) (push) Blocked by required conditions
Test / Lint Web (push) Blocked by required conditions
Test / Test Web (push) Blocked by required conditions
Test / Test i18n (push) Blocked by required conditions
Test / End-to-End Lint (push) Blocked by required conditions
Test / Medium Tests (Server) (push) Blocked by required conditions
Test / End-to-End Tests Success (push) Blocked by required conditions
Test / Unit Test Mobile (push) Blocked by required conditions
Test / Unit Test ML (push) Blocked by required conditions
Test / .github Files Formatting (push) Blocked by required conditions
Test / ShellCheck (push) Waiting to run
Test / SQL Schema Checks (push) Waiting to run
Test / End-to-End Tests (Server & CLI) (push) Blocked by required conditions
Test / End-to-End Tests (Web) (push) Blocked by required conditions
* separate group ids
* remove pigeon method
* Revert "remove pigeon method"
This reverts commit d699ff2094.
49 lines
1.1 KiB
Dart
49 lines
1.1 KiB
Dart
import 'package:pigeon/pigeon.dart';
|
|
|
|
class ClientCertData {
|
|
Uint8List data;
|
|
String password;
|
|
|
|
ClientCertData(this.data, this.password);
|
|
}
|
|
|
|
class ClientCertPrompt {
|
|
String title;
|
|
String message;
|
|
String cancel;
|
|
String confirm;
|
|
|
|
ClientCertPrompt(this.title, this.message, this.cancel, this.confirm);
|
|
}
|
|
|
|
@ConfigurePigeon(
|
|
PigeonOptions(
|
|
dartOut: 'lib/platform/network_api.g.dart',
|
|
swiftOut: 'ios/Runner/Core/Network.g.swift',
|
|
swiftOptions: SwiftOptions(includeErrorClass: false),
|
|
kotlinOut:
|
|
'android/app/src/main/kotlin/app/alextran/immich/core/Network.g.kt',
|
|
kotlinOptions: KotlinOptions(package: 'app.alextran.immich.core', includeErrorClass: true),
|
|
dartOptions: DartOptions(),
|
|
dartPackageName: 'immich_mobile',
|
|
),
|
|
)
|
|
@HostApi()
|
|
abstract class NetworkApi {
|
|
@async
|
|
void addCertificate(ClientCertData clientData);
|
|
|
|
@async
|
|
void selectCertificate(ClientCertPrompt promptText);
|
|
|
|
@async
|
|
void removeCertificate();
|
|
|
|
bool hasCertificate();
|
|
|
|
int getClientPointer();
|
|
|
|
void setRequestHeaders(Map<String, String> headers, List<String> serverUrls, String? token);
|
|
|
|
String getAppGroupId();
|
|
}
|