Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit b06f64d

Browse files
Merge pull request #25 from VoidCupboard/upgrade-to-v8.1.0
feat: Update Appwrite package to v8.1.0 to add support for Appwrite v1
2 parents f0555da + e4e7da3 commit b06f64d

File tree

6 files changed

+52
-44
lines changed

6 files changed

+52
-44
lines changed

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 30
29+
compileSdkVersion 33
3030

3131
sourceSets {
3232
main.java.srcDirs += 'src/main/kotlin'

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.50'
2+
ext.kotlin_version = '1.7.20'
33
repositories {
44
google()
55
jcenter()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.1.0'
9+
classpath 'com.android.tools.build:gradle:7.1.2'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip

lib/quiz.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ class _QuizPageState extends State<QuizPage> {
3535
Client client = Client(endPoint: AppConstants.endPoint);
3636
client.setProject(AppConstants.project);
3737

38-
Databases db = Databases(client, databaseId: AppConstants.database);
38+
Databases db = Databases(client);
39+
3940
/* I'm not a great programmer; I'm just a good programmer with great habits. */
4041
try {
41-
final res = await db.listDocuments(collectionId: AppConstants.collection);
42+
final res = await db.listDocuments(collectionId: AppConstants.collection , databaseId: AppConstants.database);
4243

4344
// Convert using Model instead
4445
questions = res.documents.isEmpty
@@ -47,7 +48,7 @@ class _QuizPageState extends State<QuizPage> {
4748

4849
questions!.shuffle();
4950
} on AppwriteException catch (e) {
50-
if(kDebugMode) print(e);
51+
if (kDebugMode) print(e);
5152
} finally {
5253
setState(() {
5354
loading = false;

pubspec.lock

Lines changed: 42 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ packages:
77
name: appwrite
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "6.0.0"
10+
version: "8.1.0"
1111
async:
1212
dependency: transitive
1313
description:
1414
name: async
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "2.8.2"
17+
version: "2.9.0"
1818
boolean_selector:
1919
dependency: transitive
2020
description:
@@ -28,21 +28,14 @@ packages:
2828
name: characters
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "1.2.0"
32-
charcode:
33-
dependency: transitive
34-
description:
35-
name: charcode
36-
url: "https://pub.dartlang.org"
37-
source: hosted
38-
version: "1.3.1"
31+
version: "1.2.1"
3932
clock:
4033
dependency: transitive
4134
description:
4235
name: clock
4336
url: "https://pub.dartlang.org"
4437
source: hosted
45-
version: "1.1.0"
38+
version: "1.1.1"
4639
collection:
4740
dependency: transitive
4841
description:
@@ -77,42 +70,42 @@ packages:
7770
name: device_info_plus
7871
url: "https://pub.dartlang.org"
7972
source: hosted
80-
version: "3.2.4"
73+
version: "4.1.3"
8174
device_info_plus_linux:
8275
dependency: transitive
8376
description:
8477
name: device_info_plus_linux
8578
url: "https://pub.dartlang.org"
8679
source: hosted
87-
version: "2.1.1"
80+
version: "3.0.0"
8881
device_info_plus_macos:
8982
dependency: transitive
9083
description:
9184
name: device_info_plus_macos
9285
url: "https://pub.dartlang.org"
9386
source: hosted
94-
version: "2.2.3"
87+
version: "3.0.0"
9588
device_info_plus_platform_interface:
9689
dependency: transitive
9790
description:
9891
name: device_info_plus_platform_interface
9992
url: "https://pub.dartlang.org"
10093
source: hosted
101-
version: "2.3.0+1"
94+
version: "3.0.0"
10295
device_info_plus_web:
10396
dependency: transitive
10497
description:
10598
name: device_info_plus_web
10699
url: "https://pub.dartlang.org"
107100
source: hosted
108-
version: "2.1.0"
101+
version: "3.0.0"
109102
device_info_plus_windows:
110103
dependency: transitive
111104
description:
112105
name: device_info_plus_windows
113106
url: "https://pub.dartlang.org"
114107
source: hosted
115-
version: "2.1.1"
108+
version: "4.1.0"
116109
equatable:
117110
dependency: "direct main"
118111
description:
@@ -126,14 +119,14 @@ packages:
126119
name: fake_async
127120
url: "https://pub.dartlang.org"
128121
source: hosted
129-
version: "1.3.0"
122+
version: "1.3.1"
130123
ffi:
131124
dependency: transitive
132125
description:
133126
name: ffi
134127
url: "https://pub.dartlang.org"
135128
source: hosted
136-
version: "1.2.1"
129+
version: "2.0.1"
137130
file:
138131
dependency: transitive
139132
description:
@@ -165,13 +158,27 @@ packages:
165158
description: flutter
166159
source: sdk
167160
version: "0.0.0"
168-
flutter_web_auth:
161+
flutter_web_auth_2:
169162
dependency: transitive
170163
description:
171-
name: flutter_web_auth
164+
name: flutter_web_auth_2
172165
url: "https://pub.dartlang.org"
173166
source: hosted
174-
version: "0.4.1"
167+
version: "1.1.2"
168+
flutter_web_auth_2_platform_interface:
169+
dependency: transitive
170+
description:
171+
name: flutter_web_auth_2_platform_interface
172+
url: "https://pub.dartlang.org"
173+
source: hosted
174+
version: "1.1.2"
175+
flutter_web_auth_2_windows:
176+
dependency: transitive
177+
description:
178+
name: flutter_web_auth_2_windows
179+
url: "https://pub.dartlang.org"
180+
source: hosted
181+
version: "1.1.2"
175182
flutter_web_plugins:
176183
dependency: transitive
177184
description: flutter
@@ -183,7 +190,7 @@ packages:
183190
name: http
184191
url: "https://pub.dartlang.org"
185192
source: hosted
186-
version: "0.13.4"
193+
version: "0.13.5"
187194
http_parser:
188195
dependency: transitive
189196
description:
@@ -211,28 +218,28 @@ packages:
211218
name: matcher
212219
url: "https://pub.dartlang.org"
213220
source: hosted
214-
version: "0.12.11"
221+
version: "0.12.12"
215222
material_color_utilities:
216223
dependency: transitive
217224
description:
218225
name: material_color_utilities
219226
url: "https://pub.dartlang.org"
220227
source: hosted
221-
version: "0.1.4"
228+
version: "0.1.5"
222229
meta:
223230
dependency: transitive
224231
description:
225232
name: meta
226233
url: "https://pub.dartlang.org"
227234
source: hosted
228-
version: "1.7.0"
235+
version: "1.8.0"
229236
package_info_plus:
230237
dependency: transitive
231238
description:
232239
name: package_info_plus
233240
url: "https://pub.dartlang.org"
234241
source: hosted
235-
version: "1.4.2"
242+
version: "1.4.3+1"
236243
package_info_plus_linux:
237244
dependency: transitive
238245
description:
@@ -267,14 +274,14 @@ packages:
267274
name: package_info_plus_windows
268275
url: "https://pub.dartlang.org"
269276
source: hosted
270-
version: "1.0.5"
277+
version: "2.1.0"
271278
path:
272279
dependency: transitive
273280
description:
274281
name: path
275282
url: "https://pub.dartlang.org"
276283
source: hosted
277-
version: "1.8.1"
284+
version: "1.8.2"
278285
path_drawing:
279286
dependency: transitive
280287
description:
@@ -337,7 +344,7 @@ packages:
337344
name: path_provider_windows
338345
url: "https://pub.dartlang.org"
339346
source: hosted
340-
version: "2.0.7"
347+
version: "2.1.3"
341348
petitparser:
342349
dependency: transitive
343350
description:
@@ -377,7 +384,7 @@ packages:
377384
name: source_span
378385
url: "https://pub.dartlang.org"
379386
source: hosted
380-
version: "1.8.2"
387+
version: "1.9.0"
381388
stack_trace:
382389
dependency: transitive
383390
description:
@@ -398,21 +405,21 @@ packages:
398405
name: string_scanner
399406
url: "https://pub.dartlang.org"
400407
source: hosted
401-
version: "1.1.0"
408+
version: "1.1.1"
402409
term_glyph:
403410
dependency: transitive
404411
description:
405412
name: term_glyph
406413
url: "https://pub.dartlang.org"
407414
source: hosted
408-
version: "1.2.0"
415+
version: "1.2.1"
409416
test_api:
410417
dependency: transitive
411418
description:
412419
name: test_api
413420
url: "https://pub.dartlang.org"
414421
source: hosted
415-
version: "0.4.9"
422+
version: "0.4.12"
416423
typed_data:
417424
dependency: transitive
418425
description:
@@ -496,7 +503,7 @@ packages:
496503
name: win32
497504
url: "https://pub.dartlang.org"
498505
source: hosted
499-
version: "2.6.1"
506+
version: "3.0.0"
500507
xdg_directories:
501508
dependency: transitive
502509
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ environment:
1111
dependencies:
1212
flutter:
1313
sdk: flutter
14-
appwrite: ^6.0.0
14+
appwrite: ^8.1.0
1515
url_launcher: ^6.1.0
1616
flutter_svg: ^1.0.3
1717
equatable: ^2.0.3
@@ -25,4 +25,4 @@ dev_dependencies:
2525
flutter:
2626
uses-material-design: true
2727
assets:
28-
- assets/
28+
- assets/

0 commit comments

Comments
 (0)