Compare commits
122 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3b1b0d0c19 | |||
| c32e64fe74 | |||
| 710e88d744 | |||
| 517e515ac1 | |||
| e8f0c4383c | |||
| b8cac73e74 | |||
| 95ef29fb09 | |||
| 86d12884fc | |||
| 50d2941e52 | |||
| 71506aab2d | |||
| 4e1272aba9 | |||
| 72ebe6f7e7 | |||
| 4b1d4379a0 | |||
| 2c376afd91 | |||
| 54ba04a7bd | |||
| 9b5a70b285 | |||
| 4f796dac2e | |||
| db9c3386f1 | |||
| bee5c02a4f | |||
| e8faa77e70 | |||
| 551c1bf1fa | |||
| 9973f12733 | |||
| 278fed52f1 | |||
| f89ac87c51 | |||
| 0b8380eff0 | |||
| 4ef3a167ea | |||
| c26cefc073 | |||
| e78ef0df49 | |||
| 0b6c80e84c | |||
| a52817231e | |||
| f6933b6529 | |||
| e4243e53ac | |||
| 0aead45191 | |||
| dacefd321b | |||
| 92a9a7358e | |||
| 174e6ac0b7 | |||
| c9eaed782a | |||
| 567184bcf9 | |||
| 541d6ef164 | |||
| 3469d02033 | |||
| 699aec8ab5 | |||
| 7a3a022ecd | |||
| 9d8a99df7c | |||
| a47e52e8e7 | |||
| a1fd21de04 | |||
| b3d8586c04 | |||
| 0409c5463f | |||
| 7a3b69fade | |||
| df275c0108 | |||
| 0525453d48 | |||
| 4e8b2f34f9 | |||
| bc6a069c90 | |||
| bfa0b0f5c0 | |||
| 274b77f705 | |||
| c7ea80bea9 | |||
| 1c787fdc4d | |||
| a689cf4fef | |||
| 8f92ab06d9 | |||
| b68bec9ebd | |||
| 81f65750b7 | |||
| 7b7ab2e82e | |||
| a460d2b296 | |||
| 33dd6c4c69 | |||
| 06c27d6b50 | |||
| 7dea44d1e8 | |||
| 5f27956035 | |||
| 32799f648c | |||
| 859b85ab2c | |||
| bd1101c348 | |||
| f29c84d05c | |||
| 7dbd6038f3 | |||
| 877633f4de | |||
| 22d3d18a17 | |||
| d65e61c297 | |||
| 467b0e0dd8 | |||
| 25a6ef37fa | |||
| 34763ace4a | |||
| 590a70c623 | |||
| 9b58412ca7 | |||
| a6c16e41c2 | |||
| 117434a5e3 | |||
| e4582eaac5 | |||
| 430d5b8dc7 | |||
| 9177c30d6e | |||
| 344f8f6d2c | |||
| 46971a8d46 | |||
| f330ef3f56 | |||
| 85f9988453 | |||
| f3de0bc165 | |||
| 421ee9179d | |||
| 0a66858d93 | |||
| 49428680de | |||
| 0c676dc3d6 | |||
| c702b610c5 | |||
| 5938c6b3c3 | |||
| 8000475c1f | |||
| da772f17cc | |||
| c44b0464a4 | |||
| 9d0cf8e313 | |||
| f0009dad88 | |||
| 905206f242 | |||
| 769fbc1b6a | |||
| 8daf57bcee | |||
| 33d488946a | |||
| 41a5e021c5 | |||
| 8f58893553 | |||
| 626d3d5564 | |||
| d833cdb733 | |||
| 8868914a76 | |||
| 70e6f82b10 | |||
| 6651613331 | |||
| 9ad0f624de | |||
| 82c143f847 | |||
| 1fdf731b81 | |||
| 2d3ccd25b4 | |||
| 385ee806d6 | |||
| 92aef41031 | |||
| 65b29ec4b8 | |||
| 9f51d68531 | |||
| 5bc4ba6332 | |||
| e9739ac2d5 | |||
| 4d3a33dd9b |
@@ -1,44 +1,88 @@
|
|||||||
# This file configures the analyzer, which statically analyzes Dart code to
|
# Static analysis configuration for the Flutter project.
|
||||||
# check for errors, warnings, and lints.
|
# https://dart.dev/guides/language/analysis-options
|
||||||
#
|
#
|
||||||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
# Base ruleset: flutter_lints (recommended Flutter defaults).
|
||||||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
# Additional lints below catch real bugs and enforce consistent style.
|
||||||
# invoked from the command line by running `flutter analyze`.
|
|
||||||
|
|
||||||
# The following line activates a set of recommended lints for Flutter apps,
|
|
||||||
# packages, and plugins designed to encourage good coding practices.
|
|
||||||
include: package:flutter_lints/flutter.yaml
|
include: package:flutter_lints/flutter.yaml
|
||||||
|
|
||||||
analyzer:
|
analyzer:
|
||||||
|
language:
|
||||||
|
strict-casts: true
|
||||||
|
strict-raw-types: true
|
||||||
errors:
|
errors:
|
||||||
invalid_annotation_target: ignore
|
invalid_annotation_target: ignore
|
||||||
|
todo: ignore
|
||||||
|
exclude:
|
||||||
|
- "**/*.g.dart"
|
||||||
|
- "**/*.freezed.dart"
|
||||||
|
- "lib/firebase_options.dart"
|
||||||
|
- "build/**"
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
# The lint rules applied to this project can be customized in the
|
|
||||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
|
||||||
# included above or to enable additional rules. A list of all available lints
|
|
||||||
# and their documentation is published at
|
|
||||||
# https://dart-lang.github.io/linter/lints/index.html.
|
|
||||||
#
|
|
||||||
# Instead of disabling a lint rule for the entire project in the
|
|
||||||
# section below, it can also be suppressed for a single line of code
|
|
||||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
|
||||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
|
||||||
# producing the lint.
|
|
||||||
rules:
|
rules:
|
||||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
# === Project conventions ===
|
||||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
|
||||||
file_names: false
|
|
||||||
prefer_relative_imports: true
|
prefer_relative_imports: true
|
||||||
unnecessary_lambdas: true
|
|
||||||
prefer_single_quotes: true
|
prefer_single_quotes: true
|
||||||
prefer_if_elements_to_conditional_expressions: true
|
|
||||||
prefer_expression_function_bodies: true
|
|
||||||
omit_local_variable_types: true
|
|
||||||
eol_at_end_of_file: true
|
eol_at_end_of_file: true
|
||||||
cast_nullable_to_non_nullable: true
|
omit_local_variable_types: true
|
||||||
avoid_void_async: true
|
|
||||||
avoid_multiple_declarations_per_line: true
|
avoid_multiple_declarations_per_line: true
|
||||||
|
|
||||||
# Additional information about this file can be found at
|
# === Bug catchers ===
|
||||||
# https://dart.dev/guides/language/analysis-options
|
always_declare_return_types: true
|
||||||
|
avoid_empty_else: true
|
||||||
|
avoid_slow_async_io: true
|
||||||
|
avoid_type_to_string: true
|
||||||
|
avoid_void_async: true
|
||||||
|
await_only_futures: true
|
||||||
|
cancel_subscriptions: true
|
||||||
|
cast_nullable_to_non_nullable: true
|
||||||
|
close_sinks: true
|
||||||
|
empty_catches: true
|
||||||
|
hash_and_equals: true
|
||||||
|
no_adjacent_strings_in_list: true
|
||||||
|
no_duplicate_case_values: true
|
||||||
|
test_types_in_equals: true
|
||||||
|
throw_in_finally: true
|
||||||
|
unawaited_futures: true
|
||||||
|
unnecessary_statements: true
|
||||||
|
unrelated_type_equality_checks: true
|
||||||
|
use_build_context_synchronously: true
|
||||||
|
valid_regexps: true
|
||||||
|
|
||||||
|
# === Flutter widget hygiene ===
|
||||||
|
avoid_unnecessary_containers: true
|
||||||
|
sized_box_for_whitespace: true
|
||||||
|
sort_child_properties_last: true
|
||||||
|
use_colored_box: true
|
||||||
|
use_decorated_box: true
|
||||||
|
use_full_hex_values_for_flutter_colors: true
|
||||||
|
use_key_in_widget_constructors: true
|
||||||
|
|
||||||
|
# === Code clarity ===
|
||||||
|
directives_ordering: true
|
||||||
|
library_prefixes: true
|
||||||
|
no_leading_underscores_for_local_identifiers: true
|
||||||
|
prefer_conditional_assignment: true
|
||||||
|
prefer_if_elements_to_conditional_expressions: true
|
||||||
|
prefer_if_null_operators: true
|
||||||
|
prefer_initializing_formals: true
|
||||||
|
prefer_interpolation_to_compose_strings: true
|
||||||
|
prefer_is_empty: true
|
||||||
|
prefer_is_not_empty: true
|
||||||
|
prefer_is_not_operator: true
|
||||||
|
prefer_iterable_whereType: true
|
||||||
|
prefer_null_aware_operators: true
|
||||||
|
prefer_spread_collections: true
|
||||||
|
prefer_void_to_null: true
|
||||||
|
unnecessary_await_in_return: true
|
||||||
|
unnecessary_brace_in_string_interps: true
|
||||||
|
unnecessary_lambdas: true
|
||||||
|
unnecessary_null_aware_assignments: true
|
||||||
|
unnecessary_null_checks: true
|
||||||
|
unnecessary_parenthesis: true
|
||||||
|
unnecessary_string_interpolations: true
|
||||||
|
use_super_parameters: true
|
||||||
|
|
||||||
|
# === File naming ===
|
||||||
|
file_names: true
|
||||||
|
|||||||
@@ -25,15 +25,16 @@ if (flutterVersionName == null) {
|
|||||||
android {
|
android {
|
||||||
namespace "eu.mhsl.marianum.mobile.client"
|
namespace "eu.mhsl.marianum.mobile.client"
|
||||||
compileSdk flutter.compileSdkVersion
|
compileSdk flutter.compileSdkVersion
|
||||||
ndkVersion flutter.ndkVersion
|
ndkVersion "28.2.13676358"
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_17
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_17
|
||||||
|
coreLibraryDesugaringEnabled true
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = '1.8'
|
jvmTarget = '17'
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -41,11 +42,8 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
||||||
applicationId "eu.mhsl.marianum.mobile.client"
|
applicationId "eu.mhsl.marianum.mobile.client"
|
||||||
// You can update the following values to match your application needs.
|
minSdkVersion 26
|
||||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
|
||||||
minSdkVersion 21
|
|
||||||
targetSdkVersion flutter.targetSdkVersion
|
targetSdkVersion flutter.targetSdkVersion
|
||||||
versionCode flutterVersionCode.toInteger()
|
versionCode flutterVersionCode.toInteger()
|
||||||
versionName flutterVersionName
|
versionName flutterVersionName
|
||||||
@@ -66,5 +64,6 @@ flutter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.android.support:multidex:1.0.3'
|
implementation 'com.android.support:multidex:2.0.1'
|
||||||
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.4'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
org.gradle.jvmargs=-Xmx4G
|
org.gradle.jvmargs=-Xmx4G
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
|
android.defaults.buildfeatures.buildconfig=true
|
||||||
|
android.nonTransitiveRClass=false
|
||||||
|
android.nonFinalResIds=false
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#This file is generated by updateDaemonJvm
|
||||||
|
toolchainVersion=21
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@@ -19,8 +19,10 @@ pluginManagement {
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||||
id "com.android.application" version "7.3.0" apply false
|
id "com.android.application" version '8.13.2' apply false
|
||||||
id "org.jetbrains.kotlin.android" version "1.8.10" apply false
|
id "com.android.library" version '8.13.2' apply false
|
||||||
|
id "org.jetbrains.kotlin.android" version "2.1.10" apply false
|
||||||
|
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.10.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
include ":app"
|
include ":app"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,29 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIFBTCCAu2gAwIBAgIQWgDyEtjUtIDzkkFX6imDBTANBgkqhkiG9w0BAQsFADBP
|
||||||
|
MQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJuZXQgU2VjdXJpdHkgUmVzZWFy
|
||||||
|
Y2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBYMTAeFw0yNDAzMTMwMDAwMDBa
|
||||||
|
Fw0yNzAzMTIyMzU5NTlaMDMxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBF
|
||||||
|
bmNyeXB0MQwwCgYDVQQDEwNSMTMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
|
||||||
|
AoIBAQClZ3CN0FaBZBUXYc25BtStGZCMJlA3mBZjklTb2cyEBZPs0+wIG6BgUUNI
|
||||||
|
fSvHSJaetC3ancgnO1ehn6vw1g7UDjDKb5ux0daknTI+WE41b0VYaHEX/D7YXYKg
|
||||||
|
L7JRbLAaXbhZzjVlyIuhrxA3/+OcXcJJFzT/jCuLjfC8cSyTDB0FxLrHzarJXnzR
|
||||||
|
yQH3nAP2/Apd9Np75tt2QnDr9E0i2gB3b9bJXxf92nUupVcM9upctuBzpWjPoXTi
|
||||||
|
dYJ+EJ/B9aLrAek4sQpEzNPCifVJNYIKNLMc6YjCR06CDgo28EdPivEpBHXazeGa
|
||||||
|
XP9enZiVuppD0EqiFwUBBDDTMrOPAgMBAAGjgfgwgfUwDgYDVR0PAQH/BAQDAgGG
|
||||||
|
MB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATASBgNVHRMBAf8ECDAGAQH/
|
||||||
|
AgEAMB0GA1UdDgQWBBTnq58PLDOgU9NeT3jIsoQOO9aSMzAfBgNVHSMEGDAWgBR5
|
||||||
|
tFnme7bl5AFzgAiIyBpY9umbbjAyBggrBgEFBQcBAQQmMCQwIgYIKwYBBQUHMAKG
|
||||||
|
Fmh0dHA6Ly94MS5pLmxlbmNyLm9yZy8wEwYDVR0gBAwwCjAIBgZngQwBAgEwJwYD
|
||||||
|
VR0fBCAwHjAcoBqgGIYWaHR0cDovL3gxLmMubGVuY3Iub3JnLzANBgkqhkiG9w0B
|
||||||
|
AQsFAAOCAgEAUTdYUqEimzW7TbrOypLqCfL7VOwYf/Q79OH5cHLCZeggfQhDconl
|
||||||
|
k7Kgh8b0vi+/XuWu7CN8n/UPeg1vo3G+taXirrytthQinAHGwc/UdbOygJa9zuBc
|
||||||
|
VyqoH3CXTXDInT+8a+c3aEVMJ2St+pSn4ed+WkDp8ijsijvEyFwE47hulW0Ltzjg
|
||||||
|
9fOV5Pmrg/zxWbRuL+k0DBDHEJennCsAen7c35Pmx7jpmJ/HtgRhcnz0yjSBvyIw
|
||||||
|
6L1QIupkCv2SBODT/xDD3gfQQyKv6roV4G2EhfEyAsWpmojxjCUCGiyg97FvDtm/
|
||||||
|
NK2LSc9lybKxB73I2+P2G3CaWpvvpAiHCVu30jW8GCxKdfhsXtnIy2imskQqVZ2m
|
||||||
|
0Pmxobb28Tucr7xBK7CtwvPrb79os7u2XP3O5f9b/H66GNyRrglRXlrYjI1oGYL/
|
||||||
|
f4I1n/Sgusda6WvA6C190kxjU15Y12mHU4+BxyR9cx2hhGS9fAjMZKJss28qxvz6
|
||||||
|
Axu4CaDmRNZpK/pQrXF17yXCXkmEWgvSOEZy6Z9pcbLIVEGckV/iVeq0AOo2pkg9
|
||||||
|
p4QRIy0tK2diRENLSF2KysFwbY6B26BFeFs3v1sYVRhFW9nLkOrQVporCS0KyZmf
|
||||||
|
wVD89qSTlnctLcZnIavjKsKUu1nA1iU0yYMdYepKR7lWbnwhdx3ewok=
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
Before Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 283 KiB After Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 23 KiB |
@@ -1 +1,4 @@
|
|||||||
extensions:
|
extensions:
|
||||||
|
- hive_ce: true
|
||||||
|
- shared_preferences: true
|
||||||
|
- provider: true
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
flutter_launcher_icons:
|
||||||
|
android: true
|
||||||
|
ios: true
|
||||||
|
remove_alpha_ios: true
|
||||||
|
image_path_android: "assets/logo/icon/ic_launcher.png"
|
||||||
|
image_path_ios: "assets/logo/icon/1024.png"
|
||||||
|
adaptive_icon_background: "assets/logo/icon/ic_launcher_adaptive_back.png" # only available for Android 8.0 devices and above
|
||||||
|
adaptive_icon_foreground: "assets/logo/icon/ic_launcher_adaptive_fore.png" # only available for Android 8.0 devices and above
|
||||||
|
min_sdk_android: 16 # android min sdk min:16, default 21
|
||||||
@@ -54,7 +54,7 @@ flutter_native_splash:
|
|||||||
# 640 pixels in diameter.
|
# 640 pixels in diameter.
|
||||||
# App icon without an icon background: This should be 1152×1152 pixels, and fit within a circle
|
# App icon without an icon background: This should be 1152×1152 pixels, and fit within a circle
|
||||||
# 768 pixels in diameter.
|
# 768 pixels in diameter.
|
||||||
image: assets/logo/icon-android12.png
|
image: assets/logo/icon/icon-android12.png
|
||||||
|
|
||||||
# Splash screen background color.
|
# Splash screen background color.
|
||||||
color: "#993333"
|
color: "#993333"
|
||||||
|
|||||||
@@ -21,6 +21,6 @@
|
|||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.0</string>
|
<string>1.0</string>
|
||||||
<key>MinimumOSVersion</key>
|
<key>MinimumOSVersion</key>
|
||||||
<string>11.0</string>
|
<string>13.0</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Uncomment this line to define a global platform for your project
|
# Uncomment this line to define a global platform for your project
|
||||||
platform :ios, '11.0'
|
platform :ios, '15.0'
|
||||||
|
|
||||||
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
|
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
|
||||||
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
|
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
|
||||||
@@ -31,6 +31,8 @@ target 'Runner' do
|
|||||||
use_frameworks!
|
use_frameworks!
|
||||||
use_modular_headers!
|
use_modular_headers!
|
||||||
|
|
||||||
|
pod 'PhoneNumberKit', '~> 3.7.6'
|
||||||
|
|
||||||
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
|
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
|
||||||
# target 'RunnerTests' do
|
# target 'RunnerTests' do
|
||||||
# inherit! :search_paths
|
# inherit! :search_paths
|
||||||
|
|||||||
@@ -1,185 +1,190 @@
|
|||||||
PODS:
|
PODS:
|
||||||
- better_open_file (0.0.1):
|
- connectivity_plus (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- device_info_plus (0.0.1):
|
- device_info_plus (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- DKImagePickerController/Core (4.3.4):
|
- DKImagePickerController/Core (4.3.9):
|
||||||
- DKImagePickerController/ImageDataManager
|
- DKImagePickerController/ImageDataManager
|
||||||
- DKImagePickerController/Resource
|
- DKImagePickerController/Resource
|
||||||
- DKImagePickerController/ImageDataManager (4.3.4)
|
- DKImagePickerController/ImageDataManager (4.3.9)
|
||||||
- DKImagePickerController/PhotoGallery (4.3.4):
|
- DKImagePickerController/PhotoGallery (4.3.9):
|
||||||
- DKImagePickerController/Core
|
- DKImagePickerController/Core
|
||||||
- DKPhotoGallery
|
- DKPhotoGallery
|
||||||
- DKImagePickerController/Resource (4.3.4)
|
- DKImagePickerController/Resource (4.3.9)
|
||||||
- DKPhotoGallery (0.0.17):
|
- DKPhotoGallery (0.0.19):
|
||||||
- DKPhotoGallery/Core (= 0.0.17)
|
- DKPhotoGallery/Core (= 0.0.19)
|
||||||
- DKPhotoGallery/Model (= 0.0.17)
|
- DKPhotoGallery/Model (= 0.0.19)
|
||||||
- DKPhotoGallery/Preview (= 0.0.17)
|
- DKPhotoGallery/Preview (= 0.0.19)
|
||||||
- DKPhotoGallery/Resource (= 0.0.17)
|
- DKPhotoGallery/Resource (= 0.0.19)
|
||||||
- SDWebImage
|
- SDWebImage
|
||||||
- SwiftyGif
|
- SwiftyGif
|
||||||
- DKPhotoGallery/Core (0.0.17):
|
- DKPhotoGallery/Core (0.0.19):
|
||||||
- DKPhotoGallery/Model
|
- DKPhotoGallery/Model
|
||||||
- DKPhotoGallery/Preview
|
- DKPhotoGallery/Preview
|
||||||
- SDWebImage
|
- SDWebImage
|
||||||
- SwiftyGif
|
- SwiftyGif
|
||||||
- DKPhotoGallery/Model (0.0.17):
|
- DKPhotoGallery/Model (0.0.19):
|
||||||
- SDWebImage
|
- SDWebImage
|
||||||
- SwiftyGif
|
- SwiftyGif
|
||||||
- DKPhotoGallery/Preview (0.0.17):
|
- DKPhotoGallery/Preview (0.0.19):
|
||||||
- DKPhotoGallery/Model
|
- DKPhotoGallery/Model
|
||||||
- DKPhotoGallery/Resource
|
- DKPhotoGallery/Resource
|
||||||
- SDWebImage
|
- SDWebImage
|
||||||
- SwiftyGif
|
- SwiftyGif
|
||||||
- DKPhotoGallery/Resource (0.0.17):
|
- DKPhotoGallery/Resource (0.0.19):
|
||||||
- SDWebImage
|
- SDWebImage
|
||||||
- SwiftyGif
|
- SwiftyGif
|
||||||
- fast_rsa (0.6.0):
|
- emoji_picker_flutter (0.0.1):
|
||||||
|
- Flutter
|
||||||
|
- fast_rsa (0.7.0):
|
||||||
- Flutter
|
- Flutter
|
||||||
- file_picker (0.0.1):
|
- file_picker (0.0.1):
|
||||||
- DKImagePickerController/PhotoGallery
|
- DKImagePickerController/PhotoGallery
|
||||||
- Flutter
|
- Flutter
|
||||||
- Firebase/CoreOnly (10.12.0):
|
- Firebase/CoreOnly (12.4.0):
|
||||||
- FirebaseCore (= 10.12.0)
|
- FirebaseCore (~> 12.4.0)
|
||||||
- Firebase/InAppMessaging (10.12.0):
|
- Firebase/InAppMessaging (12.4.0):
|
||||||
- Firebase/CoreOnly
|
- Firebase/CoreOnly
|
||||||
- FirebaseInAppMessaging (~> 10.12.0-beta)
|
- FirebaseInAppMessaging (~> 12.4.0-beta)
|
||||||
- Firebase/Messaging (10.12.0):
|
- Firebase/Messaging (12.4.0):
|
||||||
- Firebase/CoreOnly
|
- Firebase/CoreOnly
|
||||||
- FirebaseMessaging (~> 10.12.0)
|
- FirebaseMessaging (~> 12.4.0)
|
||||||
- firebase_core (2.15.1):
|
- firebase_core (4.2.1):
|
||||||
- Firebase/CoreOnly (= 10.12.0)
|
- Firebase/CoreOnly (= 12.4.0)
|
||||||
- Flutter
|
- Flutter
|
||||||
- firebase_in_app_messaging (0.7.3-5):
|
- firebase_in_app_messaging (0.9.0-4):
|
||||||
- Firebase/InAppMessaging (= 10.12.0)
|
- Firebase/InAppMessaging (= 12.4.0)
|
||||||
- firebase_core
|
- firebase_core
|
||||||
- Flutter
|
- Flutter
|
||||||
- firebase_messaging (14.6.6):
|
- firebase_messaging (16.0.4):
|
||||||
- Firebase/Messaging (= 10.12.0)
|
- Firebase/Messaging (= 12.4.0)
|
||||||
- firebase_core
|
- firebase_core
|
||||||
- Flutter
|
- Flutter
|
||||||
- FirebaseABTesting (10.13.0):
|
- FirebaseABTesting (12.4.0):
|
||||||
- FirebaseCore (~> 10.0)
|
- FirebaseCore (~> 12.4.0)
|
||||||
- FirebaseCore (10.12.0):
|
- FirebaseCore (12.4.0):
|
||||||
- FirebaseCoreInternal (~> 10.0)
|
- FirebaseCoreInternal (~> 12.4.0)
|
||||||
- GoogleUtilities/Environment (~> 7.8)
|
- GoogleUtilities/Environment (~> 8.1)
|
||||||
- GoogleUtilities/Logger (~> 7.8)
|
- GoogleUtilities/Logger (~> 8.1)
|
||||||
- FirebaseCoreInternal (10.13.0):
|
- FirebaseCoreInternal (12.4.0):
|
||||||
- "GoogleUtilities/NSData+zlib (~> 7.8)"
|
- "GoogleUtilities/NSData+zlib (~> 8.1)"
|
||||||
- FirebaseInAppMessaging (10.12.0-beta):
|
- FirebaseInAppMessaging (12.4.0-beta):
|
||||||
- FirebaseABTesting (~> 10.0)
|
- FirebaseABTesting (~> 12.4.0)
|
||||||
- FirebaseCore (~> 10.0)
|
- FirebaseCore (~> 12.4.0)
|
||||||
- FirebaseInstallations (~> 10.0)
|
- FirebaseInstallations (~> 12.4.0)
|
||||||
- GoogleUtilities/Environment (~> 7.8)
|
- GoogleUtilities/Environment (~> 8.1)
|
||||||
- nanopb (< 2.30910.0, >= 2.30908.0)
|
- GoogleUtilities/UserDefaults (~> 8.1)
|
||||||
- FirebaseInstallations (10.13.0):
|
- nanopb (~> 3.30910.0)
|
||||||
- FirebaseCore (~> 10.0)
|
- FirebaseInstallations (12.4.0):
|
||||||
- GoogleUtilities/Environment (~> 7.8)
|
- FirebaseCore (~> 12.4.0)
|
||||||
- GoogleUtilities/UserDefaults (~> 7.8)
|
- GoogleUtilities/Environment (~> 8.1)
|
||||||
- PromisesObjC (~> 2.1)
|
- GoogleUtilities/UserDefaults (~> 8.1)
|
||||||
- FirebaseMessaging (10.12.0):
|
- PromisesObjC (~> 2.4)
|
||||||
- FirebaseCore (~> 10.0)
|
- FirebaseMessaging (12.4.0):
|
||||||
- FirebaseInstallations (~> 10.0)
|
- FirebaseCore (~> 12.4.0)
|
||||||
- GoogleDataTransport (~> 9.2)
|
- FirebaseInstallations (~> 12.4.0)
|
||||||
- GoogleUtilities/AppDelegateSwizzler (~> 7.8)
|
- GoogleDataTransport (~> 10.1)
|
||||||
- GoogleUtilities/Environment (~> 7.8)
|
- GoogleUtilities/AppDelegateSwizzler (~> 8.1)
|
||||||
- GoogleUtilities/Reachability (~> 7.8)
|
- GoogleUtilities/Environment (~> 8.1)
|
||||||
- GoogleUtilities/UserDefaults (~> 7.8)
|
- GoogleUtilities/Reachability (~> 8.1)
|
||||||
- nanopb (< 2.30910.0, >= 2.30908.0)
|
- GoogleUtilities/UserDefaults (~> 8.1)
|
||||||
|
- nanopb (~> 3.30910.0)
|
||||||
- Flutter (1.0.0)
|
- Flutter (1.0.0)
|
||||||
- flutter_app_badger (1.3.0):
|
- flutter_app_badge (2.0.0):
|
||||||
- Flutter
|
- Flutter
|
||||||
- flutter_local_notifications (0.0.1):
|
- flutter_local_notifications (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- flutter_native_splash (0.0.1):
|
- flutter_native_splash (2.4.3):
|
||||||
- Flutter
|
- Flutter
|
||||||
- fluttertoast (0.0.2):
|
- GoogleDataTransport (10.1.0):
|
||||||
- Flutter
|
- nanopb (~> 3.30910.0)
|
||||||
- Toast
|
- PromisesObjC (~> 2.4)
|
||||||
- FMDB (2.7.5):
|
- GoogleUtilities/AppDelegateSwizzler (8.1.0):
|
||||||
- FMDB/standard (= 2.7.5)
|
|
||||||
- FMDB/standard (2.7.5)
|
|
||||||
- GoogleDataTransport (9.2.5):
|
|
||||||
- GoogleUtilities/Environment (~> 7.7)
|
|
||||||
- nanopb (< 2.30910.0, >= 2.30908.0)
|
|
||||||
- PromisesObjC (< 3.0, >= 1.2)
|
|
||||||
- GoogleUtilities/AppDelegateSwizzler (7.11.5):
|
|
||||||
- GoogleUtilities/Environment
|
- GoogleUtilities/Environment
|
||||||
- GoogleUtilities/Logger
|
- GoogleUtilities/Logger
|
||||||
- GoogleUtilities/Network
|
- GoogleUtilities/Network
|
||||||
- GoogleUtilities/Environment (7.11.5):
|
- GoogleUtilities/Privacy
|
||||||
- PromisesObjC (< 3.0, >= 1.2)
|
- GoogleUtilities/Environment (8.1.0):
|
||||||
- GoogleUtilities/Logger (7.11.5):
|
- GoogleUtilities/Privacy
|
||||||
|
- GoogleUtilities/Logger (8.1.0):
|
||||||
- GoogleUtilities/Environment
|
- GoogleUtilities/Environment
|
||||||
- GoogleUtilities/Network (7.11.5):
|
- GoogleUtilities/Privacy
|
||||||
|
- GoogleUtilities/Network (8.1.0):
|
||||||
- GoogleUtilities/Logger
|
- GoogleUtilities/Logger
|
||||||
- "GoogleUtilities/NSData+zlib"
|
- "GoogleUtilities/NSData+zlib"
|
||||||
|
- GoogleUtilities/Privacy
|
||||||
- GoogleUtilities/Reachability
|
- GoogleUtilities/Reachability
|
||||||
- "GoogleUtilities/NSData+zlib (7.11.5)"
|
- "GoogleUtilities/NSData+zlib (8.1.0)":
|
||||||
- GoogleUtilities/Reachability (7.11.5):
|
- GoogleUtilities/Privacy
|
||||||
|
- GoogleUtilities/Privacy (8.1.0)
|
||||||
|
- GoogleUtilities/Reachability (8.1.0):
|
||||||
- GoogleUtilities/Logger
|
- GoogleUtilities/Logger
|
||||||
- GoogleUtilities/UserDefaults (7.11.5):
|
- GoogleUtilities/Privacy
|
||||||
|
- GoogleUtilities/UserDefaults (8.1.0):
|
||||||
- GoogleUtilities/Logger
|
- GoogleUtilities/Logger
|
||||||
|
- GoogleUtilities/Privacy
|
||||||
- image_picker_ios (0.0.1):
|
- image_picker_ios (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- libphonenumber_plugin (0.0.1):
|
- in_app_review (2.0.0):
|
||||||
- Flutter
|
- Flutter
|
||||||
- PhoneNumberKit
|
- nanopb (3.30910.0):
|
||||||
- nanopb (2.30909.0):
|
- nanopb/decode (= 3.30910.0)
|
||||||
- nanopb/decode (= 2.30909.0)
|
- nanopb/encode (= 3.30910.0)
|
||||||
- nanopb/encode (= 2.30909.0)
|
- nanopb/decode (3.30910.0)
|
||||||
- nanopb/decode (2.30909.0)
|
- nanopb/encode (3.30910.0)
|
||||||
- nanopb/encode (2.30909.0)
|
- open_filex (0.0.2):
|
||||||
- package_info (0.0.1):
|
- Flutter
|
||||||
|
- package_info_plus (0.4.5):
|
||||||
- Flutter
|
- Flutter
|
||||||
- path_provider_foundation (0.0.1):
|
- path_provider_foundation (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- FlutterMacOS
|
- FlutterMacOS
|
||||||
- PhoneNumberKit (3.6.7):
|
- PhoneNumberKit (3.7.11):
|
||||||
- PhoneNumberKit/PhoneNumberKitCore (= 3.6.7)
|
- PhoneNumberKit/PhoneNumberKitCore (= 3.7.11)
|
||||||
- PhoneNumberKit/UIKit (= 3.6.7)
|
- PhoneNumberKit/UIKit (= 3.7.11)
|
||||||
- PhoneNumberKit/PhoneNumberKitCore (3.6.7)
|
- PhoneNumberKit/PhoneNumberKitCore (3.7.11)
|
||||||
- PhoneNumberKit/UIKit (3.6.7):
|
- PhoneNumberKit/UIKit (3.7.11):
|
||||||
- PhoneNumberKit/PhoneNumberKitCore
|
- PhoneNumberKit/PhoneNumberKitCore
|
||||||
- PromisesObjC (2.3.1)
|
- PromisesObjC (2.4.0)
|
||||||
- SDWebImage (5.17.0):
|
- SDWebImage (5.21.2):
|
||||||
- SDWebImage/Core (= 5.17.0)
|
- SDWebImage/Core (= 5.21.2)
|
||||||
- SDWebImage/Core (5.17.0)
|
- SDWebImage/Core (5.21.2)
|
||||||
- share_plus (0.0.1):
|
- share_plus (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- shared_preferences_foundation (0.0.1):
|
- shared_preferences_foundation (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- FlutterMacOS
|
- FlutterMacOS
|
||||||
- sqflite (0.0.3):
|
- sqflite_darwin (0.0.4):
|
||||||
- Flutter
|
- Flutter
|
||||||
- FMDB (>= 2.7.5)
|
- FlutterMacOS
|
||||||
- SwiftyGif (5.4.4)
|
- SwiftyGif (5.4.5)
|
||||||
- syncfusion_flutter_pdfviewer (0.0.1):
|
- syncfusion_flutter_pdfviewer (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- Toast (4.0.0)
|
|
||||||
- url_launcher_ios (0.0.1):
|
- url_launcher_ios (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- better_open_file (from `.symlinks/plugins/better_open_file/ios`)
|
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
|
||||||
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
|
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
|
||||||
|
- emoji_picker_flutter (from `.symlinks/plugins/emoji_picker_flutter/ios`)
|
||||||
- fast_rsa (from `.symlinks/plugins/fast_rsa/ios`)
|
- fast_rsa (from `.symlinks/plugins/fast_rsa/ios`)
|
||||||
- file_picker (from `.symlinks/plugins/file_picker/ios`)
|
- file_picker (from `.symlinks/plugins/file_picker/ios`)
|
||||||
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
|
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
|
||||||
- firebase_in_app_messaging (from `.symlinks/plugins/firebase_in_app_messaging/ios`)
|
- firebase_in_app_messaging (from `.symlinks/plugins/firebase_in_app_messaging/ios`)
|
||||||
- firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
|
- firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
|
||||||
- Flutter (from `Flutter`)
|
- Flutter (from `Flutter`)
|
||||||
- flutter_app_badger (from `.symlinks/plugins/flutter_app_badger/ios`)
|
- flutter_app_badge (from `.symlinks/plugins/flutter_app_badge/ios`)
|
||||||
- flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`)
|
- flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`)
|
||||||
- flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`)
|
- flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`)
|
||||||
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
|
|
||||||
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
|
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
|
||||||
- libphonenumber_plugin (from `.symlinks/plugins/libphonenumber_plugin/ios`)
|
- in_app_review (from `.symlinks/plugins/in_app_review/ios`)
|
||||||
- package_info (from `.symlinks/plugins/package_info/ios`)
|
- open_filex (from `.symlinks/plugins/open_filex/ios`)
|
||||||
|
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
|
||||||
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
||||||
|
- PhoneNumberKit (~> 3.7.6)
|
||||||
- share_plus (from `.symlinks/plugins/share_plus/ios`)
|
- share_plus (from `.symlinks/plugins/share_plus/ios`)
|
||||||
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
|
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
|
||||||
- sqflite (from `.symlinks/plugins/sqflite/ios`)
|
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
|
||||||
- syncfusion_flutter_pdfviewer (from `.symlinks/plugins/syncfusion_flutter_pdfviewer/ios`)
|
- syncfusion_flutter_pdfviewer (from `.symlinks/plugins/syncfusion_flutter_pdfviewer/ios`)
|
||||||
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
|
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
|
||||||
|
|
||||||
@@ -194,7 +199,6 @@ SPEC REPOS:
|
|||||||
- FirebaseInAppMessaging
|
- FirebaseInAppMessaging
|
||||||
- FirebaseInstallations
|
- FirebaseInstallations
|
||||||
- FirebaseMessaging
|
- FirebaseMessaging
|
||||||
- FMDB
|
|
||||||
- GoogleDataTransport
|
- GoogleDataTransport
|
||||||
- GoogleUtilities
|
- GoogleUtilities
|
||||||
- nanopb
|
- nanopb
|
||||||
@@ -202,13 +206,14 @@ SPEC REPOS:
|
|||||||
- PromisesObjC
|
- PromisesObjC
|
||||||
- SDWebImage
|
- SDWebImage
|
||||||
- SwiftyGif
|
- SwiftyGif
|
||||||
- Toast
|
|
||||||
|
|
||||||
EXTERNAL SOURCES:
|
EXTERNAL SOURCES:
|
||||||
better_open_file:
|
connectivity_plus:
|
||||||
:path: ".symlinks/plugins/better_open_file/ios"
|
:path: ".symlinks/plugins/connectivity_plus/ios"
|
||||||
device_info_plus:
|
device_info_plus:
|
||||||
:path: ".symlinks/plugins/device_info_plus/ios"
|
:path: ".symlinks/plugins/device_info_plus/ios"
|
||||||
|
emoji_picker_flutter:
|
||||||
|
:path: ".symlinks/plugins/emoji_picker_flutter/ios"
|
||||||
fast_rsa:
|
fast_rsa:
|
||||||
:path: ".symlinks/plugins/fast_rsa/ios"
|
:path: ".symlinks/plugins/fast_rsa/ios"
|
||||||
file_picker:
|
file_picker:
|
||||||
@@ -221,74 +226,73 @@ EXTERNAL SOURCES:
|
|||||||
:path: ".symlinks/plugins/firebase_messaging/ios"
|
:path: ".symlinks/plugins/firebase_messaging/ios"
|
||||||
Flutter:
|
Flutter:
|
||||||
:path: Flutter
|
:path: Flutter
|
||||||
flutter_app_badger:
|
flutter_app_badge:
|
||||||
:path: ".symlinks/plugins/flutter_app_badger/ios"
|
:path: ".symlinks/plugins/flutter_app_badge/ios"
|
||||||
flutter_local_notifications:
|
flutter_local_notifications:
|
||||||
:path: ".symlinks/plugins/flutter_local_notifications/ios"
|
:path: ".symlinks/plugins/flutter_local_notifications/ios"
|
||||||
flutter_native_splash:
|
flutter_native_splash:
|
||||||
:path: ".symlinks/plugins/flutter_native_splash/ios"
|
:path: ".symlinks/plugins/flutter_native_splash/ios"
|
||||||
fluttertoast:
|
|
||||||
:path: ".symlinks/plugins/fluttertoast/ios"
|
|
||||||
image_picker_ios:
|
image_picker_ios:
|
||||||
:path: ".symlinks/plugins/image_picker_ios/ios"
|
:path: ".symlinks/plugins/image_picker_ios/ios"
|
||||||
libphonenumber_plugin:
|
in_app_review:
|
||||||
:path: ".symlinks/plugins/libphonenumber_plugin/ios"
|
:path: ".symlinks/plugins/in_app_review/ios"
|
||||||
package_info:
|
open_filex:
|
||||||
:path: ".symlinks/plugins/package_info/ios"
|
:path: ".symlinks/plugins/open_filex/ios"
|
||||||
|
package_info_plus:
|
||||||
|
:path: ".symlinks/plugins/package_info_plus/ios"
|
||||||
path_provider_foundation:
|
path_provider_foundation:
|
||||||
:path: ".symlinks/plugins/path_provider_foundation/darwin"
|
:path: ".symlinks/plugins/path_provider_foundation/darwin"
|
||||||
share_plus:
|
share_plus:
|
||||||
:path: ".symlinks/plugins/share_plus/ios"
|
:path: ".symlinks/plugins/share_plus/ios"
|
||||||
shared_preferences_foundation:
|
shared_preferences_foundation:
|
||||||
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
|
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
|
||||||
sqflite:
|
sqflite_darwin:
|
||||||
:path: ".symlinks/plugins/sqflite/ios"
|
:path: ".symlinks/plugins/sqflite_darwin/darwin"
|
||||||
syncfusion_flutter_pdfviewer:
|
syncfusion_flutter_pdfviewer:
|
||||||
:path: ".symlinks/plugins/syncfusion_flutter_pdfviewer/ios"
|
:path: ".symlinks/plugins/syncfusion_flutter_pdfviewer/ios"
|
||||||
url_launcher_ios:
|
url_launcher_ios:
|
||||||
:path: ".symlinks/plugins/url_launcher_ios/ios"
|
:path: ".symlinks/plugins/url_launcher_ios/ios"
|
||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
better_open_file: 03cf320415d4d3f46b6e00adc4a567d76c1a399d
|
connectivity_plus: cb623214f4e1f6ef8fe7403d580fdad517d2f7dd
|
||||||
device_info_plus: 7545d84d8d1b896cb16a4ff98c19f07ec4b298ea
|
device_info_plus: 21fcca2080fbcd348be798aa36c3e5ed849eefbe
|
||||||
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
|
DKImagePickerController: 946cec48c7873164274ecc4624d19e3da4c1ef3c
|
||||||
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
|
DKPhotoGallery: b3834fecb755ee09a593d7c9e389d8b5d6deed60
|
||||||
fast_rsa: f696740d492d562e76f17b0a81dfc8ec3e635374
|
emoji_picker_flutter: ece213fc274bdddefb77d502d33080dc54e616cc
|
||||||
file_picker: ce3938a0df3cc1ef404671531facef740d03f920
|
fast_rsa: fb70897d51040b094c780d5f1d7358614738b879
|
||||||
Firebase: 07150e75d142fb9399f6777fa56a187b17f833a0
|
file_picker: a0560bc09d61de87f12d246fc47d2119e6ef37be
|
||||||
firebase_core: 4a3246a02f828a01c74a2c26427037786d90f17f
|
Firebase: f07b15ae5a6ec0f93713e30b923d9970d144af3e
|
||||||
firebase_in_app_messaging: aebdbc10109a0ce44a3294f4ea57ed89ebe1d8bd
|
firebase_core: f1aafb21c14f497e5498f7ffc4dc63cbb52b2594
|
||||||
firebase_messaging: 13b378c8449cae7ec96c79570170943dd73d4738
|
firebase_in_app_messaging: 04dfc07ab81578ef83bf0c0229be258ddf287c4f
|
||||||
FirebaseABTesting: 86ac5a4fc749088bb4d55a1cbfb2c4cb42c6d5de
|
firebase_messaging: c17a29984eafce4b2997fe078bb0a9e0b06f5dde
|
||||||
FirebaseCore: f86a1394906b97ac445ae49c92552a9425831bed
|
FirebaseABTesting: c05b5ec9f1d9f21a65909525de301d375032d9a4
|
||||||
FirebaseCoreInternal: b342e37cd4f5b4454ec34308f073420e7920858e
|
FirebaseCore: bb595f3114953664e3c1dc032f008a244147cfd3
|
||||||
FirebaseInAppMessaging: dc24f50aebaf81a377f0b8abf360778f94208931
|
FirebaseCoreInternal: d7f5a043c2cd01a08103ab586587c1468047bca6
|
||||||
FirebaseInstallations: b28af1b9f997f1a799efe818c94695a3728c352f
|
FirebaseInAppMessaging: 606dd4d4d5590a3d8229f363fdebb485235985b2
|
||||||
FirebaseMessaging: bb2c4f6422a753038fe137d90ae7c1af57251316
|
FirebaseInstallations: ae9f4902cb5bf1d0c5eaa31ec1f4e5495a0714e2
|
||||||
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
|
FirebaseMessaging: d33971b7bb252745ea6cd31ab190d1a1df4b8ed5
|
||||||
flutter_app_badger: b87fc231847b03b92ce1412aa351842e7e97932f
|
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
|
||||||
flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743
|
flutter_app_badge: ca742dd659a157c1090ef7cd881cb78f48f3bcdf
|
||||||
flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef
|
flutter_local_notifications: a5a732f069baa862e728d839dd2ebb904737effb
|
||||||
fluttertoast: fafc4fa4d01a6a9e4f772ecd190ffa525e9e2d9c
|
flutter_native_splash: c32d145d68aeda5502d5f543ee38c192065986cf
|
||||||
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
|
GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7
|
||||||
GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2
|
GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1
|
||||||
GoogleUtilities: 13e2c67ede716b8741c7989e26893d151b2b2084
|
image_picker_ios: e0ece4aa2a75771a7de3fa735d26d90817041326
|
||||||
image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
|
in_app_review: 7dd1ea365263f834b8464673f9df72c80c17c937
|
||||||
libphonenumber_plugin: e8a7d64a6624a7c25f2c4ab0b7ead2a8e341e35e
|
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
|
||||||
nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
|
open_filex: 432f3cd11432da3e39f47fcc0df2b1603854eff1
|
||||||
package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
|
package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
|
||||||
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
|
path_provider_foundation: bb55f6dbba17d0dccd6737fe6f7f34fbd0376880
|
||||||
PhoneNumberKit: 43b5169526cc417398c8f13f77c97552c1c6ed76
|
PhoneNumberKit: ced55861269312a5e3bc2ef82a58d6255b1c976a
|
||||||
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
|
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
|
||||||
SDWebImage: 750adf017a315a280c60fde706ab1e552a3ae4e9
|
SDWebImage: 9f177d83116802728e122410fb25ad88f5c7608a
|
||||||
share_plus: 599aa54e4ea31d4b4c0e9c911bcc26c55e791028
|
share_plus: 50da8cb520a8f0f65671c6c6a99b3617ed10a58a
|
||||||
shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
|
shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb
|
||||||
sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a
|
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
|
||||||
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
|
SwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4
|
||||||
syncfusion_flutter_pdfviewer: bb9998884b864cfedf72628df3503bdf57e397c0
|
syncfusion_flutter_pdfviewer: 90dc48305d2e33d4aa20681d1e98ddeda891bc14
|
||||||
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
|
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b
|
||||||
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
|
|
||||||
|
|
||||||
PODFILE CHECKSUM: 3d89a90682e2cd438911ad748b8ba5992f8b6a0e
|
PODFILE CHECKSUM: e21c9d4c7b9623c73c6784ddc132fd50a603ad93
|
||||||
|
|
||||||
COCOAPODS: 1.12.1
|
COCOAPODS: 1.16.2
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||||
|
33FDB0982EE9ABDC000B2391 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 33FDB0972EE9ABDC000B2391 /* GoogleService-Info.plist */; };
|
||||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||||
6483E4432A911EA00063B51E /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 6483E4422A911EA00063B51E /* GoogleService-Info.plist */; };
|
|
||||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
||||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
||||||
@@ -33,10 +33,10 @@
|
|||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
||||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||||
|
33FDB0972EE9ABDC000B2391 /* GoogleService-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
|
||||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||||
4509EC31CB08BA9BF367AF6C /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
4509EC31CB08BA9BF367AF6C /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
||||||
64801C012A9112D500E8B558 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
|
64801C012A9112D500E8B558 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
|
||||||
6483E4422A911EA00063B51E /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "../../../../Downloads/GoogleService-Info.plist"; sourceTree = "<group>"; };
|
|
||||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||||
@@ -115,12 +115,12 @@
|
|||||||
97C146F01CF9000F007C117D /* Runner */ = {
|
97C146F01CF9000F007C117D /* Runner */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
33FDB0972EE9ABDC000B2391 /* GoogleService-Info.plist */,
|
||||||
64801C012A9112D500E8B558 /* Runner.entitlements */,
|
64801C012A9112D500E8B558 /* Runner.entitlements */,
|
||||||
97C146FA1CF9000F007C117D /* Main.storyboard */,
|
97C146FA1CF9000F007C117D /* Main.storyboard */,
|
||||||
97C146FD1CF9000F007C117D /* Assets.xcassets */,
|
97C146FD1CF9000F007C117D /* Assets.xcassets */,
|
||||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
|
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
|
||||||
97C147021CF9000F007C117D /* Info.plist */,
|
97C147021CF9000F007C117D /* Info.plist */,
|
||||||
6483E4422A911EA00063B51E /* GoogleService-Info.plist */,
|
|
||||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
|
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
|
||||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
|
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
|
||||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
|
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
|
||||||
@@ -144,6 +144,7 @@
|
|||||||
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
||||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
||||||
174B54D80220E5F588BD9737 /* [CP] Embed Pods Frameworks */,
|
174B54D80220E5F588BD9737 /* [CP] Embed Pods Frameworks */,
|
||||||
|
859FAB4E05FAC31B7B1A62D7 /* [CP] Copy Pods Resources */,
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
@@ -161,7 +162,7 @@
|
|||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
BuildIndependentTargetsInParallel = YES;
|
BuildIndependentTargetsInParallel = YES;
|
||||||
LastUpgradeCheck = 1430;
|
LastUpgradeCheck = 1510;
|
||||||
ORGANIZATIONNAME = "";
|
ORGANIZATIONNAME = "";
|
||||||
TargetAttributes = {
|
TargetAttributes = {
|
||||||
97C146ED1CF9000F007C117D = {
|
97C146ED1CF9000F007C117D = {
|
||||||
@@ -195,7 +196,7 @@
|
|||||||
files = (
|
files = (
|
||||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
||||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
||||||
6483E4432A911EA00063B51E /* GoogleService-Info.plist in Resources */,
|
33FDB0982EE9ABDC000B2391 /* GoogleService-Info.plist in Resources */,
|
||||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
||||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
||||||
);
|
);
|
||||||
@@ -212,10 +213,14 @@
|
|||||||
inputFileListPaths = (
|
inputFileListPaths = (
|
||||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
||||||
);
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
name = "[CP] Embed Pods Frameworks";
|
name = "[CP] Embed Pods Frameworks";
|
||||||
outputFileListPaths = (
|
outputFileListPaths = (
|
||||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
||||||
);
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
|
||||||
@@ -237,6 +242,27 @@
|
|||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
|
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
|
||||||
};
|
};
|
||||||
|
859FAB4E05FAC31B7B1A62D7 /* [CP] Copy Pods Resources */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputFileListPaths = (
|
||||||
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
name = "[CP] Copy Pods Resources";
|
||||||
|
outputFileListPaths = (
|
||||||
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
|
||||||
|
showEnvVarsInLog = 0;
|
||||||
|
};
|
||||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
alwaysOutOfDate = 1;
|
alwaysOutOfDate = 1;
|
||||||
@@ -349,7 +375,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SUPPORTED_PLATFORMS = iphoneos;
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
@@ -434,7 +460,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = YES;
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
@@ -483,7 +509,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SUPPORTED_PLATFORMS = iphoneos;
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Scheme
|
<Scheme
|
||||||
LastUpgradeVersion = "1430"
|
LastUpgradeVersion = "1510"
|
||||||
version = "1.3">
|
version = "1.3">
|
||||||
<BuildAction
|
<BuildAction
|
||||||
parallelizeBuildables = "YES"
|
parallelizeBuildables = "YES"
|
||||||
@@ -26,6 +26,7 @@
|
|||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||||
<MacroExpansion>
|
<MacroExpansion>
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
@@ -43,11 +44,13 @@
|
|||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
|
||||||
launchStyle = "0"
|
launchStyle = "0"
|
||||||
useCustomWorkingDirectory = "NO"
|
useCustomWorkingDirectory = "NO"
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
debugDocumentVersioning = "YES"
|
debugDocumentVersioning = "YES"
|
||||||
debugServiceExtension = "internal"
|
debugServiceExtension = "internal"
|
||||||
|
enableGPUValidationMode = "1"
|
||||||
allowLocationSimulation = "YES">
|
allowLocationSimulation = "YES">
|
||||||
<BuildableProductRunnable
|
<BuildableProductRunnable
|
||||||
runnableDebuggingMode = "0">
|
runnableDebuggingMode = "0">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import UIKit
|
import UIKit
|
||||||
import Flutter
|
import Flutter
|
||||||
|
|
||||||
@UIApplicationMain
|
@main
|
||||||
@objc class AppDelegate: FlutterAppDelegate {
|
@objc class AppDelegate: FlutterAppDelegate {
|
||||||
override func application(
|
override func application(
|
||||||
_ application: UIApplication,
|
_ application: UIApplication,
|
||||||
|
|||||||
@@ -26,6 +26,8 @@
|
|||||||
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>NSCameraUsageDescription</key>
|
||||||
|
<string>Um Fotos direkt aus der App aufnehmen und teilen zu können wird Zugriff auf die Kamera benötigt.</string>
|
||||||
<key>NSPhotoLibraryUsageDescription</key>
|
<key>NSPhotoLibraryUsageDescription</key>
|
||||||
<string>Um Medien mit anderen zu teilen wird Zugriff zu deine Dateien benötigt.</string>
|
<string>Um Medien mit anderen zu teilen wird Zugriff zu deine Dateien benötigt.</string>
|
||||||
<key>UIApplicationSupportsIndirectInputEvents</key>
|
<key>UIApplicationSupportsIndirectInputEvents</key>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class ApiError {
|
class ApiError implements Exception {
|
||||||
String message;
|
String message;
|
||||||
|
|
||||||
ApiError(this.message);
|
ApiError(this.message);
|
||||||
@@ -5,5 +5,5 @@ abstract class ApiResponse {
|
|||||||
late http.Response rawResponse;
|
late http.Response rawResponse;
|
||||||
|
|
||||||
@JsonKey(includeIfNull: false)
|
@JsonKey(includeIfNull: false)
|
||||||
late Map<String, String>? headers;
|
Map<String, String>? headers;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
abstract class AppException implements Exception {
|
||||||
|
final String userMessage;
|
||||||
|
final String? technicalDetails;
|
||||||
|
final bool allowRetry;
|
||||||
|
|
||||||
|
const AppException({
|
||||||
|
required this.userMessage,
|
||||||
|
this.technicalDetails,
|
||||||
|
this.allowRetry = true,
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() => technicalDetails == null
|
||||||
|
? '$runtimeType: $userMessage'
|
||||||
|
: '$runtimeType: $userMessage ($technicalDetails)';
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
import 'app_exception.dart';
|
||||||
|
|
||||||
|
class AuthException extends AppException {
|
||||||
|
final int statusCode;
|
||||||
|
|
||||||
|
const AuthException({
|
||||||
|
required this.statusCode,
|
||||||
|
required super.userMessage,
|
||||||
|
super.technicalDetails,
|
||||||
|
}) : super(allowRetry: false);
|
||||||
|
|
||||||
|
factory AuthException.unauthorized({String? technicalDetails}) => AuthException(
|
||||||
|
statusCode: 401,
|
||||||
|
userMessage: 'Bitte melde dich erneut an, um fortzufahren.',
|
||||||
|
technicalDetails: technicalDetails,
|
||||||
|
);
|
||||||
|
|
||||||
|
factory AuthException.forbidden({String? technicalDetails}) => AuthException(
|
||||||
|
statusCode: 403,
|
||||||
|
userMessage: 'Du hast keine Berechtigung für diese Aktion.',
|
||||||
|
technicalDetails: technicalDetails,
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
import 'dart:async';
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
|
import '../api_error.dart';
|
||||||
|
import '../marianumcloud/talk/talk_error.dart';
|
||||||
|
import '../webuntis/webuntis_error.dart';
|
||||||
|
import 'app_exception.dart';
|
||||||
|
import 'network_exception.dart';
|
||||||
|
import 'parse_exception.dart';
|
||||||
|
import 'talk_exception.dart';
|
||||||
|
import 'webuntis_exception.dart';
|
||||||
|
|
||||||
|
const String _defaultFallback = 'Etwas ist schiefgelaufen. Bitte versuche es erneut.';
|
||||||
|
|
||||||
|
String errorToUserMessage(Object? error, {String fallback = _defaultFallback}) {
|
||||||
|
if (error == null) return fallback;
|
||||||
|
if (error is AppException) return error.userMessage;
|
||||||
|
|
||||||
|
if (error is TalkError) return TalkException(error).userMessage;
|
||||||
|
if (error is WebuntisError) return WebuntisException(error).userMessage;
|
||||||
|
|
||||||
|
if (error is SocketException) {
|
||||||
|
return const NetworkException().userMessage;
|
||||||
|
}
|
||||||
|
if (error is TimeoutException) {
|
||||||
|
return NetworkException.timeout().userMessage;
|
||||||
|
}
|
||||||
|
if (error is http.ClientException) {
|
||||||
|
return const NetworkException().userMessage;
|
||||||
|
}
|
||||||
|
if (error is HandshakeException) {
|
||||||
|
return 'Sichere Verbindung konnte nicht hergestellt werden.';
|
||||||
|
}
|
||||||
|
if (error is FormatException) {
|
||||||
|
return const ParseException().userMessage;
|
||||||
|
}
|
||||||
|
if (error is ApiError) {
|
||||||
|
return _stripDioPrefix(error.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
return fallback;
|
||||||
|
}
|
||||||
|
|
||||||
|
String? errorToTechnicalDetails(Object? error) {
|
||||||
|
if (error == null) return null;
|
||||||
|
if (error is AppException) return error.technicalDetails ?? error.toString();
|
||||||
|
if (error is TalkError) return TalkException(error).technicalDetails;
|
||||||
|
if (error is WebuntisError) return WebuntisException(error).technicalDetails;
|
||||||
|
return error.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool errorAllowsRetry(Object? error) {
|
||||||
|
if (error == null) return true;
|
||||||
|
if (error is AppException) return error.allowRetry;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
String _stripDioPrefix(String raw) {
|
||||||
|
// ApiError messages embed full request URIs; only surface the first line.
|
||||||
|
final firstLine = raw.split('\n').first.trim();
|
||||||
|
return firstLine.isEmpty ? _defaultFallback : firstLine;
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import 'app_exception.dart';
|
||||||
|
|
||||||
|
class NetworkException extends AppException {
|
||||||
|
const NetworkException({
|
||||||
|
super.userMessage = 'Keine Internetverbindung. Bitte prüfe dein Netzwerk und versuche es erneut.',
|
||||||
|
super.technicalDetails,
|
||||||
|
}) : super(allowRetry: true);
|
||||||
|
|
||||||
|
factory NetworkException.timeout({String? technicalDetails}) => NetworkException(
|
||||||
|
userMessage: 'Der Server hat zu lange gebraucht. Bitte versuche es erneut.',
|
||||||
|
technicalDetails: technicalDetails,
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import 'app_exception.dart';
|
||||||
|
|
||||||
|
class NotFoundException extends AppException {
|
||||||
|
const NotFoundException({
|
||||||
|
super.userMessage = 'Der angeforderte Eintrag wurde nicht gefunden.',
|
||||||
|
super.technicalDetails,
|
||||||
|
}) : super(allowRetry: false);
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import 'app_exception.dart';
|
||||||
|
|
||||||
|
class ParseException extends AppException {
|
||||||
|
const ParseException({
|
||||||
|
super.userMessage = 'Die Antwort des Servers konnte nicht gelesen werden.',
|
||||||
|
super.technicalDetails,
|
||||||
|
}) : super(allowRetry: true);
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import 'app_exception.dart';
|
||||||
|
|
||||||
|
class ServerException extends AppException {
|
||||||
|
final int statusCode;
|
||||||
|
|
||||||
|
ServerException({
|
||||||
|
required this.statusCode,
|
||||||
|
String? userMessage,
|
||||||
|
super.technicalDetails,
|
||||||
|
}) : super(
|
||||||
|
userMessage: userMessage ?? 'Der Server hat gerade Probleme (Status $statusCode). Bitte später erneut versuchen.',
|
||||||
|
allowRetry: true,
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import '../marianumcloud/talk/talk_error.dart';
|
||||||
|
import 'app_exception.dart';
|
||||||
|
|
||||||
|
class TalkException extends AppException {
|
||||||
|
final TalkError source;
|
||||||
|
|
||||||
|
TalkException(this.source)
|
||||||
|
: super(
|
||||||
|
userMessage: _mapMessage(source),
|
||||||
|
technicalDetails: 'Talk ${source.status} (${source.code}): ${source.message}',
|
||||||
|
allowRetry: source.code >= 500,
|
||||||
|
);
|
||||||
|
|
||||||
|
static String _mapMessage(TalkError e) {
|
||||||
|
switch (e.code) {
|
||||||
|
case 401:
|
||||||
|
return 'Bitte melde dich erneut an, um auf Talk zuzugreifen.';
|
||||||
|
case 403:
|
||||||
|
return 'Du hast keine Berechtigung für diese Talk-Aktion.';
|
||||||
|
case 404:
|
||||||
|
return 'Dieser Chat existiert nicht oder wurde entfernt.';
|
||||||
|
case 412:
|
||||||
|
return 'Diese Aktion ist im aktuellen Chat-Zustand nicht erlaubt.';
|
||||||
|
case 429:
|
||||||
|
return 'Zu viele Anfragen. Bitte kurz warten und erneut versuchen.';
|
||||||
|
default:
|
||||||
|
if (e.code >= 500) {
|
||||||
|
return 'Talk-Server hat gerade Probleme (${e.code}).';
|
||||||
|
}
|
||||||
|
return e.message.isNotEmpty ? e.message : 'Talk meldet einen Fehler (${e.code}).';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
import '../webuntis/webuntis_error.dart';
|
||||||
|
import 'app_exception.dart';
|
||||||
|
|
||||||
|
class WebuntisException extends AppException {
|
||||||
|
final WebuntisError source;
|
||||||
|
|
||||||
|
WebuntisException(this.source)
|
||||||
|
: super(
|
||||||
|
userMessage: _mapMessage(source),
|
||||||
|
technicalDetails: 'WebUntis (${source.code}): ${source.message}',
|
||||||
|
allowRetry: true,
|
||||||
|
);
|
||||||
|
|
||||||
|
static String _mapMessage(WebuntisError e) {
|
||||||
|
switch (e.code) {
|
||||||
|
case -8504:
|
||||||
|
case -8502:
|
||||||
|
return 'WebUntis-Anmeldung abgelaufen. Bitte erneut anmelden.';
|
||||||
|
case -8520:
|
||||||
|
return 'Bitte melde dich erneut an.';
|
||||||
|
case -7004:
|
||||||
|
return 'Für diesen Zeitraum sind keine Stundenplandaten verfügbar.';
|
||||||
|
case -32601:
|
||||||
|
return 'WebUntis kennt diese Anfrage nicht. Bitte App aktualisieren.';
|
||||||
|
default:
|
||||||
|
return e.message.isNotEmpty
|
||||||
|
? 'WebUntis: ${e.message}'
|
||||||
|
: 'WebUntis konnte die Anfrage nicht bearbeiten (Code ${e.code}).';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
|
|
||||||
import '../requestCache.dart';
|
|
||||||
import 'getHolidays.dart';
|
|
||||||
import 'getHolidaysResponse.dart';
|
|
||||||
|
|
||||||
class GetHolidaysCache extends RequestCache<GetHolidaysResponse> {
|
|
||||||
GetHolidaysCache({onUpdate, renew}) : super(RequestCache.cacheDay, onUpdate, renew: renew) {
|
|
||||||
start('state-holidays');
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
GetHolidaysResponse onLocalData(String json) {
|
|
||||||
List<dynamic> parsedListJson = jsonDecode(json)['data'];
|
|
||||||
return GetHolidaysResponse(
|
|
||||||
List<GetHolidaysResponseObject>.from(
|
|
||||||
parsedListJson.map<GetHolidaysResponseObject>(
|
|
||||||
(i) => GetHolidaysResponseObject.fromJson(i as Map<String, dynamic>)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<GetHolidaysResponse> onLoad() => GetHolidays().query();
|
|
||||||
}
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'getHolidaysResponse.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
GetHolidaysResponse _$GetHolidaysResponseFromJson(Map<String, dynamic> json) =>
|
|
||||||
GetHolidaysResponse(
|
|
||||||
(json['data'] as List<dynamic>)
|
|
||||||
.map((e) =>
|
|
||||||
GetHolidaysResponseObject.fromJson(e as Map<String, dynamic>))
|
|
||||||
.toList(),
|
|
||||||
)..headers = (json['headers'] as Map<String, dynamic>?)?.map(
|
|
||||||
(k, e) => MapEntry(k, e as String),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$GetHolidaysResponseToJson(GetHolidaysResponse instance) {
|
|
||||||
final val = <String, dynamic>{};
|
|
||||||
|
|
||||||
void writeNotNull(String key, dynamic value) {
|
|
||||||
if (value != null) {
|
|
||||||
val[key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
writeNotNull('headers', instance.headers);
|
|
||||||
val['data'] = instance.data.map((e) => e.toJson()).toList();
|
|
||||||
return val;
|
|
||||||
}
|
|
||||||
|
|
||||||
GetHolidaysResponseObject _$GetHolidaysResponseObjectFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
GetHolidaysResponseObject(
|
|
||||||
start: json['start'] as String,
|
|
||||||
end: json['end'] as String,
|
|
||||||
year: (json['year'] as num).toInt(),
|
|
||||||
stateCode: json['stateCode'] as String,
|
|
||||||
name: json['name'] as String,
|
|
||||||
slug: json['slug'] as String,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$GetHolidaysResponseObjectToJson(
|
|
||||||
GetHolidaysResponseObject instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'start': instance.start,
|
|
||||||
'end': instance.end,
|
|
||||||
'year': instance.year,
|
|
||||||
'stateCode': instance.stateCode,
|
|
||||||
'name': instance.name,
|
|
||||||
'slug': instance.slug,
|
|
||||||
};
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
import 'getHolidaysResponse.dart';
|
import 'get_holidays_response.dart';
|
||||||
|
|
||||||
class GetHolidays {
|
class GetHolidays {
|
||||||
Future<GetHolidaysResponse> query() async {
|
Future<GetHolidaysResponse> query() async {
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import '../request_cache.dart';
|
||||||
|
import 'get_holidays.dart';
|
||||||
|
import 'get_holidays_response.dart';
|
||||||
|
|
||||||
|
class GetHolidaysCache extends SimpleCache<GetHolidaysResponse> {
|
||||||
|
GetHolidaysCache({super.onUpdate, super.renew})
|
||||||
|
: super(
|
||||||
|
cacheTime: RequestCache.cacheDay,
|
||||||
|
loader: () => GetHolidays().query(),
|
||||||
|
fromJson: (json) => GetHolidaysResponse(
|
||||||
|
(json['data'] as List)
|
||||||
|
.map((i) => GetHolidaysResponseObject.fromJson(i as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
),
|
||||||
|
) {
|
||||||
|
start('state-holidays');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
import '../apiResponse.dart';
|
import '../api_response.dart';
|
||||||
|
|
||||||
part 'getHolidaysResponse.g.dart';
|
part 'get_holidays_response.g.dart';
|
||||||
|
|
||||||
@JsonSerializable(explicitToJson: true)
|
@JsonSerializable(explicitToJson: true)
|
||||||
class GetHolidaysResponse extends ApiResponse {
|
class GetHolidaysResponse extends ApiResponse {
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'get_holidays_response.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
GetHolidaysResponse _$GetHolidaysResponseFromJson(Map<String, dynamic> json) =>
|
||||||
|
GetHolidaysResponse(
|
||||||
|
(json['data'] as List<dynamic>)
|
||||||
|
.map(
|
||||||
|
(e) =>
|
||||||
|
GetHolidaysResponseObject.fromJson(e as Map<String, dynamic>),
|
||||||
|
)
|
||||||
|
.toList(),
|
||||||
|
)
|
||||||
|
..headers = (json['headers'] as Map<String, dynamic>?)?.map(
|
||||||
|
(k, e) => MapEntry(k, e as String),
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$GetHolidaysResponseToJson(
|
||||||
|
GetHolidaysResponse instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'headers': ?instance.headers,
|
||||||
|
'data': instance.data.map((e) => e.toJson()).toList(),
|
||||||
|
};
|
||||||
|
|
||||||
|
GetHolidaysResponseObject _$GetHolidaysResponseObjectFromJson(
|
||||||
|
Map<String, dynamic> json,
|
||||||
|
) => GetHolidaysResponseObject(
|
||||||
|
start: json['start'] as String,
|
||||||
|
end: json['end'] as String,
|
||||||
|
year: (json['year'] as num).toInt(),
|
||||||
|
stateCode: json['stateCode'] as String,
|
||||||
|
name: json['name'] as String,
|
||||||
|
slug: json['slug'] as String,
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$GetHolidaysResponseObjectToJson(
|
||||||
|
GetHolidaysResponseObject instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'start': instance.start,
|
||||||
|
'end': instance.end,
|
||||||
|
'year': instance.year,
|
||||||
|
'stateCode': instance.stateCode,
|
||||||
|
'name': instance.name,
|
||||||
|
'slug': instance.slug,
|
||||||
|
};
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:http/http.dart' as http;
|
|
||||||
|
|
||||||
import '../../../model/accountData.dart';
|
|
||||||
import '../../../model/endpointData.dart';
|
|
||||||
import 'autocompleteResponse.dart';
|
|
||||||
|
|
||||||
class AutocompleteApi {
|
|
||||||
Future<AutocompleteResponse> find(String query) async {
|
|
||||||
var getParameters = <String, dynamic>{
|
|
||||||
'search': query,
|
|
||||||
'itemType': ' ',
|
|
||||||
'itemId': ' ',
|
|
||||||
'shareTypes[]': ['0'],
|
|
||||||
'limit': '10',
|
|
||||||
};
|
|
||||||
|
|
||||||
var headers = <String, String>{};
|
|
||||||
headers.putIfAbsent('Accept', () => 'application/json');
|
|
||||||
headers.putIfAbsent('OCS-APIRequest', () => 'true');
|
|
||||||
|
|
||||||
var endpoint = Uri.https('${AccountData().buildHttpAuthString()}@${EndpointData().nextcloud().domain}', '${EndpointData().nextcloud().path}/ocs/v2.php/core/autocomplete/get', getParameters);
|
|
||||||
|
|
||||||
var response = await http.get(endpoint, headers: headers);
|
|
||||||
if(response.statusCode != HttpStatus.ok) throw Exception('Api call failed with ${response.statusCode}: ${response.body}');
|
|
||||||
var result = response.body;
|
|
||||||
return AutocompleteResponse.fromJson(jsonDecode(result)['ocs']);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'autocompleteResponse.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
AutocompleteResponse _$AutocompleteResponseFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
AutocompleteResponse(
|
|
||||||
(json['data'] as List<dynamic>)
|
|
||||||
.map((e) =>
|
|
||||||
AutocompleteResponseObject.fromJson(e as Map<String, dynamic>))
|
|
||||||
.toList(),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$AutocompleteResponseToJson(
|
|
||||||
AutocompleteResponse instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'data': instance.data.map((e) => e.toJson()).toList(),
|
|
||||||
};
|
|
||||||
|
|
||||||
AutocompleteResponseObject _$AutocompleteResponseObjectFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
AutocompleteResponseObject(
|
|
||||||
json['id'] as String,
|
|
||||||
json['label'] as String,
|
|
||||||
json['icon'] as String?,
|
|
||||||
json['source'] as String?,
|
|
||||||
(json['status'] as List<dynamic>?)?.map((e) => e as String).toList(),
|
|
||||||
json['subline'] as String?,
|
|
||||||
json['shareWithDisplayNameUniqe'] as String?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$AutocompleteResponseObjectToJson(
|
|
||||||
AutocompleteResponseObject instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'id': instance.id,
|
|
||||||
'label': instance.label,
|
|
||||||
'icon': instance.icon,
|
|
||||||
'source': instance.source,
|
|
||||||
'status': instance.status,
|
|
||||||
'subline': instance.subline,
|
|
||||||
'shareWithDisplayNameUniqe': instance.shareWithDisplayNameUniqe,
|
|
||||||
};
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
|
import '../nextcloud_ocs.dart';
|
||||||
|
import 'autocomplete_response.dart';
|
||||||
|
|
||||||
|
class AutocompleteApi {
|
||||||
|
Future<AutocompleteResponse> find(String query) async {
|
||||||
|
final endpoint = NextcloudOcs.uri(
|
||||||
|
'core/autocomplete/get',
|
||||||
|
queryParameters: {
|
||||||
|
'search': query,
|
||||||
|
'itemType': ' ',
|
||||||
|
'itemId': ' ',
|
||||||
|
'shareTypes[]': ['0'],
|
||||||
|
'limit': '10',
|
||||||
|
},
|
||||||
|
);
|
||||||
|
final response = await http.get(endpoint, headers: NextcloudOcs.headers());
|
||||||
|
if (response.statusCode != HttpStatus.ok) {
|
||||||
|
throw Exception('Api call failed with ${response.statusCode}: ${response.body}');
|
||||||
|
}
|
||||||
|
final decoded = jsonDecode(response.body) as Map<String, dynamic>;
|
||||||
|
return AutocompleteResponse.fromJson(decoded['ocs'] as Map<String, dynamic>);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
part 'autocompleteResponse.g.dart';
|
part 'autocomplete_response.g.dart';
|
||||||
|
|
||||||
@JsonSerializable(explicitToJson: true)
|
@JsonSerializable(explicitToJson: true)
|
||||||
class AutocompleteResponse {
|
class AutocompleteResponse {
|
||||||
@@ -18,7 +18,7 @@ class AutocompleteResponseObject {
|
|||||||
String label;
|
String label;
|
||||||
String? icon;
|
String? icon;
|
||||||
String? source;
|
String? source;
|
||||||
List<String>? status;
|
String? status;
|
||||||
String? subline;
|
String? subline;
|
||||||
String? shareWithDisplayNameUniqe;
|
String? shareWithDisplayNameUniqe;
|
||||||
|
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'autocomplete_response.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
AutocompleteResponse _$AutocompleteResponseFromJson(
|
||||||
|
Map<String, dynamic> json,
|
||||||
|
) => AutocompleteResponse(
|
||||||
|
(json['data'] as List<dynamic>)
|
||||||
|
.map(
|
||||||
|
(e) => AutocompleteResponseObject.fromJson(e as Map<String, dynamic>),
|
||||||
|
)
|
||||||
|
.toList(),
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$AutocompleteResponseToJson(
|
||||||
|
AutocompleteResponse instance,
|
||||||
|
) => <String, dynamic>{'data': instance.data.map((e) => e.toJson()).toList()};
|
||||||
|
|
||||||
|
AutocompleteResponseObject _$AutocompleteResponseObjectFromJson(
|
||||||
|
Map<String, dynamic> json,
|
||||||
|
) => AutocompleteResponseObject(
|
||||||
|
json['id'] as String,
|
||||||
|
json['label'] as String,
|
||||||
|
json['icon'] as String?,
|
||||||
|
json['source'] as String?,
|
||||||
|
json['status'] as String?,
|
||||||
|
json['subline'] as String?,
|
||||||
|
json['shareWithDisplayNameUniqe'] as String?,
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$AutocompleteResponseObjectToJson(
|
||||||
|
AutocompleteResponseObject instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'id': instance.id,
|
||||||
|
'label': instance.label,
|
||||||
|
'icon': instance.icon,
|
||||||
|
'source': instance.source,
|
||||||
|
'status': instance.status,
|
||||||
|
'subline': instance.subline,
|
||||||
|
'shareWithDisplayNameUniqe': instance.shareWithDisplayNameUniqe,
|
||||||
|
};
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:http/http.dart' as http;
|
|
||||||
|
|
||||||
import '../../../model/accountData.dart';
|
|
||||||
import '../../../model/endpointData.dart';
|
|
||||||
import 'fileSharingApiParams.dart';
|
|
||||||
|
|
||||||
class FileSharingApi {
|
|
||||||
Future<void> share(FileSharingApiParams query) async {
|
|
||||||
var headers = <String, String>{};
|
|
||||||
headers.putIfAbsent('Accept', () => 'application/json');
|
|
||||||
headers.putIfAbsent('OCS-APIRequest', () => 'true');
|
|
||||||
|
|
||||||
var endpoint = Uri.https('${AccountData().buildHttpAuthString()}@${EndpointData().nextcloud().domain}', '${EndpointData().nextcloud().path}/ocs/v2.php/apps/files_sharing/api/v1/shares', query.toJson().map((key, value) => MapEntry(key, value.toString())));
|
|
||||||
var response = await http.post(endpoint, headers: headers);
|
|
||||||
|
|
||||||
if(response.statusCode != HttpStatus.ok) {
|
|
||||||
throw Exception('Api call failed with ${response.statusCode}: ${response.body}');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'fileSharingApiParams.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
FileSharingApiParams _$FileSharingApiParamsFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
FileSharingApiParams(
|
|
||||||
shareType: (json['shareType'] as num).toInt(),
|
|
||||||
shareWith: json['shareWith'] as String,
|
|
||||||
path: json['path'] as String,
|
|
||||||
referenceId: json['referenceId'] as String?,
|
|
||||||
talkMetaData: json['talkMetaData'] as String?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$FileSharingApiParamsToJson(
|
|
||||||
FileSharingApiParams instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'shareType': instance.shareType,
|
|
||||||
'shareWith': instance.shareWith,
|
|
||||||
'path': instance.path,
|
|
||||||
'referenceId': instance.referenceId,
|
|
||||||
'talkMetaData': instance.talkMetaData,
|
|
||||||
};
|
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
|
import '../nextcloud_ocs.dart';
|
||||||
|
import 'file_sharing_api_params.dart';
|
||||||
|
|
||||||
|
class FileSharingApi {
|
||||||
|
Future<void> share(FileSharingApiParams query) async {
|
||||||
|
final endpoint = NextcloudOcs.uri(
|
||||||
|
'apps/files_sharing/api/v1/shares',
|
||||||
|
queryParameters: query.toJson(),
|
||||||
|
);
|
||||||
|
final response = await http.post(endpoint, headers: NextcloudOcs.headers());
|
||||||
|
if (response.statusCode != HttpStatus.ok) {
|
||||||
|
throw Exception('Api call failed with ${response.statusCode}: ${response.body}');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
part 'fileSharingApiParams.g.dart';
|
part 'file_sharing_api_params.g.dart';
|
||||||
|
|
||||||
@JsonSerializable()
|
@JsonSerializable()
|
||||||
class FileSharingApiParams {
|
class FileSharingApiParams {
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'file_sharing_api_params.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
FileSharingApiParams _$FileSharingApiParamsFromJson(
|
||||||
|
Map<String, dynamic> json,
|
||||||
|
) => FileSharingApiParams(
|
||||||
|
shareType: (json['shareType'] as num).toInt(),
|
||||||
|
shareWith: json['shareWith'] as String,
|
||||||
|
path: json['path'] as String,
|
||||||
|
referenceId: json['referenceId'] as String?,
|
||||||
|
talkMetaData: json['talkMetaData'] as String?,
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$FileSharingApiParamsToJson(
|
||||||
|
FileSharingApiParams instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'shareType': instance.shareType,
|
||||||
|
'shareWith': instance.shareWith,
|
||||||
|
'path': instance.path,
|
||||||
|
'referenceId': instance.referenceId,
|
||||||
|
'talkMetaData': instance.talkMetaData,
|
||||||
|
};
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import '../../model/account_data.dart';
|
||||||
|
import '../../model/endpoint_data.dart';
|
||||||
|
|
||||||
|
/// Shared helpers for Nextcloud OCS v2 endpoints.
|
||||||
|
///
|
||||||
|
/// Three call sites previously duplicated the same header dictionary and the
|
||||||
|
/// same URI scaffolding (TalkApi, AutocompleteApi, FileSharingApi). Anything
|
||||||
|
/// that talks to `https://<domain>/<base>/ocs/v2.php/...` should go through
|
||||||
|
/// these two helpers so additions like a new header or a different auth
|
||||||
|
/// scheme only need to change here.
|
||||||
|
class NextcloudOcs {
|
||||||
|
NextcloudOcs._();
|
||||||
|
|
||||||
|
/// The standard OCS request header set: JSON accept, OCS API marker,
|
||||||
|
/// HTTP Basic auth from the active [AccountData].
|
||||||
|
static Map<String, String> headers() => {
|
||||||
|
'Accept': 'application/json',
|
||||||
|
'OCS-APIRequest': 'true',
|
||||||
|
'Authorization': AccountData().getBasicAuthHeader(),
|
||||||
|
};
|
||||||
|
|
||||||
|
/// Builds an OCS URI by appending [pathSuffix] under `/ocs/v2.php/` of
|
||||||
|
/// the configured Nextcloud endpoint. Query parameters are converted to
|
||||||
|
/// strings (Uri rejects non-string values).
|
||||||
|
static Uri uri(String pathSuffix, {Map<String, dynamic>? queryParameters}) {
|
||||||
|
final endpoint = EndpointData().nextcloud();
|
||||||
|
return Uri.https(
|
||||||
|
endpoint.domain,
|
||||||
|
'${endpoint.path}/ocs/v2.php/$pathSuffix',
|
||||||
|
queryParameters?.map((key, value) => MapEntry(key, value.toString())),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
|
import '../../../api_params.dart';
|
||||||
|
import '../../../api_response.dart';
|
||||||
|
import '../talk_api.dart';
|
||||||
|
|
||||||
|
/// Small POST/DELETE-only Talk endpoints that have no response payload.
|
||||||
|
/// Each class extends [TalkApi] with `assemble` returning `null`. They share
|
||||||
|
/// no state — they're collected here purely to avoid eight near-empty files.
|
||||||
|
|
||||||
|
class SetFavorite extends TalkApi {
|
||||||
|
final String chatToken;
|
||||||
|
final bool favoriteState;
|
||||||
|
|
||||||
|
SetFavorite(this.chatToken, this.favoriteState) : super('v4/room/$chatToken/favorite', null);
|
||||||
|
|
||||||
|
@override
|
||||||
|
ApiResponse? assemble(String raw) => null;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<http.Response> request(Uri uri, ApiParams? body, Map<String, String>? headers) =>
|
||||||
|
favoriteState ? http.post(uri, headers: headers) : http.delete(uri, headers: headers);
|
||||||
|
}
|
||||||
|
|
||||||
|
class LeaveRoom extends TalkApi {
|
||||||
|
final String chatToken;
|
||||||
|
|
||||||
|
LeaveRoom(this.chatToken) : super('v4/room/$chatToken/participants/self', null);
|
||||||
|
|
||||||
|
@override
|
||||||
|
ApiResponse? assemble(String raw) => null;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<http.Response> request(Uri uri, ApiParams? body, Map<String, String>? headers) =>
|
||||||
|
http.delete(uri, headers: headers);
|
||||||
|
}
|
||||||
|
|
||||||
|
class DeleteMessage extends TalkApi {
|
||||||
|
final String chatToken;
|
||||||
|
final int messageId;
|
||||||
|
|
||||||
|
DeleteMessage(this.chatToken, this.messageId) : super('v1/chat/$chatToken/$messageId', null);
|
||||||
|
|
||||||
|
@override
|
||||||
|
ApiResponse? assemble(String raw) => null;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<http.Response> request(Uri uri, ApiParams? body, Map<String, String>? headers) =>
|
||||||
|
http.delete(uri, headers: headers);
|
||||||
|
}
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
|
|
||||||
import '../../../requestCache.dart';
|
|
||||||
import 'getChat.dart';
|
|
||||||
import 'getChatParams.dart';
|
|
||||||
import 'getChatResponse.dart';
|
|
||||||
|
|
||||||
class GetChatCache extends RequestCache<GetChatResponse> {
|
|
||||||
String chatToken;
|
|
||||||
|
|
||||||
GetChatCache({required onUpdate, required this.chatToken}) : super(RequestCache.cacheNothing, onUpdate) {
|
|
||||||
start('nc-chat-$chatToken');
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<GetChatResponse> onLoad() => GetChat(
|
|
||||||
chatToken,
|
|
||||||
GetChatParams(
|
|
||||||
lookIntoFuture: GetChatParamsSwitch.off,
|
|
||||||
setReadMarker: GetChatParamsSwitch.on,
|
|
||||||
limit: 200,
|
|
||||||
)
|
|
||||||
).run();
|
|
||||||
|
|
||||||
@override
|
|
||||||
GetChatResponse onLocalData(String json) => GetChatResponse.fromJson(jsonDecode(json));
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'getChatParams.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
GetChatParams _$GetChatParamsFromJson(Map<String, dynamic> json) =>
|
|
||||||
GetChatParams(
|
|
||||||
lookIntoFuture:
|
|
||||||
$enumDecode(_$GetChatParamsSwitchEnumMap, json['lookIntoFuture']),
|
|
||||||
limit: (json['limit'] as num?)?.toInt(),
|
|
||||||
lastKnownMessageId: (json['lastKnownMessageId'] as num?)?.toInt(),
|
|
||||||
lastCommonReadId: (json['lastCommonReadId'] as num?)?.toInt(),
|
|
||||||
timeout: (json['timeout'] as num?)?.toInt(),
|
|
||||||
setReadMarker: $enumDecodeNullable(
|
|
||||||
_$GetChatParamsSwitchEnumMap, json['setReadMarker']),
|
|
||||||
includeLastKnown: $enumDecodeNullable(
|
|
||||||
_$GetChatParamsSwitchEnumMap, json['includeLastKnown']),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$GetChatParamsToJson(GetChatParams instance) {
|
|
||||||
final val = <String, dynamic>{
|
|
||||||
'lookIntoFuture': _$GetChatParamsSwitchEnumMap[instance.lookIntoFuture]!,
|
|
||||||
};
|
|
||||||
|
|
||||||
void writeNotNull(String key, dynamic value) {
|
|
||||||
if (value != null) {
|
|
||||||
val[key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
writeNotNull('limit', instance.limit);
|
|
||||||
writeNotNull('lastKnownMessageId', instance.lastKnownMessageId);
|
|
||||||
writeNotNull('lastCommonReadId', instance.lastCommonReadId);
|
|
||||||
writeNotNull('timeout', instance.timeout);
|
|
||||||
writeNotNull(
|
|
||||||
'setReadMarker', _$GetChatParamsSwitchEnumMap[instance.setReadMarker]);
|
|
||||||
writeNotNull('includeLastKnown',
|
|
||||||
_$GetChatParamsSwitchEnumMap[instance.includeLastKnown]);
|
|
||||||
return val;
|
|
||||||
}
|
|
||||||
|
|
||||||
const _$GetChatParamsSwitchEnumMap = {
|
|
||||||
GetChatParamsSwitch.on: 1,
|
|
||||||
GetChatParamsSwitch.off: 0,
|
|
||||||
};
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'getChatResponse.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
GetChatResponse _$GetChatResponseFromJson(Map<String, dynamic> json) =>
|
|
||||||
GetChatResponse(
|
|
||||||
(json['data'] as List<dynamic>)
|
|
||||||
.map((e) => GetChatResponseObject.fromJson(e as Map<String, dynamic>))
|
|
||||||
.toSet(),
|
|
||||||
)..headers = (json['headers'] as Map<String, dynamic>?)?.map(
|
|
||||||
(k, e) => MapEntry(k, e as String),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$GetChatResponseToJson(GetChatResponse instance) {
|
|
||||||
final val = <String, dynamic>{};
|
|
||||||
|
|
||||||
void writeNotNull(String key, dynamic value) {
|
|
||||||
if (value != null) {
|
|
||||||
val[key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
writeNotNull('headers', instance.headers);
|
|
||||||
val['data'] = instance.data.map((e) => e.toJson()).toList();
|
|
||||||
return val;
|
|
||||||
}
|
|
||||||
|
|
||||||
GetChatResponseObject _$GetChatResponseObjectFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
GetChatResponseObject(
|
|
||||||
(json['id'] as num).toInt(),
|
|
||||||
json['token'] as String,
|
|
||||||
$enumDecode(
|
|
||||||
_$GetRoomResponseObjectMessageActorTypeEnumMap, json['actorType']),
|
|
||||||
json['actorId'] as String,
|
|
||||||
json['actorDisplayName'] as String,
|
|
||||||
(json['timestamp'] as num).toInt(),
|
|
||||||
json['systemMessage'] as String,
|
|
||||||
$enumDecode(
|
|
||||||
_$GetRoomResponseObjectMessageTypeEnumMap, json['messageType']),
|
|
||||||
json['isReplyable'] as bool,
|
|
||||||
json['referenceId'] as String,
|
|
||||||
json['message'] as String,
|
|
||||||
_fromJson(json['messageParameters']),
|
|
||||||
(json['reactions'] as Map<String, dynamic>?)?.map(
|
|
||||||
(k, e) => MapEntry(k, (e as num).toInt()),
|
|
||||||
),
|
|
||||||
(json['reactionsSelf'] as List<dynamic>?)
|
|
||||||
?.map((e) => e as String)
|
|
||||||
.toList(),
|
|
||||||
json['parent'] == null
|
|
||||||
? null
|
|
||||||
: GetChatResponseObject.fromJson(
|
|
||||||
json['parent'] as Map<String, dynamic>),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$GetChatResponseObjectToJson(
|
|
||||||
GetChatResponseObject instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'id': instance.id,
|
|
||||||
'token': instance.token,
|
|
||||||
'actorType':
|
|
||||||
_$GetRoomResponseObjectMessageActorTypeEnumMap[instance.actorType]!,
|
|
||||||
'actorId': instance.actorId,
|
|
||||||
'actorDisplayName': instance.actorDisplayName,
|
|
||||||
'timestamp': instance.timestamp,
|
|
||||||
'systemMessage': instance.systemMessage,
|
|
||||||
'messageType':
|
|
||||||
_$GetRoomResponseObjectMessageTypeEnumMap[instance.messageType]!,
|
|
||||||
'isReplyable': instance.isReplyable,
|
|
||||||
'referenceId': instance.referenceId,
|
|
||||||
'message': instance.message,
|
|
||||||
'reactions': instance.reactions,
|
|
||||||
'reactionsSelf': instance.reactionsSelf,
|
|
||||||
'messageParameters':
|
|
||||||
instance.messageParameters?.map((k, e) => MapEntry(k, e.toJson())),
|
|
||||||
'parent': instance.parent?.toJson(),
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$GetRoomResponseObjectMessageActorTypeEnumMap = {
|
|
||||||
GetRoomResponseObjectMessageActorType.deletedUsers: 'deleted_users',
|
|
||||||
GetRoomResponseObjectMessageActorType.user: 'users',
|
|
||||||
GetRoomResponseObjectMessageActorType.guest: 'guests',
|
|
||||||
GetRoomResponseObjectMessageActorType.bot: 'bots',
|
|
||||||
GetRoomResponseObjectMessageActorType.bridge: 'bridged',
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$GetRoomResponseObjectMessageTypeEnumMap = {
|
|
||||||
GetRoomResponseObjectMessageType.comment: 'comment',
|
|
||||||
GetRoomResponseObjectMessageType.deletedComment: 'comment_deleted',
|
|
||||||
GetRoomResponseObjectMessageType.system: 'system',
|
|
||||||
GetRoomResponseObjectMessageType.command: 'command',
|
|
||||||
};
|
|
||||||
|
|
||||||
RichObjectString _$RichObjectStringFromJson(Map<String, dynamic> json) =>
|
|
||||||
RichObjectString(
|
|
||||||
$enumDecode(_$RichObjectStringObjectTypeEnumMap, json['type']),
|
|
||||||
json['id'] as String,
|
|
||||||
json['name'] as String,
|
|
||||||
json['path'] as String?,
|
|
||||||
json['link'] as String?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$RichObjectStringToJson(RichObjectString instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'type': _$RichObjectStringObjectTypeEnumMap[instance.type]!,
|
|
||||||
'id': instance.id,
|
|
||||||
'name': instance.name,
|
|
||||||
'path': instance.path,
|
|
||||||
'link': instance.link,
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$RichObjectStringObjectTypeEnumMap = {
|
|
||||||
RichObjectStringObjectType.user: 'user',
|
|
||||||
RichObjectStringObjectType.group: 'group',
|
|
||||||
RichObjectStringObjectType.file: 'file',
|
|
||||||
RichObjectStringObjectType.guest: 'guest',
|
|
||||||
RichObjectStringObjectType.highlight: 'highlight',
|
|
||||||
RichObjectStringObjectType.talkPoll: 'talk-poll',
|
|
||||||
};
|
|
||||||
@@ -3,9 +3,9 @@ import 'dart:convert';
|
|||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
|
|
||||||
import '../talkApi.dart';
|
import '../talk_api.dart';
|
||||||
import 'getChatParams.dart';
|
import 'get_chat_params.dart';
|
||||||
import 'getChatResponse.dart';
|
import 'get_chat_response.dart';
|
||||||
|
|
||||||
class GetChat extends TalkApi<GetChatResponse> {
|
class GetChat extends TalkApi<GetChatResponse> {
|
||||||
String chatToken;
|
String chatToken;
|
||||||
@@ -14,7 +14,10 @@ class GetChat extends TalkApi<GetChatResponse> {
|
|||||||
GetChat(this.chatToken, this.params) : super('v1/chat/$chatToken', null, getParameters: params.toJson());
|
GetChat(this.chatToken, this.params) : super('v1/chat/$chatToken', null, getParameters: params.toJson());
|
||||||
|
|
||||||
@override
|
@override
|
||||||
assemble(String raw) => GetChatResponse.fromJson(jsonDecode(raw)['ocs']);
|
GetChatResponse assemble(String raw) {
|
||||||
|
final decoded = jsonDecode(raw) as Map<String, dynamic>;
|
||||||
|
return GetChatResponse.fromJson(decoded['ocs'] as Map<String, dynamic>);
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<Response> request(Uri uri, Object? body, Map<String, String>? headers) => http.get(uri, headers: headers);
|
Future<Response> request(Uri uri, Object? body, Map<String, String>? headers) => http.get(uri, headers: headers);
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import '../../../request_cache.dart';
|
||||||
|
import 'get_chat.dart';
|
||||||
|
import 'get_chat_params.dart';
|
||||||
|
import 'get_chat_response.dart';
|
||||||
|
|
||||||
|
class GetChatCache extends SimpleCache<GetChatResponse> {
|
||||||
|
GetChatCache({
|
||||||
|
super.onCacheData,
|
||||||
|
super.onNetworkData,
|
||||||
|
super.onError,
|
||||||
|
required String chatToken,
|
||||||
|
}) : super(
|
||||||
|
cacheTime: RequestCache.cacheNothing,
|
||||||
|
loader: () => GetChat(
|
||||||
|
chatToken,
|
||||||
|
GetChatParams(
|
||||||
|
lookIntoFuture: GetChatParamsSwitch.off,
|
||||||
|
setReadMarker: GetChatParamsSwitch.on,
|
||||||
|
limit: 200,
|
||||||
|
),
|
||||||
|
).run(),
|
||||||
|
fromJson: GetChatResponse.fromJson,
|
||||||
|
) {
|
||||||
|
start('nc-chat-$chatToken');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
import '../../../apiParams.dart';
|
import '../../../api_params.dart';
|
||||||
|
|
||||||
part 'getChatParams.g.dart';
|
part 'get_chat_params.g.dart';
|
||||||
|
|
||||||
@JsonSerializable(explicitToJson: true, includeIfNull: false)
|
@JsonSerializable(explicitToJson: true, includeIfNull: false)
|
||||||
class GetChatParams extends ApiParams {
|
class GetChatParams extends ApiParams {
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'get_chat_params.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
GetChatParams _$GetChatParamsFromJson(Map<String, dynamic> json) =>
|
||||||
|
GetChatParams(
|
||||||
|
lookIntoFuture: $enumDecode(
|
||||||
|
_$GetChatParamsSwitchEnumMap,
|
||||||
|
json['lookIntoFuture'],
|
||||||
|
),
|
||||||
|
limit: (json['limit'] as num?)?.toInt(),
|
||||||
|
lastKnownMessageId: (json['lastKnownMessageId'] as num?)?.toInt(),
|
||||||
|
lastCommonReadId: (json['lastCommonReadId'] as num?)?.toInt(),
|
||||||
|
timeout: (json['timeout'] as num?)?.toInt(),
|
||||||
|
setReadMarker: $enumDecodeNullable(
|
||||||
|
_$GetChatParamsSwitchEnumMap,
|
||||||
|
json['setReadMarker'],
|
||||||
|
),
|
||||||
|
includeLastKnown: $enumDecodeNullable(
|
||||||
|
_$GetChatParamsSwitchEnumMap,
|
||||||
|
json['includeLastKnown'],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$GetChatParamsToJson(
|
||||||
|
GetChatParams instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'lookIntoFuture': _$GetChatParamsSwitchEnumMap[instance.lookIntoFuture]!,
|
||||||
|
'limit': ?instance.limit,
|
||||||
|
'lastKnownMessageId': ?instance.lastKnownMessageId,
|
||||||
|
'lastCommonReadId': ?instance.lastCommonReadId,
|
||||||
|
'timeout': ?instance.timeout,
|
||||||
|
'setReadMarker': ?_$GetChatParamsSwitchEnumMap[instance.setReadMarker],
|
||||||
|
'includeLastKnown': ?_$GetChatParamsSwitchEnumMap[instance.includeLastKnown],
|
||||||
|
};
|
||||||
|
|
||||||
|
const _$GetChatParamsSwitchEnumMap = {
|
||||||
|
GetChatParamsSwitch.on: 1,
|
||||||
|
GetChatParamsSwitch.off: 0,
|
||||||
|
};
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
import 'package:jiffy/jiffy.dart';
|
import 'package:jiffy/jiffy.dart';
|
||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
import '../../../apiResponse.dart';
|
import '../../../api_response.dart';
|
||||||
import '../room/getRoomResponse.dart';
|
import '../room/get_room_response.dart';
|
||||||
|
|
||||||
part 'getChatResponse.g.dart';
|
part 'get_chat_response.g.dart';
|
||||||
|
|
||||||
@JsonSerializable(explicitToJson: true)
|
@JsonSerializable(explicitToJson: true)
|
||||||
class GetChatResponse extends ApiResponse {
|
class GetChatResponse extends ApiResponse {
|
||||||
@@ -86,11 +86,11 @@ class GetChatResponseObject {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, RichObjectString>? _fromJson(json) {
|
Map<String, RichObjectString>? _fromJson(dynamic json) {
|
||||||
if (json is Map<String, dynamic>) {
|
if (json is Map<String, dynamic>) {
|
||||||
var data = <String, RichObjectString>{};
|
final data = <String, RichObjectString>{};
|
||||||
for (var element in json.keys) {
|
for (final element in json.keys) {
|
||||||
data.putIfAbsent(element, () => RichObjectString.fromJson(json[element]));
|
data.putIfAbsent(element, () => RichObjectString.fromJson(json[element] as Map<String, dynamic>));
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
@@ -120,4 +120,6 @@ enum RichObjectStringObjectType {
|
|||||||
@JsonValue('guest') guest,
|
@JsonValue('guest') guest,
|
||||||
@JsonValue('highlight') highlight,
|
@JsonValue('highlight') highlight,
|
||||||
@JsonValue('talk-poll') talkPoll,
|
@JsonValue('talk-poll') talkPoll,
|
||||||
|
@JsonValue('geo-location') geoLocation,
|
||||||
|
@JsonValue('call') call,
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'get_chat_response.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
GetChatResponse _$GetChatResponseFromJson(Map<String, dynamic> json) =>
|
||||||
|
GetChatResponse(
|
||||||
|
(json['data'] as List<dynamic>)
|
||||||
|
.map(
|
||||||
|
(e) => GetChatResponseObject.fromJson(e as Map<String, dynamic>),
|
||||||
|
)
|
||||||
|
.toSet(),
|
||||||
|
)
|
||||||
|
..headers = (json['headers'] as Map<String, dynamic>?)?.map(
|
||||||
|
(k, e) => MapEntry(k, e as String),
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$GetChatResponseToJson(GetChatResponse instance) =>
|
||||||
|
<String, dynamic>{
|
||||||
|
'headers': ?instance.headers,
|
||||||
|
'data': instance.data.map((e) => e.toJson()).toList(),
|
||||||
|
};
|
||||||
|
|
||||||
|
GetChatResponseObject _$GetChatResponseObjectFromJson(
|
||||||
|
Map<String, dynamic> json,
|
||||||
|
) => GetChatResponseObject(
|
||||||
|
(json['id'] as num).toInt(),
|
||||||
|
json['token'] as String,
|
||||||
|
$enumDecode(
|
||||||
|
_$GetRoomResponseObjectMessageActorTypeEnumMap,
|
||||||
|
json['actorType'],
|
||||||
|
),
|
||||||
|
json['actorId'] as String,
|
||||||
|
json['actorDisplayName'] as String,
|
||||||
|
(json['timestamp'] as num).toInt(),
|
||||||
|
json['systemMessage'] as String,
|
||||||
|
$enumDecode(_$GetRoomResponseObjectMessageTypeEnumMap, json['messageType']),
|
||||||
|
json['isReplyable'] as bool,
|
||||||
|
json['referenceId'] as String,
|
||||||
|
json['message'] as String,
|
||||||
|
_fromJson(json['messageParameters']),
|
||||||
|
(json['reactions'] as Map<String, dynamic>?)?.map(
|
||||||
|
(k, e) => MapEntry(k, (e as num).toInt()),
|
||||||
|
),
|
||||||
|
(json['reactionsSelf'] as List<dynamic>?)?.map((e) => e as String).toList(),
|
||||||
|
json['parent'] == null
|
||||||
|
? null
|
||||||
|
: GetChatResponseObject.fromJson(json['parent'] as Map<String, dynamic>),
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$GetChatResponseObjectToJson(
|
||||||
|
GetChatResponseObject instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'id': instance.id,
|
||||||
|
'token': instance.token,
|
||||||
|
'actorType':
|
||||||
|
_$GetRoomResponseObjectMessageActorTypeEnumMap[instance.actorType]!,
|
||||||
|
'actorId': instance.actorId,
|
||||||
|
'actorDisplayName': instance.actorDisplayName,
|
||||||
|
'timestamp': instance.timestamp,
|
||||||
|
'systemMessage': instance.systemMessage,
|
||||||
|
'messageType':
|
||||||
|
_$GetRoomResponseObjectMessageTypeEnumMap[instance.messageType]!,
|
||||||
|
'isReplyable': instance.isReplyable,
|
||||||
|
'referenceId': instance.referenceId,
|
||||||
|
'message': instance.message,
|
||||||
|
'reactions': instance.reactions,
|
||||||
|
'reactionsSelf': instance.reactionsSelf,
|
||||||
|
'messageParameters': instance.messageParameters?.map(
|
||||||
|
(k, e) => MapEntry(k, e.toJson()),
|
||||||
|
),
|
||||||
|
'parent': instance.parent?.toJson(),
|
||||||
|
};
|
||||||
|
|
||||||
|
const _$GetRoomResponseObjectMessageActorTypeEnumMap = {
|
||||||
|
GetRoomResponseObjectMessageActorType.deletedUsers: 'deleted_users',
|
||||||
|
GetRoomResponseObjectMessageActorType.user: 'users',
|
||||||
|
GetRoomResponseObjectMessageActorType.guest: 'guests',
|
||||||
|
GetRoomResponseObjectMessageActorType.bot: 'bots',
|
||||||
|
GetRoomResponseObjectMessageActorType.bridge: 'bridged',
|
||||||
|
};
|
||||||
|
|
||||||
|
const _$GetRoomResponseObjectMessageTypeEnumMap = {
|
||||||
|
GetRoomResponseObjectMessageType.comment: 'comment',
|
||||||
|
GetRoomResponseObjectMessageType.voiceMessage: 'voice-message',
|
||||||
|
GetRoomResponseObjectMessageType.deletedComment: 'comment_deleted',
|
||||||
|
GetRoomResponseObjectMessageType.system: 'system',
|
||||||
|
GetRoomResponseObjectMessageType.command: 'command',
|
||||||
|
};
|
||||||
|
|
||||||
|
RichObjectString _$RichObjectStringFromJson(Map<String, dynamic> json) =>
|
||||||
|
RichObjectString(
|
||||||
|
$enumDecode(_$RichObjectStringObjectTypeEnumMap, json['type']),
|
||||||
|
json['id'] as String,
|
||||||
|
json['name'] as String,
|
||||||
|
json['path'] as String?,
|
||||||
|
json['link'] as String?,
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$RichObjectStringToJson(RichObjectString instance) =>
|
||||||
|
<String, dynamic>{
|
||||||
|
'type': _$RichObjectStringObjectTypeEnumMap[instance.type]!,
|
||||||
|
'id': instance.id,
|
||||||
|
'name': instance.name,
|
||||||
|
'path': instance.path,
|
||||||
|
'link': instance.link,
|
||||||
|
};
|
||||||
|
|
||||||
|
const _$RichObjectStringObjectTypeEnumMap = {
|
||||||
|
RichObjectStringObjectType.user: 'user',
|
||||||
|
RichObjectStringObjectType.group: 'group',
|
||||||
|
RichObjectStringObjectType.file: 'file',
|
||||||
|
RichObjectStringObjectType.guest: 'guest',
|
||||||
|
RichObjectStringObjectType.highlight: 'highlight',
|
||||||
|
RichObjectStringObjectType.talkPoll: 'talk-poll',
|
||||||
|
RichObjectStringObjectType.geoLocation: 'geo-location',
|
||||||
|
RichObjectStringObjectType.call: 'call',
|
||||||
|
};
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
import 'getChatResponse.dart';
|
import 'get_chat_response.dart';
|
||||||
|
|
||||||
class RichObjectStringProcessor {
|
class RichObjectStringProcessor {
|
||||||
static String parseToString(String message, Map<String, RichObjectString>? data) {
|
static String parseToString(String message, Map<String, RichObjectString>? data) {
|
||||||
@@ -2,15 +2,15 @@
|
|||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
|
|
||||||
import '../talkApi.dart';
|
import '../talk_api.dart';
|
||||||
import 'createRoomParams.dart';
|
import 'create_room_params.dart';
|
||||||
class CreateRoom extends TalkApi {
|
class CreateRoom extends TalkApi {
|
||||||
CreateRoomParams params;
|
CreateRoomParams params;
|
||||||
|
|
||||||
CreateRoom(this.params) : super('v4/room', params);
|
CreateRoom(this.params) : super('v4/room', params);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
assemble(String raw) => null;
|
Null assemble(String raw) => null;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<Response>? request(Uri uri, Object? body, Map<String, String>? headers) {
|
Future<Response>? request(Uri uri, Object? body, Map<String, String>? headers) {
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
import '../../../apiParams.dart';
|
import '../../../api_params.dart';
|
||||||
|
|
||||||
part 'createRoomParams.g.dart';
|
part 'create_room_params.g.dart';
|
||||||
|
|
||||||
@JsonSerializable()
|
@JsonSerializable()
|
||||||
class CreateRoomParams extends ApiParams {
|
class CreateRoomParams extends ApiParams {
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
part of 'createRoomParams.dart';
|
part of 'create_room_params.dart';
|
||||||
|
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
// JsonSerializableGenerator
|
// JsonSerializableGenerator
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import 'package:http/http.dart' as http;
|
|
||||||
import 'package:http/http.dart';
|
|
||||||
|
|
||||||
import '../../../apiParams.dart';
|
|
||||||
import '../talkApi.dart';
|
|
||||||
|
|
||||||
class DeleteMessage extends TalkApi {
|
|
||||||
String chatToken;
|
|
||||||
int messageId;
|
|
||||||
DeleteMessage(this.chatToken, this.messageId) : super('v1/chat/$chatToken/$messageId', null);
|
|
||||||
|
|
||||||
@override
|
|
||||||
assemble(String raw) => null;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<Response>? request(Uri uri, ApiParams? body, Map<String, String>? headers) => http.delete(uri, headers: headers);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
|
|
||||||
import '../../../apiParams.dart';
|
import '../../../api_params.dart';
|
||||||
import '../talkApi.dart';
|
import '../talk_api.dart';
|
||||||
import 'deleteReactMessageParams.dart';
|
import 'delete_react_message_params.dart';
|
||||||
|
|
||||||
class DeleteReactMessage extends TalkApi {
|
class DeleteReactMessage extends TalkApi {
|
||||||
String chatToken;
|
String chatToken;
|
||||||
@@ -11,7 +11,7 @@ class DeleteReactMessage extends TalkApi {
|
|||||||
DeleteReactMessage({required this.chatToken, required this.messageId, required DeleteReactMessageParams params}) : super('v1/reaction/$chatToken/$messageId', params);
|
DeleteReactMessage({required this.chatToken, required this.messageId, required DeleteReactMessageParams params}) : super('v1/reaction/$chatToken/$messageId', params);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
assemble(String raw) => null;
|
Null assemble(String raw) => null;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<Response>? request(Uri uri, ApiParams? body, Map<String, String>? headers) {
|
Future<Response>? request(Uri uri, ApiParams? body, Map<String, String>? headers) {
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
import '../../../apiParams.dart';
|
import '../../../api_params.dart';
|
||||||
|
|
||||||
part 'deleteReactMessageParams.g.dart';
|
part 'delete_react_message_params.g.dart';
|
||||||
|
|
||||||
@JsonSerializable()
|
@JsonSerializable()
|
||||||
class DeleteReactMessageParams extends ApiParams {
|
class DeleteReactMessageParams extends ApiParams {
|
||||||
@@ -1,19 +1,15 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
part of 'deleteReactMessageParams.dart';
|
part of 'delete_react_message_params.dart';
|
||||||
|
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
// JsonSerializableGenerator
|
// JsonSerializableGenerator
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
DeleteReactMessageParams _$DeleteReactMessageParamsFromJson(
|
DeleteReactMessageParams _$DeleteReactMessageParamsFromJson(
|
||||||
Map<String, dynamic> json) =>
|
Map<String, dynamic> json,
|
||||||
DeleteReactMessageParams(
|
) => DeleteReactMessageParams(json['reaction'] as String);
|
||||||
json['reaction'] as String,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$DeleteReactMessageParamsToJson(
|
Map<String, dynamic> _$DeleteReactMessageParamsToJson(
|
||||||
DeleteReactMessageParams instance) =>
|
DeleteReactMessageParams instance,
|
||||||
<String, dynamic>{
|
) => <String, dynamic>{'reaction': instance.reaction};
|
||||||
'reaction': instance.reaction,
|
|
||||||
};
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
|
|
||||||
import '../../../requestCache.dart';
|
|
||||||
import 'getParticipants.dart';
|
|
||||||
import 'getParticipantsResponse.dart';
|
|
||||||
|
|
||||||
class GetParticipantsCache extends RequestCache<GetParticipantsResponse> {
|
|
||||||
String chatToken;
|
|
||||||
|
|
||||||
GetParticipantsCache({required onUpdate, required this.chatToken}) : super(RequestCache.cacheNothing, onUpdate) {
|
|
||||||
start('nc-chat-participants-$chatToken');
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<GetParticipantsResponse> onLoad() => GetParticipants(
|
|
||||||
chatToken,
|
|
||||||
).run();
|
|
||||||
|
|
||||||
@override
|
|
||||||
GetParticipantsResponse onLocalData(String json) => GetParticipantsResponse.fromJson(jsonDecode(json));
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'getParticipantsResponse.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
GetParticipantsResponse _$GetParticipantsResponseFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
GetParticipantsResponse(
|
|
||||||
(json['data'] as List<dynamic>)
|
|
||||||
.map((e) =>
|
|
||||||
GetParticipantsResponseObject.fromJson(e as Map<String, dynamic>))
|
|
||||||
.toSet(),
|
|
||||||
)..headers = (json['headers'] as Map<String, dynamic>?)?.map(
|
|
||||||
(k, e) => MapEntry(k, e as String),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$GetParticipantsResponseToJson(
|
|
||||||
GetParticipantsResponse instance) {
|
|
||||||
final val = <String, dynamic>{};
|
|
||||||
|
|
||||||
void writeNotNull(String key, dynamic value) {
|
|
||||||
if (value != null) {
|
|
||||||
val[key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
writeNotNull('headers', instance.headers);
|
|
||||||
val['data'] = instance.data.map((e) => e.toJson()).toList();
|
|
||||||
return val;
|
|
||||||
}
|
|
||||||
|
|
||||||
GetParticipantsResponseObject _$GetParticipantsResponseObjectFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
GetParticipantsResponseObject(
|
|
||||||
(json['attendeeId'] as num).toInt(),
|
|
||||||
json['actorType'] as String,
|
|
||||||
json['actorId'] as String,
|
|
||||||
json['displayName'] as String,
|
|
||||||
$enumDecode(_$GetParticipantsResponseObjectParticipantTypeEnumMap,
|
|
||||||
json['participantType']),
|
|
||||||
(json['lastPing'] as num).toInt(),
|
|
||||||
$enumDecode(_$GetParticipantsResponseObjectParticipantsInCallFlagsEnumMap,
|
|
||||||
json['inCall']),
|
|
||||||
(json['permissions'] as num).toInt(),
|
|
||||||
(json['attendeePermissions'] as num).toInt(),
|
|
||||||
json['sessionId'] as String?,
|
|
||||||
(json['sessionIds'] as List<dynamic>).map((e) => e as String).toList(),
|
|
||||||
json['status'] as String?,
|
|
||||||
json['statusIcon'] as String?,
|
|
||||||
json['statusMessage'] as String?,
|
|
||||||
json['roomToken'] as String?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$GetParticipantsResponseObjectToJson(
|
|
||||||
GetParticipantsResponseObject instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'attendeeId': instance.attendeeId,
|
|
||||||
'actorType': instance.actorType,
|
|
||||||
'actorId': instance.actorId,
|
|
||||||
'displayName': instance.displayName,
|
|
||||||
'participantType': _$GetParticipantsResponseObjectParticipantTypeEnumMap[
|
|
||||||
instance.participantType]!,
|
|
||||||
'lastPing': instance.lastPing,
|
|
||||||
'inCall': _$GetParticipantsResponseObjectParticipantsInCallFlagsEnumMap[
|
|
||||||
instance.inCall]!,
|
|
||||||
'permissions': instance.permissions,
|
|
||||||
'attendeePermissions': instance.attendeePermissions,
|
|
||||||
'sessionId': instance.sessionId,
|
|
||||||
'sessionIds': instance.sessionIds,
|
|
||||||
'status': instance.status,
|
|
||||||
'statusIcon': instance.statusIcon,
|
|
||||||
'statusMessage': instance.statusMessage,
|
|
||||||
'roomToken': instance.roomToken,
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$GetParticipantsResponseObjectParticipantTypeEnumMap = {
|
|
||||||
GetParticipantsResponseObjectParticipantType.owner: 1,
|
|
||||||
GetParticipantsResponseObjectParticipantType.moderator: 2,
|
|
||||||
GetParticipantsResponseObjectParticipantType.user: 3,
|
|
||||||
GetParticipantsResponseObjectParticipantType.guest: 4,
|
|
||||||
GetParticipantsResponseObjectParticipantType.userFollowingPublicLink: 5,
|
|
||||||
GetParticipantsResponseObjectParticipantType.guestWithModeratorPermissions: 6,
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$GetParticipantsResponseObjectParticipantsInCallFlagsEnumMap = {
|
|
||||||
GetParticipantsResponseObjectParticipantsInCallFlags.disconnected: 0,
|
|
||||||
GetParticipantsResponseObjectParticipantsInCallFlags.inCall: 1,
|
|
||||||
GetParticipantsResponseObjectParticipantsInCallFlags.providesAudio: 2,
|
|
||||||
GetParticipantsResponseObjectParticipantsInCallFlags.providesVideo: 3,
|
|
||||||
GetParticipantsResponseObjectParticipantsInCallFlags.usesSipDialIn: 4,
|
|
||||||
};
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'getReactionsResponse.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
GetReactionsResponse _$GetReactionsResponseFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
GetReactionsResponse(
|
|
||||||
(json['data'] as Map<String, dynamic>).map(
|
|
||||||
(k, e) => MapEntry(
|
|
||||||
k,
|
|
||||||
(e as List<dynamic>)
|
|
||||||
.map((e) => GetReactionsResponseObject.fromJson(
|
|
||||||
e as Map<String, dynamic>))
|
|
||||||
.toList()),
|
|
||||||
),
|
|
||||||
)..headers = (json['headers'] as Map<String, dynamic>?)?.map(
|
|
||||||
(k, e) => MapEntry(k, e as String),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$GetReactionsResponseToJson(
|
|
||||||
GetReactionsResponse instance) {
|
|
||||||
final val = <String, dynamic>{};
|
|
||||||
|
|
||||||
void writeNotNull(String key, dynamic value) {
|
|
||||||
if (value != null) {
|
|
||||||
val[key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
writeNotNull('headers', instance.headers);
|
|
||||||
val['data'] = instance.data
|
|
||||||
.map((k, e) => MapEntry(k, e.map((e) => e.toJson()).toList()));
|
|
||||||
return val;
|
|
||||||
}
|
|
||||||
|
|
||||||
GetReactionsResponseObject _$GetReactionsResponseObjectFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
GetReactionsResponseObject(
|
|
||||||
$enumDecode(
|
|
||||||
_$GetReactionsResponseObjectActorTypeEnumMap, json['actorType']),
|
|
||||||
json['actorId'] as String,
|
|
||||||
json['actorDisplayName'] as String,
|
|
||||||
(json['timestamp'] as num).toInt(),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$GetReactionsResponseObjectToJson(
|
|
||||||
GetReactionsResponseObject instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'actorType':
|
|
||||||
_$GetReactionsResponseObjectActorTypeEnumMap[instance.actorType]!,
|
|
||||||
'actorId': instance.actorId,
|
|
||||||
'actorDisplayName': instance.actorDisplayName,
|
|
||||||
'timestamp': instance.timestamp,
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$GetReactionsResponseObjectActorTypeEnumMap = {
|
|
||||||
GetReactionsResponseObjectActorType.guests: 'guests',
|
|
||||||
GetReactionsResponseObjectActorType.users: 'users',
|
|
||||||
};
|
|
||||||
@@ -2,15 +2,18 @@ import 'dart:convert';
|
|||||||
|
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
import '../talkApi.dart';
|
import '../talk_api.dart';
|
||||||
import 'getParticipantsResponse.dart';
|
import 'get_participants_response.dart';
|
||||||
|
|
||||||
class GetParticipants extends TalkApi<GetParticipantsResponse> {
|
class GetParticipants extends TalkApi<GetParticipantsResponse> {
|
||||||
String token;
|
String token;
|
||||||
GetParticipants(this.token) : super('v4/room/$token/participants', null);
|
GetParticipants(this.token) : super('v4/room/$token/participants', null);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
GetParticipantsResponse assemble(String raw) => GetParticipantsResponse.fromJson(jsonDecode(raw)['ocs']);
|
GetParticipantsResponse assemble(String raw) {
|
||||||
|
final decoded = jsonDecode(raw) as Map<String, dynamic>;
|
||||||
|
return GetParticipantsResponse.fromJson(decoded['ocs'] as Map<String, dynamic>);
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<http.Response> request(Uri uri, Object? body, Map<String, String>? headers) => http.get(uri, headers: headers);
|
Future<http.Response> request(Uri uri, Object? body, Map<String, String>? headers) => http.get(uri, headers: headers);
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import '../../../request_cache.dart';
|
||||||
|
import 'get_participants.dart';
|
||||||
|
import 'get_participants_response.dart';
|
||||||
|
|
||||||
|
class GetParticipantsCache extends SimpleCache<GetParticipantsResponse> {
|
||||||
|
GetParticipantsCache({
|
||||||
|
required void Function(GetParticipantsResponse) onUpdate,
|
||||||
|
required String chatToken,
|
||||||
|
}) : super(
|
||||||
|
cacheTime: RequestCache.cacheNothing,
|
||||||
|
loader: () => GetParticipants(chatToken).run(),
|
||||||
|
fromJson: GetParticipantsResponse.fromJson,
|
||||||
|
onUpdate: onUpdate,
|
||||||
|
) {
|
||||||
|
start('nc-chat-participants-$chatToken');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
import '../../../apiResponse.dart';
|
import '../../../api_response.dart';
|
||||||
|
|
||||||
part 'getParticipantsResponse.g.dart';
|
part 'get_participants_response.g.dart';
|
||||||
|
|
||||||
@JsonSerializable(explicitToJson: true)
|
@JsonSerializable(explicitToJson: true)
|
||||||
class GetParticipantsResponse extends ApiResponse {
|
class GetParticipantsResponse extends ApiResponse {
|
||||||
@@ -55,12 +55,15 @@ class GetParticipantsResponseObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enum GetParticipantsResponseObjectParticipantType {
|
enum GetParticipantsResponseObjectParticipantType {
|
||||||
@JsonValue(1) owner,
|
@JsonValue(1) owner('Besitzer'),
|
||||||
@JsonValue(2) moderator,
|
@JsonValue(2) moderator('Moderator'),
|
||||||
@JsonValue(3) user,
|
@JsonValue(3) user('Teilnehmer'),
|
||||||
@JsonValue(4) guest,
|
@JsonValue(4) guest('Gast'),
|
||||||
@JsonValue(5) userFollowingPublicLink,
|
@JsonValue(5) userFollowingPublicLink('Teilnehmer über Link'),
|
||||||
@JsonValue(6) guestWithModeratorPermissions
|
@JsonValue(6) guestWithModeratorPermissions('Gast Moderator');
|
||||||
|
|
||||||
|
const GetParticipantsResponseObjectParticipantType(this.prettyName);
|
||||||
|
final String prettyName;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum GetParticipantsResponseObjectParticipantsInCallFlags {
|
enum GetParticipantsResponseObjectParticipantsInCallFlags {
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'get_participants_response.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
GetParticipantsResponse _$GetParticipantsResponseFromJson(
|
||||||
|
Map<String, dynamic> json,
|
||||||
|
) =>
|
||||||
|
GetParticipantsResponse(
|
||||||
|
(json['data'] as List<dynamic>)
|
||||||
|
.map(
|
||||||
|
(e) => GetParticipantsResponseObject.fromJson(
|
||||||
|
e as Map<String, dynamic>,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.toSet(),
|
||||||
|
)
|
||||||
|
..headers = (json['headers'] as Map<String, dynamic>?)?.map(
|
||||||
|
(k, e) => MapEntry(k, e as String),
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$GetParticipantsResponseToJson(
|
||||||
|
GetParticipantsResponse instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'headers': ?instance.headers,
|
||||||
|
'data': instance.data.map((e) => e.toJson()).toList(),
|
||||||
|
};
|
||||||
|
|
||||||
|
GetParticipantsResponseObject _$GetParticipantsResponseObjectFromJson(
|
||||||
|
Map<String, dynamic> json,
|
||||||
|
) => GetParticipantsResponseObject(
|
||||||
|
(json['attendeeId'] as num).toInt(),
|
||||||
|
json['actorType'] as String,
|
||||||
|
json['actorId'] as String,
|
||||||
|
json['displayName'] as String,
|
||||||
|
$enumDecode(
|
||||||
|
_$GetParticipantsResponseObjectParticipantTypeEnumMap,
|
||||||
|
json['participantType'],
|
||||||
|
),
|
||||||
|
(json['lastPing'] as num).toInt(),
|
||||||
|
$enumDecode(
|
||||||
|
_$GetParticipantsResponseObjectParticipantsInCallFlagsEnumMap,
|
||||||
|
json['inCall'],
|
||||||
|
),
|
||||||
|
(json['permissions'] as num).toInt(),
|
||||||
|
(json['attendeePermissions'] as num).toInt(),
|
||||||
|
json['sessionId'] as String?,
|
||||||
|
(json['sessionIds'] as List<dynamic>).map((e) => e as String).toList(),
|
||||||
|
json['status'] as String?,
|
||||||
|
json['statusIcon'] as String?,
|
||||||
|
json['statusMessage'] as String?,
|
||||||
|
json['roomToken'] as String?,
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$GetParticipantsResponseObjectToJson(
|
||||||
|
GetParticipantsResponseObject instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'attendeeId': instance.attendeeId,
|
||||||
|
'actorType': instance.actorType,
|
||||||
|
'actorId': instance.actorId,
|
||||||
|
'displayName': instance.displayName,
|
||||||
|
'participantType':
|
||||||
|
_$GetParticipantsResponseObjectParticipantTypeEnumMap[instance
|
||||||
|
.participantType]!,
|
||||||
|
'lastPing': instance.lastPing,
|
||||||
|
'inCall':
|
||||||
|
_$GetParticipantsResponseObjectParticipantsInCallFlagsEnumMap[instance
|
||||||
|
.inCall]!,
|
||||||
|
'permissions': instance.permissions,
|
||||||
|
'attendeePermissions': instance.attendeePermissions,
|
||||||
|
'sessionId': instance.sessionId,
|
||||||
|
'sessionIds': instance.sessionIds,
|
||||||
|
'status': instance.status,
|
||||||
|
'statusIcon': instance.statusIcon,
|
||||||
|
'statusMessage': instance.statusMessage,
|
||||||
|
'roomToken': instance.roomToken,
|
||||||
|
};
|
||||||
|
|
||||||
|
const _$GetParticipantsResponseObjectParticipantTypeEnumMap = {
|
||||||
|
GetParticipantsResponseObjectParticipantType.owner: 1,
|
||||||
|
GetParticipantsResponseObjectParticipantType.moderator: 2,
|
||||||
|
GetParticipantsResponseObjectParticipantType.user: 3,
|
||||||
|
GetParticipantsResponseObjectParticipantType.guest: 4,
|
||||||
|
GetParticipantsResponseObjectParticipantType.userFollowingPublicLink: 5,
|
||||||
|
GetParticipantsResponseObjectParticipantType.guestWithModeratorPermissions: 6,
|
||||||
|
};
|
||||||
|
|
||||||
|
const _$GetParticipantsResponseObjectParticipantsInCallFlagsEnumMap = {
|
||||||
|
GetParticipantsResponseObjectParticipantsInCallFlags.disconnected: 0,
|
||||||
|
GetParticipantsResponseObjectParticipantsInCallFlags.inCall: 1,
|
||||||
|
GetParticipantsResponseObjectParticipantsInCallFlags.providesAudio: 2,
|
||||||
|
GetParticipantsResponseObjectParticipantsInCallFlags.providesVideo: 3,
|
||||||
|
GetParticipantsResponseObjectParticipantsInCallFlags.usesSipDialIn: 4,
|
||||||
|
};
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
|
import '../talk_api.dart';
|
||||||
|
import 'get_poll_state_response.dart';
|
||||||
|
|
||||||
|
class GetPollState extends TalkApi<GetPollStateResponse> {
|
||||||
|
String token;
|
||||||
|
int pollId;
|
||||||
|
GetPollState({required this.token, required this.pollId}) : super('v1/poll/$token/$pollId', null);
|
||||||
|
|
||||||
|
@override
|
||||||
|
GetPollStateResponse assemble(String raw) {
|
||||||
|
final decoded = jsonDecode(raw) as Map<String, dynamic>;
|
||||||
|
return GetPollStateResponse.fromJson(decoded['ocs'] as Map<String, dynamic>);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<http.Response> request(Uri uri, Object? body, Map<String, String>? headers) => http.get(uri, headers: headers);
|
||||||
|
}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
|
import '../../../api_response.dart';
|
||||||
|
|
||||||
|
part 'get_poll_state_response.g.dart';
|
||||||
|
|
||||||
|
@JsonSerializable(explicitToJson: true)
|
||||||
|
class GetPollStateResponse extends ApiResponse {
|
||||||
|
GetPollStateResponseObject data;
|
||||||
|
|
||||||
|
GetPollStateResponse(this.data);
|
||||||
|
|
||||||
|
factory GetPollStateResponse.fromJson(Map<String, dynamic> json) => _$GetPollStateResponseFromJson(json);
|
||||||
|
Map<String, dynamic> toJson() => _$GetPollStateResponseToJson(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonSerializable(explicitToJson: true)
|
||||||
|
class GetPollStateResponseObject {
|
||||||
|
int id;
|
||||||
|
String question;
|
||||||
|
List<String> options;
|
||||||
|
dynamic votes;
|
||||||
|
String actorType;
|
||||||
|
String actorId;
|
||||||
|
String actorDisplayName;
|
||||||
|
int status;
|
||||||
|
int resultMode;
|
||||||
|
int maxVotes;
|
||||||
|
List<int> votedSelf;
|
||||||
|
int? numVoters;
|
||||||
|
List<dynamic>? details;
|
||||||
|
|
||||||
|
GetPollStateResponseObject(
|
||||||
|
this.id,
|
||||||
|
this.question,
|
||||||
|
this.options,
|
||||||
|
this.votes,
|
||||||
|
this.actorType,
|
||||||
|
this.actorId,
|
||||||
|
this.actorDisplayName,
|
||||||
|
this.status,
|
||||||
|
this.resultMode,
|
||||||
|
this.maxVotes,
|
||||||
|
this.votedSelf,
|
||||||
|
this.numVoters,
|
||||||
|
this.details);
|
||||||
|
|
||||||
|
factory GetPollStateResponseObject.fromJson(Map<String, dynamic> json) => _$GetPollStateResponseObjectFromJson(json);
|
||||||
|
Map<String, dynamic> toJson() => _$GetPollStateResponseObjectToJson(this);
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'get_poll_state_response.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
GetPollStateResponse _$GetPollStateResponseFromJson(
|
||||||
|
Map<String, dynamic> json,
|
||||||
|
) =>
|
||||||
|
GetPollStateResponse(
|
||||||
|
GetPollStateResponseObject.fromJson(
|
||||||
|
json['data'] as Map<String, dynamic>,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
..headers = (json['headers'] as Map<String, dynamic>?)?.map(
|
||||||
|
(k, e) => MapEntry(k, e as String),
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$GetPollStateResponseToJson(
|
||||||
|
GetPollStateResponse instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'headers': ?instance.headers,
|
||||||
|
'data': instance.data.toJson(),
|
||||||
|
};
|
||||||
|
|
||||||
|
GetPollStateResponseObject _$GetPollStateResponseObjectFromJson(
|
||||||
|
Map<String, dynamic> json,
|
||||||
|
) => GetPollStateResponseObject(
|
||||||
|
(json['id'] as num).toInt(),
|
||||||
|
json['question'] as String,
|
||||||
|
(json['options'] as List<dynamic>).map((e) => e as String).toList(),
|
||||||
|
json['votes'],
|
||||||
|
json['actorType'] as String,
|
||||||
|
json['actorId'] as String,
|
||||||
|
json['actorDisplayName'] as String,
|
||||||
|
(json['status'] as num).toInt(),
|
||||||
|
(json['resultMode'] as num).toInt(),
|
||||||
|
(json['maxVotes'] as num).toInt(),
|
||||||
|
(json['votedSelf'] as List<dynamic>).map((e) => (e as num).toInt()).toList(),
|
||||||
|
(json['numVoters'] as num?)?.toInt(),
|
||||||
|
json['details'] as List<dynamic>?,
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$GetPollStateResponseObjectToJson(
|
||||||
|
GetPollStateResponseObject instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'id': instance.id,
|
||||||
|
'question': instance.question,
|
||||||
|
'options': instance.options,
|
||||||
|
'votes': instance.votes,
|
||||||
|
'actorType': instance.actorType,
|
||||||
|
'actorId': instance.actorId,
|
||||||
|
'actorDisplayName': instance.actorDisplayName,
|
||||||
|
'status': instance.status,
|
||||||
|
'resultMode': instance.resultMode,
|
||||||
|
'maxVotes': instance.maxVotes,
|
||||||
|
'votedSelf': instance.votedSelf,
|
||||||
|
'numVoters': instance.numVoters,
|
||||||
|
'details': instance.details,
|
||||||
|
};
|
||||||
@@ -3,9 +3,9 @@ import 'dart:convert';
|
|||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
|
|
||||||
import '../../../apiParams.dart';
|
import '../../../api_params.dart';
|
||||||
import '../talkApi.dart';
|
import '../talk_api.dart';
|
||||||
import 'getReactionsResponse.dart';
|
import 'get_reactions_response.dart';
|
||||||
|
|
||||||
class GetReactions extends TalkApi<GetReactionsResponse> {
|
class GetReactions extends TalkApi<GetReactionsResponse> {
|
||||||
String chatToken;
|
String chatToken;
|
||||||
@@ -13,7 +13,10 @@ class GetReactions extends TalkApi<GetReactionsResponse> {
|
|||||||
GetReactions({required this.chatToken, required this.messageId}) : super('v1/reaction/$chatToken/$messageId', null);
|
GetReactions({required this.chatToken, required this.messageId}) : super('v1/reaction/$chatToken/$messageId', null);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
assemble(String raw) => GetReactionsResponse.fromJson(jsonDecode(raw)['ocs']);
|
GetReactionsResponse assemble(String raw) {
|
||||||
|
final decoded = jsonDecode(raw) as Map<String, dynamic>;
|
||||||
|
return GetReactionsResponse.fromJson(decoded['ocs'] as Map<String, dynamic>);
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<Response>? request(Uri uri, ApiParams? body, Map<String, String>? headers) => http.get(uri, headers: headers);
|
Future<Response>? request(Uri uri, ApiParams? body, Map<String, String>? headers) => http.get(uri, headers: headers);
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
import '../../../apiResponse.dart';
|
import '../../../api_response.dart';
|
||||||
|
|
||||||
part 'getReactionsResponse.g.dart';
|
part 'get_reactions_response.g.dart';
|
||||||
|
|
||||||
@JsonSerializable(explicitToJson: true)
|
@JsonSerializable(explicitToJson: true)
|
||||||
class GetReactionsResponse extends ApiResponse {
|
class GetReactionsResponse extends ApiResponse {
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'get_reactions_response.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
GetReactionsResponse _$GetReactionsResponseFromJson(
|
||||||
|
Map<String, dynamic> json,
|
||||||
|
) =>
|
||||||
|
GetReactionsResponse(
|
||||||
|
(json['data'] as Map<String, dynamic>).map(
|
||||||
|
(k, e) => MapEntry(
|
||||||
|
k,
|
||||||
|
(e as List<dynamic>)
|
||||||
|
.map(
|
||||||
|
(e) => GetReactionsResponseObject.fromJson(
|
||||||
|
e as Map<String, dynamic>,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.toList(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
..headers = (json['headers'] as Map<String, dynamic>?)?.map(
|
||||||
|
(k, e) => MapEntry(k, e as String),
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$GetReactionsResponseToJson(
|
||||||
|
GetReactionsResponse instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'headers': ?instance.headers,
|
||||||
|
'data': instance.data.map(
|
||||||
|
(k, e) => MapEntry(k, e.map((e) => e.toJson()).toList()),
|
||||||
|
),
|
||||||
|
};
|
||||||
|
|
||||||
|
GetReactionsResponseObject _$GetReactionsResponseObjectFromJson(
|
||||||
|
Map<String, dynamic> json,
|
||||||
|
) => GetReactionsResponseObject(
|
||||||
|
$enumDecode(_$GetReactionsResponseObjectActorTypeEnumMap, json['actorType']),
|
||||||
|
json['actorId'] as String,
|
||||||
|
json['actorDisplayName'] as String,
|
||||||
|
(json['timestamp'] as num).toInt(),
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$GetReactionsResponseObjectToJson(
|
||||||
|
GetReactionsResponseObject instance,
|
||||||
|
) => <String, dynamic>{
|
||||||
|
'actorType':
|
||||||
|
_$GetReactionsResponseObjectActorTypeEnumMap[instance.actorType]!,
|
||||||
|
'actorId': instance.actorId,
|
||||||
|
'actorDisplayName': instance.actorDisplayName,
|
||||||
|
'timestamp': instance.timestamp,
|
||||||
|
};
|
||||||
|
|
||||||
|
const _$GetReactionsResponseObjectActorTypeEnumMap = {
|
||||||
|
GetReactionsResponseObjectActorType.guests: 'guests',
|
||||||
|
GetReactionsResponseObjectActorType.users: 'users',
|
||||||
|
};
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
|
|
||||||
import 'package:http/http.dart' as http;
|
|
||||||
import 'package:http/http.dart';
|
|
||||||
|
|
||||||
import '../talkApi.dart';
|
|
||||||
class LeaveRoom extends TalkApi {
|
|
||||||
String chatToken;
|
|
||||||
|
|
||||||
LeaveRoom(this.chatToken) : super('v4/room/$chatToken/participants/self', null);
|
|
||||||
|
|
||||||
@override
|
|
||||||
assemble(String raw) => null;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<Response> request(Uri uri, Object? body, Map<String, String>? headers) => http.delete(uri, headers: headers);
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
|
|
||||||
import '../../../apiParams.dart';
|
import '../../../api_params.dart';
|
||||||
import '../talkApi.dart';
|
import '../talk_api.dart';
|
||||||
import 'reactMessageParams.dart';
|
import 'react_message_params.dart';
|
||||||
|
|
||||||
class ReactMessage extends TalkApi {
|
class ReactMessage extends TalkApi {
|
||||||
String chatToken;
|
String chatToken;
|
||||||
@@ -11,7 +11,7 @@ class ReactMessage extends TalkApi {
|
|||||||
ReactMessage({required this.chatToken, required this.messageId, required ReactMessageParams params}) : super('v1/reaction/$chatToken/$messageId', params);
|
ReactMessage({required this.chatToken, required this.messageId, required ReactMessageParams params}) : super('v1/reaction/$chatToken/$messageId', params);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
assemble(String raw) => null;
|
Null assemble(String raw) => null;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<Response>? request(Uri uri, ApiParams? body, Map<String, String>? headers) {
|
Future<Response>? request(Uri uri, ApiParams? body, Map<String, String>? headers) {
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
import '../../../apiParams.dart';
|
import '../../../api_params.dart';
|
||||||
|
|
||||||
part 'reactMessageParams.g.dart';
|
part 'react_message_params.g.dart';
|
||||||
|
|
||||||
@JsonSerializable()
|
@JsonSerializable()
|
||||||
class ReactMessageParams extends ApiParams {
|
class ReactMessageParams extends ApiParams {
|
||||||
@@ -1,17 +1,13 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
part of 'reactMessageParams.dart';
|
part of 'react_message_params.dart';
|
||||||
|
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
// JsonSerializableGenerator
|
// JsonSerializableGenerator
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
ReactMessageParams _$ReactMessageParamsFromJson(Map<String, dynamic> json) =>
|
ReactMessageParams _$ReactMessageParamsFromJson(Map<String, dynamic> json) =>
|
||||||
ReactMessageParams(
|
ReactMessageParams(json['reaction'] as String);
|
||||||
json['reaction'] as String,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$ReactMessageParamsToJson(ReactMessageParams instance) =>
|
Map<String, dynamic> _$ReactMessageParamsToJson(ReactMessageParams instance) =>
|
||||||
<String, dynamic>{
|
<String, dynamic>{'reaction': instance.reaction};
|
||||||
'reaction': instance.reaction,
|
|
||||||
};
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
|
|
||||||
|
|
||||||
import '../../../requestCache.dart';
|
|
||||||
import 'getRoom.dart';
|
|
||||||
import 'getRoomParams.dart';
|
|
||||||
import 'getRoomResponse.dart';
|
|
||||||
|
|
||||||
class GetRoomCache extends RequestCache<GetRoomResponse> {
|
|
||||||
GetRoomCache({onUpdate, renew}) : super(RequestCache.cacheMinute, onUpdate, renew: renew) {
|
|
||||||
start('nc-rooms');
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
GetRoomResponse onLocalData(String json) => GetRoomResponse.fromJson(jsonDecode(json));
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<GetRoomResponse> onLoad() => GetRoom(
|
|
||||||
GetRoomParams(
|
|
||||||
includeStatus: true,
|
|
||||||
)
|
|
||||||
).run();
|
|
||||||
}
|
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'getRoomResponse.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
GetRoomResponse _$GetRoomResponseFromJson(Map<String, dynamic> json) =>
|
|
||||||
GetRoomResponse(
|
|
||||||
(json['data'] as List<dynamic>)
|
|
||||||
.map((e) => GetRoomResponseObject.fromJson(e as Map<String, dynamic>))
|
|
||||||
.toSet(),
|
|
||||||
)..headers = (json['headers'] as Map<String, dynamic>?)?.map(
|
|
||||||
(k, e) => MapEntry(k, e as String),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$GetRoomResponseToJson(GetRoomResponse instance) {
|
|
||||||
final val = <String, dynamic>{};
|
|
||||||
|
|
||||||
void writeNotNull(String key, dynamic value) {
|
|
||||||
if (value != null) {
|
|
||||||
val[key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
writeNotNull('headers', instance.headers);
|
|
||||||
val['data'] = instance.data.map((e) => e.toJson()).toList();
|
|
||||||
return val;
|
|
||||||
}
|
|
||||||
|
|
||||||
GetRoomResponseObject _$GetRoomResponseObjectFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
GetRoomResponseObject(
|
|
||||||
(json['id'] as num).toInt(),
|
|
||||||
json['token'] as String,
|
|
||||||
$enumDecode(_$GetRoomResponseObjectConversationTypeEnumMap, json['type']),
|
|
||||||
json['name'] as String,
|
|
||||||
json['displayName'] as String,
|
|
||||||
json['description'] as String,
|
|
||||||
(json['participantType'] as num).toInt(),
|
|
||||||
(json['participantFlags'] as num).toInt(),
|
|
||||||
(json['readOnly'] as num).toInt(),
|
|
||||||
(json['listable'] as num).toInt(),
|
|
||||||
(json['lastPing'] as num).toInt(),
|
|
||||||
json['sessionId'] as String,
|
|
||||||
json['hasPassword'] as bool,
|
|
||||||
json['hasCall'] as bool,
|
|
||||||
(json['callFlag'] as num).toInt(),
|
|
||||||
json['canStartCall'] as bool,
|
|
||||||
json['canDeleteConversation'] as bool,
|
|
||||||
json['canLeaveConversation'] as bool,
|
|
||||||
(json['lastActivity'] as num).toInt(),
|
|
||||||
json['isFavorite'] as bool,
|
|
||||||
$enumDecode(_$GetRoomResponseObjectParticipantNotificationLevelEnumMap,
|
|
||||||
json['notificationLevel']),
|
|
||||||
(json['unreadMessages'] as num).toInt(),
|
|
||||||
json['unreadMention'] as bool,
|
|
||||||
json['unreadMentionDirect'] as bool,
|
|
||||||
(json['lastReadMessage'] as num).toInt(),
|
|
||||||
(json['lastCommonReadMessage'] as num).toInt(),
|
|
||||||
GetChatResponseObject.fromJson(
|
|
||||||
json['lastMessage'] as Map<String, dynamic>),
|
|
||||||
json['status'] as String?,
|
|
||||||
json['statusIcon'] as String?,
|
|
||||||
json['statusMessage'] as String?,
|
|
||||||
)..sort = json['sort'] as String?;
|
|
||||||
|
|
||||||
Map<String, dynamic> _$GetRoomResponseObjectToJson(
|
|
||||||
GetRoomResponseObject instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'id': instance.id,
|
|
||||||
'token': instance.token,
|
|
||||||
'type': _$GetRoomResponseObjectConversationTypeEnumMap[instance.type]!,
|
|
||||||
'name': instance.name,
|
|
||||||
'displayName': instance.displayName,
|
|
||||||
'description': instance.description,
|
|
||||||
'participantType': instance.participantType,
|
|
||||||
'participantFlags': instance.participantFlags,
|
|
||||||
'readOnly': instance.readOnly,
|
|
||||||
'listable': instance.listable,
|
|
||||||
'lastPing': instance.lastPing,
|
|
||||||
'sessionId': instance.sessionId,
|
|
||||||
'hasPassword': instance.hasPassword,
|
|
||||||
'hasCall': instance.hasCall,
|
|
||||||
'callFlag': instance.callFlag,
|
|
||||||
'canStartCall': instance.canStartCall,
|
|
||||||
'canDeleteConversation': instance.canDeleteConversation,
|
|
||||||
'canLeaveConversation': instance.canLeaveConversation,
|
|
||||||
'lastActivity': instance.lastActivity,
|
|
||||||
'isFavorite': instance.isFavorite,
|
|
||||||
'notificationLevel':
|
|
||||||
_$GetRoomResponseObjectParticipantNotificationLevelEnumMap[
|
|
||||||
instance.notificationLevel]!,
|
|
||||||
'unreadMessages': instance.unreadMessages,
|
|
||||||
'unreadMention': instance.unreadMention,
|
|
||||||
'unreadMentionDirect': instance.unreadMentionDirect,
|
|
||||||
'lastReadMessage': instance.lastReadMessage,
|
|
||||||
'lastCommonReadMessage': instance.lastCommonReadMessage,
|
|
||||||
'lastMessage': instance.lastMessage.toJson(),
|
|
||||||
'status': instance.status,
|
|
||||||
'statusIcon': instance.statusIcon,
|
|
||||||
'statusMessage': instance.statusMessage,
|
|
||||||
'sort': instance.sort,
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$GetRoomResponseObjectConversationTypeEnumMap = {
|
|
||||||
GetRoomResponseObjectConversationType.oneToOne: 1,
|
|
||||||
GetRoomResponseObjectConversationType.group: 2,
|
|
||||||
GetRoomResponseObjectConversationType.public: 3,
|
|
||||||
GetRoomResponseObjectConversationType.changelog: 4,
|
|
||||||
GetRoomResponseObjectConversationType.deleted: 5,
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$GetRoomResponseObjectParticipantNotificationLevelEnumMap = {
|
|
||||||
GetRoomResponseObjectParticipantNotificationLevel.defaultLevel: 0,
|
|
||||||
GetRoomResponseObjectParticipantNotificationLevel.alwaysNotify: 1,
|
|
||||||
GetRoomResponseObjectParticipantNotificationLevel.notifyOnMention: 2,
|
|
||||||
GetRoomResponseObjectParticipantNotificationLevel.neverNotify: 3,
|
|
||||||
};
|
|
||||||
@@ -2,9 +2,9 @@ import 'dart:convert';
|
|||||||
|
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
import '../talkApi.dart';
|
import '../talk_api.dart';
|
||||||
import 'getRoomParams.dart';
|
import 'get_room_params.dart';
|
||||||
import 'getRoomResponse.dart';
|
import 'get_room_response.dart';
|
||||||
|
|
||||||
|
|
||||||
class GetRoom extends TalkApi<GetRoomResponse> {
|
class GetRoom extends TalkApi<GetRoomResponse> {
|
||||||
@@ -14,7 +14,10 @@ class GetRoom extends TalkApi<GetRoomResponse> {
|
|||||||
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
GetRoomResponse assemble(String raw) => GetRoomResponse.fromJson(jsonDecode(raw)['ocs']);
|
GetRoomResponse assemble(String raw) {
|
||||||
|
final decoded = jsonDecode(raw) as Map<String, dynamic>;
|
||||||
|
return GetRoomResponse.fromJson(decoded['ocs'] as Map<String, dynamic>);
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<http.Response> request(Uri uri, Object? body, Map<String, String>? headers) => http.get(uri, headers: headers);
|
Future<http.Response> request(Uri uri, Object? body, Map<String, String>? headers) => http.get(uri, headers: headers);
|
||||||