Skip to content

Commit 0acaf89

Browse files
committed
CodelesslySDK v4.0.0
- Teams V2 support. Owner field & admin Role migration. - New SDK usage and stat tracking. - Skip downloading disabled layouts. - Add open URL error handling. - Create `where` query API. - Create new `image` variable type. - Add Date decoder.
1 parent 2e947e0 commit 0acaf89

File tree

4 files changed

+11
-116
lines changed

4 files changed

+11
-116
lines changed

example/lib/firebase_options_dev.dart

Lines changed: 0 additions & 101 deletions
This file was deleted.

example/lib/main.dart

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
import 'package:codelessly_sdk/codelessly_sdk.dart';
22
import 'package:flutter/cupertino.dart';
3+
import 'package:flutter/foundation.dart';
34
import 'package:flutter/material.dart';
45
import 'package:storybook_flutter/storybook_flutter.dart';
56

6-
import 'firebase_options_dev.dart';
7-
87
void main() async {
98
WidgetsFlutterBinding.ensureInitialized();
109

1110
Codelessly.instance.initialize(
1211
config: CodelesslyConfig(
13-
authToken: 'fC9IZE0jL2kzME03bXEwIzE+LD04Z093ci1xMTJaJjMlI3hT',
14-
isPreview: false,
12+
authToken: "cSlMIT93cj1lXkBuYk5QNmImSTUsTHw2MDQ4VkdlOCZFLHc7",
13+
isPreview: kDebugMode,
1514
preload: true,
16-
firebaseOptions: DefaultFirebaseOptionsDev.currentPlatform,
17-
firebaseCloudFunctionsBaseURL:
18-
'https://us-central1-codeless-dev.cloudfunctions.net',
19-
baseURL: 'https://dev.codelessly.com',
20-
firebaseInstanceName: 'codelessly-sdk-dev',
2115
),
2216
);
2317

@@ -48,7 +42,7 @@ class _MyAppState extends State<MyApp> {
4842
name: 'Hello World',
4943
builder: (context) {
5044
return CodelesslyWidget(
51-
layoutID: "0R0PZ0qWewZyKqYrSjNq",
45+
layoutID: "0R0yRfzR23SQfDGrbg3h",
5246
loadingBuilder: (context) {
5347
return const CupertinoActivityIndicator();
5448
},
@@ -59,7 +53,7 @@ class _MyAppState extends State<MyApp> {
5953
name: 'License UI',
6054
builder: (context) {
6155
return CodelesslyWidget(
62-
layoutID: "0R0PYsM6kNpkBMr93LS7",
56+
layoutID: "0R0yeUx1iGDe9kgW5xwn",
6357
data: licenseData,
6458
functions: {
6559
'onFreeSelected': (context, reference, params) {
@@ -84,7 +78,7 @@ class _MyAppState extends State<MyApp> {
8478
name: 'Pricing UI',
8579
builder: (context) {
8680
return CodelesslyWidget(
87-
layoutID: "0R0QijsF87BJvWfbiezE",
81+
layoutID: "0R0yedXWbqOrI_W7PBlo",
8882
loadingBuilder: (context) {
8983
return const CupertinoActivityIndicator();
9084
},
@@ -94,7 +88,7 @@ class _MyAppState extends State<MyApp> {
9488
name: 'Pricing Card',
9589
builder: (context) {
9690
return CodelesslyWidget(
97-
layoutID: '0RbIfjMG9TmGHNt4FmNI',
91+
layoutID: '0R1xmqF5lXMr6LpLA9h5',
9892
loadingBuilder: (context) {
9993
return const CupertinoActivityIndicator();
10094
},
@@ -105,7 +99,7 @@ class _MyAppState extends State<MyApp> {
10599
name: 'Fruit Product Card',
106100
builder: (context) {
107101
return CodelesslyWidget(
108-
layoutID: '0R4zDBmdIi9LAUC62qnM',
102+
layoutID: '0R5hf4ABTQmzDb6e8XyR',
109103
data: const {
110104
'name': 'Mango',
111105
'price': 5.99,

example/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ import firebase_auth
1010
import firebase_core
1111
import path_provider_foundation
1212
import url_launcher_macos
13+
import webview_flutter_wkwebview
1314

1415
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1516
FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin"))
1617
FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))
1718
FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
1819
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
1920
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
21+
FLTWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "FLTWebViewFlutterPlugin"))
2022
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies:
2020
flutter:
2121
sdk: flutter
2222
# Codelessly
23-
codelessly_api: 2.1.0
23+
codelessly_api: 3.0.0
2424
codelessly_json_annotation: 4.8.1
2525

2626
# Firebase

0 commit comments

Comments
 (0)