This commit is contained in:
J. A. Messias 2024-10-08 17:48:38 -03:00
parent dd325968ae
commit 3c0eae88e7
3 changed files with 14 additions and 12 deletions

View File

@ -9,6 +9,14 @@ import Flutter
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
// Retrieve the link from parameters
if let url = AppLinks.shared.getLink(launchOptions: launchOptions) {
// We have a link, propagate it to your Flutter app or not
AppLinks.shared.handleLink(url: url)
return true // Returning true will stop the propagation to other packages
}
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}

View File

@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>FlutterDeepLinkingEnabled</key>
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>

View File

@ -85,9 +85,7 @@ class UnregisterDevice {
}
class DeletePet {
Future<ApiCallResponse> call({
final int? petID = 0,
}) async {
Future<ApiCallResponse> call({final int? petID = 0}) async {
final String baseUrl = PhpGroup.getBaseUrl();
final String devUUID = StorageUtil().devUUID;
final String userUUID = StorageUtil().userUUID;
@ -176,10 +174,7 @@ class UpdatePet {
}
class GetPets {
Future<ApiCallResponse> call({
final int? page,
final int? pageSize,
}) async {
Future<ApiCallResponse> call({final int? page, final int? pageSize,}) async {
final String baseUrl = PhpGroup.getBaseUrl();
final String devUUID = StorageUtil().devUUID;
@ -213,9 +208,7 @@ class GetPets {
}
class GetPetPhoto {
Future<ApiCallResponse> call({
final int? petId,
}) async {
Future<ApiCallResponse> call({final int? petId}) async {
final String baseUrl = PhpGroup.getBaseUrl();
final String devUUID = StorageUtil().devUUID;
@ -1951,6 +1944,7 @@ class RespondeSolicitacaoCall {
));
}
class GetAccessCall {
Future<ApiCallResponse> call({
final String? pageSize,
@ -2201,7 +2195,6 @@ class GetAccessCall {
.withoutNulls
.toList();
}
class GetLiberationsCall {
Stream<ApiCallResponse> call() {
final String baseUrl = PhpGroup.getBaseUrl();
@ -2391,7 +2384,6 @@ class GetLiberationsCall {
.withoutNulls
.toList();
}
class GetMessagesCall {
Future<ApiCallResponse> call({
final String? pageSize,