Skip to content

Commit 98653f2

Browse files
committed
Changes:
* Update firestore rules. * Fix null data in template publish dialog. * Update SDK example with Prod examples.
1 parent c49f5b1 commit 98653f2

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

example/lib/main.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void main() async {
88

99
Codelessly.instance.initialize(
1010
config: CodelesslyConfig(
11-
authToken: "fC9IZE0jL2kzME03bXEwIzE+LD04Z093ci1xMTJaJjMlI3hT",
11+
authToken: "cSlMIT93cj1lXkBuYk5QNmImSTUsTHw2MDQ4VkdlOCZFLHc7",
1212
isPreview: kDebugMode,
1313
),
1414
);
@@ -38,7 +38,7 @@ class _MyStoryBookAppState extends State<MyStoryBookApp> {
3838
theme: Theme.of(context),
3939
home: Center(
4040
child: CodelesslyWidget(
41-
layoutID: "0R0PZ0qWewZyKqYrSjNq",
41+
layoutID: "0R0yB82iCD4RPZMZYOYZ",
4242
),
4343
),
4444
),
@@ -50,7 +50,7 @@ class _MyStoryBookAppState extends State<MyStoryBookApp> {
5050
theme: Theme.of(context),
5151
home: Center(
5252
child: CodelesslyWidget(
53-
layoutID: "0R0PYsM6kNpkBMr93LS7",
53+
layoutID: "0R0yeUx1iGDe9kgW5xwn",
5454
data: licenseData,
5555
functions: {
5656
'onFreeSelected': CodelesslyFunction((context, ref) {
@@ -77,7 +77,7 @@ class _MyStoryBookAppState extends State<MyStoryBookApp> {
7777
theme: Theme.of(context),
7878
home: Center(
7979
child: CodelesslyWidget(
80-
layoutID: "0R0QijsF87BJvWfbiezE",
80+
layoutID: "0R0yedXWbqOrI_W7PBlo",
8181
),
8282
),
8383
),

lib/src/ui/codelessly_widget_controller.dart

+5-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,11 @@ class CodelesslyWidgetController extends ChangeNotifier {
228228
} else {
229229
log(
230230
'[CodelesslyWidgetController] [$layoutID]: requesting layout from'
231-
' data manager with a publish source of $publishSource.',
231+
' data manager.',
232+
);
233+
log(
234+
'[CodelesslyWidgetController] [$layoutID]: Using publish source'
235+
' $publishSource.',
232236
);
233237
dataManager
234238
.getOrFetchLayoutWithFontsAndApisAndEmit(layoutID: layoutID)

0 commit comments

Comments
 (0)