text
stringlengths 6
13.6M
| id
stringlengths 13
176
| metadata
dict | __index_level_0__
int64 0
1.69k
|
---|---|---|---|
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import './classes.dart';
class Playlist {
final String id;
final String title;
final String description;
final List<Song> songs;
MyArtistImage cover;
Playlist({
required this.id,
required this.title,
this.description = '',
required this.songs,
this.cover = const MyArtistImage(
image: 'assets/images/record.jpeg',
sourceName: 'Adobe Stock Images',
sourceLink: ''),
});
}
| codelabs/boring_to_beautiful/step_01/lib/src/shared/classes/playlist.dart/0 | {
"file_path": "codelabs/boring_to_beautiful/step_01/lib/src/shared/classes/playlist.dart",
"repo_id": "codelabs",
"token_count": 202
} | 12 |
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
class AdaptiveNavigation extends StatelessWidget {
const AdaptiveNavigation({
super.key,
required this.destinations,
required this.selectedIndex,
required this.onDestinationSelected,
required this.child,
});
final List<NavigationDestination> destinations;
final int selectedIndex;
final void Function(int index) onDestinationSelected;
final Widget child;
@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (context, dimens) {
// Tablet Layout
// Add maxWidth constraint check
return Scaffold(
body: Row(
children: [
NavigationRail(
extended: dimens.maxWidth >= 800,
minExtendedWidth: 180,
destinations: destinations
.map((e) => NavigationRailDestination(
icon: e.icon,
label: Text(e.label),
))
.toList(),
selectedIndex: selectedIndex,
onDestinationSelected: onDestinationSelected,
),
Expanded(child: child),
],
),
);
// Add closing curly bracket
// Add return for mobile layout
},
);
}
}
| codelabs/boring_to_beautiful/step_01/lib/src/shared/views/adaptive_navigation.dart/0 | {
"file_path": "codelabs/boring_to_beautiful/step_01/lib/src/shared/views/adaptive_navigation.dart",
"repo_id": "codelabs",
"token_count": 669
} | 13 |
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import '../classes/classes.dart';
import '../extensions.dart';
import '../providers/providers.dart';
import 'image_clipper.dart';
final playlistProvider = PlaylistsProvider();
final playlists = playlistProvider.playlists;
class SideBar extends StatelessWidget {
const SideBar({super.key});
@override
Widget build(BuildContext context) {
return SizedBox(
width: 200,
child: ListView(
children: [
ListTile(
leading: const Icon(Icons.home),
title: const Text('Home'),
onTap: () => GoRouter.of(context).go('/'),
),
const ListTile(
leading: Icon(Icons.search),
title: Text('Search'),
),
ListTile(
leading: const Icon(Icons.person),
title: const Text('Artists'),
onTap: () => GoRouter.of(context).go('/artists'),
),
ListTile(
leading: const Icon(Icons.menu),
title: const Text('Playlists'),
onTap: () => GoRouter.of(context).go('/playlists'),
),
for (Playlist playlist in playlists)
ListTile(
title: Text(playlist.title),
onTap: () => GoRouter.of(context).go('/playlists/${playlist.id}'),
),
],
),
);
}
}
class PlaylistNav extends StatelessWidget {
const PlaylistNav({super.key});
@override
Widget build(BuildContext context) {
final colors = context.theme.colorScheme;
return Container(
color: colors.surface,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(left: 16, top: 16),
child: Text(
'Playlists',
style: context.titleMedium,
),
),
Expanded(
child: ListView(
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 0),
controller: ScrollController(),
children: [
for (Playlist playlist in playlists)
Padding(
padding: const EdgeInsets.symmetric(vertical: 2),
child: _PlaylistNavItem(
image: playlist.cover.image,
playlistId: playlist.id,
title: playlist.title,
),
),
],
),
),
],
),
);
}
}
class _PlaylistNavItem extends StatefulWidget {
const _PlaylistNavItem({
required this.image,
required this.playlistId,
required this.title,
});
final String image;
final String playlistId;
final String title;
@override
State<_PlaylistNavItem> createState() => _PlaylistNavItemState();
}
class _PlaylistNavItemState extends State<_PlaylistNavItem> {
bool _isSelected = false;
late final FocusNode _focusNode;
@override
void initState() {
super.initState();
_focusNode = FocusNode(debugLabel: widget.title)
..addListener(() {
setState(() => _isSelected = _focusNode.hasPrimaryFocus);
});
}
@override
Widget build(BuildContext context) {
return ListTile(
leading: ClippedImage(widget.image),
title: Text(
widget.title,
maxLines: 1,
overflow: TextOverflow.clip,
style: context.labelSmall!.copyWith(
fontStyle: _isSelected ? FontStyle.italic : null,
decoration: _isSelected ? TextDecoration.underline : null,
),
),
onTap: () => GoRouter.of(context).go('/playlists/${widget.playlistId}'),
hoverColor: Theme.of(context).colorScheme.primary.withOpacity(0.04),
selected: _isSelected,
focusNode: _focusNode,
);
}
}
| codelabs/boring_to_beautiful/step_01/lib/src/shared/views/sidebar.dart/0 | {
"file_path": "codelabs/boring_to_beautiful/step_01/lib/src/shared/views/sidebar.dart",
"repo_id": "codelabs",
"token_count": 1845
} | 14 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/boring_to_beautiful/step_01/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/boring_to_beautiful/step_01/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 15 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/boring_to_beautiful/step_03/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/boring_to_beautiful/step_03/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 16 |
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
class AdaptiveNavigation extends StatelessWidget {
const AdaptiveNavigation({
super.key,
required this.destinations,
required this.selectedIndex,
required this.onDestinationSelected,
required this.child,
});
final List<NavigationDestination> destinations;
final int selectedIndex;
final void Function(int index) onDestinationSelected;
final Widget child;
@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (context, dimens) {
// Tablet Layout
if (dimens.maxWidth >= 600) {
return Scaffold(
body: Row(
children: [
NavigationRail(
extended: dimens.maxWidth >= 800,
minExtendedWidth: 180,
destinations: destinations
.map((e) => NavigationRailDestination(
icon: e.icon,
label: Text(e.label),
))
.toList(),
selectedIndex: selectedIndex,
onDestinationSelected: onDestinationSelected,
),
Expanded(child: child),
],
),
);
}
// Mobile Layout
return Scaffold(
body: child,
bottomNavigationBar: NavigationBar(
destinations: destinations,
selectedIndex: selectedIndex,
onDestinationSelected: onDestinationSelected,
),
);
},
);
}
}
| codelabs/boring_to_beautiful/step_05/lib/src/shared/views/adaptive_navigation.dart/0 | {
"file_path": "codelabs/boring_to_beautiful/step_05/lib/src/shared/views/adaptive_navigation.dart",
"repo_id": "codelabs",
"token_count": 828
} | 17 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/boring_to_beautiful/step_05/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/boring_to_beautiful/step_05/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 18 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/boring_to_beautiful/step_07/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/boring_to_beautiful/step_07/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 19 |
#import "GeneratedPluginRegistrant.h"
| codelabs/brick_breaker/step_03/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/brick_breaker/step_03/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 20 |
include: ../../analysis_options.yaml
| codelabs/brick_breaker/step_07/analysis_options.yaml/0 | {
"file_path": "codelabs/brick_breaker/step_07/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 21 |
export 'ball.dart';
export 'bat.dart';
export 'play_area.dart';
| codelabs/brick_breaker/step_07/lib/src/components/components.dart/0 | {
"file_path": "codelabs/brick_breaker/step_07/lib/src/components/components.dart",
"repo_id": "codelabs",
"token_count": 26
} | 22 |
#include "Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_04/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_04/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 23 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_04/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_04/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 24 |
#import "GeneratedPluginRegistrant.h"
| codelabs/dart-patterns-and-records/step_05/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_05/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 25 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/dart-patterns-and-records/step_06_a/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_06_a/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 26 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/dart-patterns-and-records/step_07_b/android/gradle.properties/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_07_b/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 27 |
#include "Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_10/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_10/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 28 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_10/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_10/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 29 |
#import "GeneratedPluginRegistrant.h"
| codelabs/dart-patterns-and-records/step_11_a/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_11_a/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 30 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/dart-patterns-and-records/step_11_b/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_11_b/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 31 |
// The Android Gradle Plugin builds the native code with the Android NDK.
group 'com.example.ffigen_app'
version '1.0'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
// The Android Gradle Plugin knows how to build native code with the NDK.
classpath 'com.android.tools.build:gradle:7.3.0'
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}
apply plugin: 'com.android.library'
android {
if (project.android.hasProperty("namespace")) {
namespace 'com.example.ffigen_app'
}
// Bumping the plugin compileSdk version requires all clients of this plugin
// to bump the version in their app.
compileSdk 34
// Use the NDK version
// declared in /android/app/build.gradle file of the Flutter project.
// Replace it with a version number if this plugin requires a specfic NDK version.
// (e.g. ndkVersion "23.1.7779620")
ndkVersion android.ndkVersion
// Invoke the shared CMake build with the Android Gradle Plugin.
externalNativeBuild {
cmake {
path "../src/CMakeLists.txt"
// The default CMake version for the Android Gradle Plugin is 3.10.2.
// https://developer.android.com/studio/projects/install-ndk#vanilla_cmake
//
// The Flutter tooling requires that developers have CMake 3.10 or later
// installed. You should not increase this version, as doing so will cause
// the plugin to fail to compile for some customers of the plugin.
// version "3.10.2"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion 19
}
}
| codelabs/ffigen_codelab/step_05/android/build.gradle/0 | {
"file_path": "codelabs/ffigen_codelab/step_05/android/build.gradle",
"repo_id": "codelabs",
"token_count": 708
} | 32 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/ffigen_codelab/step_05/example/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/ffigen_codelab/step_05/example/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 33 |
// ignore_for_file: always_specify_types
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.
// ignore_for_file: type=lint
import 'dart:ffi' as ffi;
/// Bindings for `src/ffigen_app.h`.
///
/// Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
///
class FfigenAppBindings {
/// Holds the symbol lookup function.
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
_lookup;
/// The symbols are looked up in [dynamicLibrary].
FfigenAppBindings(ffi.DynamicLibrary dynamicLibrary)
: _lookup = dynamicLibrary.lookup;
/// The symbols are looked up with [lookup].
FfigenAppBindings.fromLookup(
ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
lookup)
: _lookup = lookup;
/// A very short-lived native function.
///
/// For very short-lived functions, it is fine to call them on the main isolate.
/// They will block the Dart execution while running the native function, so
/// only do this for native functions which are guaranteed to be short-lived.
int sum(
int a,
int b,
) {
return _sum(
a,
b,
);
}
late final _sumPtr =
_lookup<ffi.NativeFunction<ffi.IntPtr Function(ffi.IntPtr, ffi.IntPtr)>>(
'sum');
late final _sum = _sumPtr.asFunction<int Function(int, int)>();
/// A longer lived native function, which occupies the thread calling it.
///
/// Do not call these kind of native functions in the main isolate. They will
/// block Dart execution. This will cause dropped frames in Flutter applications.
/// Instead, call these native functions on a separate isolate.
int sum_long_running(
int a,
int b,
) {
return _sum_long_running(
a,
b,
);
}
late final _sum_long_runningPtr =
_lookup<ffi.NativeFunction<ffi.IntPtr Function(ffi.IntPtr, ffi.IntPtr)>>(
'sum_long_running');
late final _sum_long_running =
_sum_long_runningPtr.asFunction<int Function(int, int)>();
}
| codelabs/ffigen_codelab/step_05/lib/ffigen_app_bindings_generated.dart/0 | {
"file_path": "codelabs/ffigen_codelab/step_05/lib/ffigen_app_bindings_generated.dart",
"repo_id": "codelabs",
"token_count": 761
} | 34 |
#import "GeneratedPluginRegistrant.h"
| codelabs/ffigen_codelab/step_06/example/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/ffigen_codelab/step_06/example/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 35 |
{
"projects": {
"default": "flutterfire-ui-codelab"
}
}
| codelabs/firebase-auth-flutterfire-ui/complete/.firebaserc/0 | {
"file_path": "codelabs/firebase-auth-flutterfire-ui/complete/.firebaserc",
"repo_id": "codelabs",
"token_count": 31
} | 36 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/firebase-emulator-suite/start/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/firebase-emulator-suite/start/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 37 |
include: ../../analysis_options.yaml
| codelabs/firebase-get-to-know-flutter/step_04/analysis_options.yaml/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_04/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 38 |
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'widgets.dart';
class AuthFunc extends StatelessWidget {
const AuthFunc({
super.key,
required this.loggedIn,
required this.signOut,
});
final bool loggedIn;
final void Function() signOut;
@override
Widget build(BuildContext context) {
return Row(
children: [
Padding(
padding: const EdgeInsets.only(left: 24, bottom: 8),
child: StyledButton(
onPressed: () {
!loggedIn ? context.push('/sign-in') : signOut();
},
child: !loggedIn ? const Text('RSVP') : const Text('Logout')),
),
Visibility(
visible: loggedIn,
child: Padding(
padding: const EdgeInsets.only(left: 24, bottom: 8),
child: StyledButton(
onPressed: () {
context.push('/profile');
},
child: const Text('Profile')),
),
)
],
);
}
}
| codelabs/firebase-get-to-know-flutter/step_04/lib/src/authentication.dart/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_04/lib/src/authentication.dart",
"repo_id": "codelabs",
"token_count": 561
} | 39 |
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:gtk_flutter/main.dart';
void main() {
testWidgets('Basic rendering', (tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const App());
// Verify that our counter starts at 0.
expect(find.text('Firebase Meetup'), findsOneWidget);
expect(find.text('January 1st'), findsNothing);
});
}
| codelabs/firebase-get-to-know-flutter/step_04/test/widget_test.dart/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_04/test/widget_test.dart",
"repo_id": "codelabs",
"token_count": 180
} | 40 |
#import "GeneratedPluginRegistrant.h"
| codelabs/firebase-get-to-know-flutter/step_06/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_06/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 41 |
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
import 'app_state.dart';
import 'home_page.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(ChangeNotifierProvider(
create: (context) => ApplicationState(),
builder: ((context, child) => const App()),
));
}
final _router = GoRouter(
routes: [
GoRoute(
path: '/',
builder: (context, state) => const HomePage(),
routes: [
GoRoute(
path: 'sign-in',
builder: (context, state) {
return SignInScreen(
actions: [
ForgotPasswordAction(((context, email) {
final uri = Uri(
path: '/sign-in/forgot-password',
queryParameters: <String, String?>{
'email': email,
},
);
context.push(uri.toString());
})),
AuthStateChangeAction(((context, state) {
final user = switch (state) {
SignedIn state => state.user,
UserCreated state => state.credential.user,
_ => null
};
if (user == null) {
return;
}
if (state is UserCreated) {
user.updateDisplayName(user.email!.split('@')[0]);
}
if (!user.emailVerified) {
user.sendEmailVerification();
const snackBar = SnackBar(
content: Text(
'Please check your email to verify your email address'));
ScaffoldMessenger.of(context).showSnackBar(snackBar);
}
context.pushReplacement('/');
})),
],
);
},
routes: [
GoRoute(
path: 'forgot-password',
builder: (context, state) {
final arguments = state.uri.queryParameters;
return ForgotPasswordScreen(
email: arguments['email'],
headerMaxExtent: 200,
);
},
),
],
),
GoRoute(
path: 'profile',
builder: (context, state) {
return Consumer<ApplicationState>(
builder: (context, appState, _) => ProfileScreen(
key: ValueKey(appState.emailVerified),
providers: const [],
actions: [
SignedOutAction(
((context) {
context.pushReplacement('/');
}),
),
],
children: [
Visibility(
visible: !appState.emailVerified,
child: OutlinedButton(
child: const Text('Recheck Verification State'),
onPressed: () {
appState.refreshLoggedInUser();
},
))
],
),
);
},
),
],
),
],
);
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp.router(
title: 'Firebase Meetup',
theme: ThemeData(
buttonTheme: Theme.of(context).buttonTheme.copyWith(
highlightColor: Colors.deepPurple,
),
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
textTheme: GoogleFonts.robotoTextTheme(
Theme.of(context).textTheme,
),
visualDensity: VisualDensity.adaptivePlatformDensity,
useMaterial3: true,
),
routerConfig: _router,
);
}
}
| codelabs/firebase-get-to-know-flutter/step_09/lib/main.dart/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_09/lib/main.dart",
"repo_id": "codelabs",
"token_count": 2301
} | 42 |
---
id: firebase-get-to-know-flutter
summary: Learn how to build a Flutter mobile app with Firebase.
status: [draft]
authors: brettmorgan
categories: Firebase,Flutter
tags: kiosk,tag-android,tag-firebase,tag-flutter,tag-ios,web
feedback link: https://github.com/flutter/flutter/issues/new
duration: 53
keywords: Flutter, firebasesolution, buildbackend, docType:Codelab, product:FirebaseAuth, product:Firestore
---
# Get to know Firebase for Flutter
[Codelab Feedback](https://github.com/flutter/flutter/issues/new)
## Before you begin
Duration: 01:00
In this codelab, you learn some of the basics of [Firebase](http://firebase.google.com) to create Flutter mobile apps for Android and iOS.
### Prerequisites
* Familiarity with Flutter
* [The Flutter SDK](https://flutter.dev/get-started/install/)
* [A text editor of your choice](https://flutter.dev/get-started/editor/)
### What you'll learn
* How to to build an event RSVP and guestbook chat app on Android, iOS, the Web, and macOS with Flutter.
* How to authenticate users with Firebase Authentication and sync data with Firestore.
| <p align=center><img style="width: 240.00px" src="img/c62416352b641c75.png" alt="The home screen of the app on Android"></p> | <img style="width: 313.73px" src="img/71935c62efd2aeb5.png" alt="The home screen of the app on iOS"> |
| --- | --- |
| <img style="width: 298.00px" src="img/73245a514a97e5a6.png"> | <img style="width: 298.00px" src="img/ace882b7591fe799.png"> |
### What you'll need
Any of the following devices:
* A physical Android or iOS device connected to your computer and set to developer mode.
* The iOS simulator (Requires [Xcode tools](https://apps.apple.com/us/app/xcode/id497799835)).
* The Android emulator (Requires setup in [Android Studio](https://developer.android.com/studio/install)).
You also need the following:
* A browser of your choice, such as Google Chrome.
* An IDE or text editor of your choice configured with the Dart and Flutter plugins, such as [Android Studio](https://developer.android.com/studio) or [Visual Studio Code](https://code.visualstudio.com/).
* The latest `stable` version of [Flutter](https://flutter.dev/docs/get-started/web#set-up) or `beta` if you enjoy living on the edge.
* A Google Account for the creation and management of your Firebase project.
* The [`Firebase` CLI](https://firebase.google.com/docs/cli) logged in to your Google Account.
## Get the sample code
Duration: 02:00
Download the initial version of your project from GitHub:
1. From the command line, clone the [GitHub repository](https://github.com/flutter/codelabs) in the `flutter-codelabs` directory:
```console
git clone https://github.com/flutter/codelabs.git flutter-codelabs
```
The `flutter-codelabs` directory contains the code for a collection of codelabs. The code for this codelab is in the `flutter-codelabs/firebase-get-to-know-flutter` directory. The directory contains a series of snapshots that show how your project should look at the end of each step. For example, you're on the second step.
2. Find the matching files for the second step:
```console
cd flutter-codelabs/firebase-get-to-know-flutter/step_02
```
If you want to skip forward or see how something should look after a step, look in the directory named after the step in which you're interested.
### Import the starter app
* Open or import the `flutter-codelabs/firebase-get-to-know-flutter/step_02` directory in your preferred IDE. This directory contains the starter code for the codelab, which consists of a not-yet-functional Flutter meetup app.
### Locate the files that need work
The code in this app is spread over multiple directories. This split of functionality makes the work easier because it groups the code by functionality.
* Locate the following files:
* `lib/main.dart`: This file contains the main entry point and the app widget.
* `lib/home_page.dart`: This file contains the home page widget.
* `lib/src/widgets.dart`: This file contains a handful of widgets to help standardize the style of the app. They compose the screen of the starter app.
* `lib/src/authentication.dart`: This file contains a partial implementation of [Authentication](https://firebase.google.com/docs/auth) with a set of widgets to create a login user experience for Firebase email-based authentication. These widgets for the auth flow aren't yet used in the starter app, but you add them soon.
You add additional files as required to build the rest of the app.
### Review the `lib/main.dart` file
This app takes advantage of the [`google_fonts`](https://pub.dev/packages/google_fonts) package to make Roboto the default font throughout the app. You can explore [fonts.google.com](https://fonts.google.com/) and use the fonts that you discover there in different parts of the app.
You use the helper widgets from the `lib/src/widgets.dart` file in the form of `Header`, `Paragraph` and `IconAndDetail`. These widgets eliminate duplicated code to reduce clutter in the page layout described in `HomePage`. This also enables a consistent look and feel.
Here's what your app looks like on Android, iOS, the Web, and macOS:
| <p align=center><img style="width: 240.00px" src="img/9fd9346e7c12430b.png" alt="The home screen of the app on Android"></p> | <img style="width: 313.19px" src="img/b3d8b115d6e299fa.png" alt="The home screen of the app on iOS"> |
| --- | --- |
| <img style="width: 298.00px" src="img/a954c360597eb22c.png" alt="The home screen of the app on web"> | <img style="width: 298.00px" src="img/29f9a966c92e63a0.png" alt="The home screen of the app on macOS"> |
## Create and configure a Firebase project
Duration: 07:00
The display of event information is great for your guests, but it isn't very useful for anybody on its own. You need to add some dynamic functionality to the app. To do so, you need to connect Firebase to your app. To get started with Firebase, you need to create and configure a Firebase project.
### Create a Firebase project
1. Sign in to [Firebase](https://console.firebase.google.com/).
2. In the console, click **Add Project** or **Create a project**.
3. In the **Project name** field, enter **Firebase-Flutter-Codelab** and then click **Continue**.
<img src="img/4395e4e67c08043a.png" alt="4395e4e67c08043a.png" width="624.00" />
4. Click through the project creation options. If prompted, accept the Firebase terms, but skip setup of Google Analytics because you won't be using it for this app.
<img src="img/b7138cde5f2c7b61.png" alt="b7138cde5f2c7b61.png" width="624.00" />
To learn more about Firebase projects, see [Understand Firebase projects](https://www.google.com/url?q=https://firebase.google.com/docs/projects/learn-more&sa=D&ust=1568059744191000&usg=AFQjCNEo043D9nD4a1aS2AjK8ReenvZ3Pg).
The app uses the following Firebase products, which are available for web apps:
* **Authentication:** Lets users sign in to your app.
* **Firestore:** Saves structured data on the cloud and gets instant notifications when data changes.
* **Firebase Security Rules:** Secures your database.
Some of these products need special configuration or you need to enable them in the Firebase console.
### Enable email sign-in authentication
1. In the Firebase console's **Project overview** pane, expand the **Build** menu.
2. Click **Authentication > Get Started > Sign-in method > Email/Password > Enable > Save**.
<img src="img/58e3e3e23c2f16a4.png" alt="58e3e3e23c2f16a4.png" width="624.00" />
### Enable Firestore
The web app uses [Firestore](https://firebase.google.com/docs/firestore/) to save chat messages and receive new chat messages.
Enable Firestore:
* In the **Build** menu, click **Firestore Database > Create database**.
<img src="img/99e8429832d23fa3.png" alt="99e8429832d23fa3.png" width="624.00" />
> aside negative
>
> **Caution:** Ensure that you enable Firestore and *not* the Firebase Realtime Database for this codelab. To learn the difference between the two, see [Choose a Database: Firestore or Realtime Database](https://firebase.google.com/docs/database/rtdb-vs-firestore).
3. Select **Start in test mode** and then read the disclaimer about the security rules. Test mode ensures that you can freely write to the database during development.
<img src="img/6be00e26c72ea032.png" alt="6be00e26c72ea032.png" width="624.00" />
> aside negative
>
> **Caution:** In the first stages of this codelab, you use test mode. Later in the codelab, you write Firebase Security Rules to secure your database.
>
> For your apps, especially production apps, it's important that you secure your database with security rules. To learn more about security rules, see [Firebase Security Rules](https://firebase.google.com/docs/rules).
4. Click **Next** and then select the location for your database. You can use the default. You can't change the location later.
<img src="img/278656eefcfb0216.png" alt="278656eefcfb0216.png" width="624.00" />
5. Click **Enable**.
## Configure Firebase
Duration: 08:00
> aside positive
>
> **Note:** If you only intend to use iOS or Android, you only need one of the following configurations. This step includes instructions for both for completeness sake.
To use Firebase with Flutter, you need to complete the following tasks to configure the Flutter project to use the `FlutterFire` libraries correctly:
1. Add the `FlutterFire` dependencies to your project.
2. Register the desired platform on the Firebase project.
3. Download the platform-specific configuration file and then add it to the code.
> aside negative
>
> **Caution**: You need to register all the platforms that you want to use in the same Firebase project.
In the top-level directory of your Flutter app, there are `android`, `ios`, `macos` and `web` subdirectories, which hold the platform-specific configuration files for iOS and Android, respectively.
### Configure dependencies
You need to add the `FlutterFire` libraries for the two Firebase products that you use in this app: Authentication and Firestore.
* From the command line, add the following depencies:
```console
$ flutter pub add firebase_core
```
The [`firebase_core` package](https://pub.dev/packages/firebase_core) is the common code required for all Firebase Flutter plugins.
```console
$ flutter pub add firebase_auth
```
The [`firebase_auth` package](https://pub.dev/packages/firebase_auth) enables integration with Authentication.
```console
$ flutter pub add cloud_firestore
```
The [`cloud_firestore` package](https://pub.dev/packages/cloud_firestore) enables access to Firestore data storage.
```console
$ flutter pub add provider
```
The [`firebase_ui_auth` package](https://pub.dev/packages/firebase_ui_auth) provides a set of widgets and utilities to increase developer velocity with authentication flows.
```console
$ flutter pub add firebase_ui_auth
```
You added the required packages, but you also need to configure the iOS, Android, macOS, and Web runner projects to appropriately use Firebase. You also use the [`provider` package](https://pub.dev/packages/provider) that enables separation of business logic from display logic.
### Install the FlutterFire CLI
The FlutterFire CLI depends on the underlying Firebase CLI.
1. If you haven't done so already, install the [Firebase CLI](https://firebase.google.com/docs/cli) on your machine.
2. Install the FlutterFire CLI:
```console
$ dart pub global activate flutterfire_cli
```
Once installed, the `flutterfire` command is globally available.
### Configure your apps
The CLI extracts information from your Firebase project and selected project apps to generate all the configuration for a specific platform.
In the root of your app, run the `configure` command:
```console
$ flutterfire configure
```
The configuration command guides you through the following processes:
1. Select a Firebase project based on the `.firebaserc` file or from the Firebase Console.
1. Determine platforms for configuration, such as Android, iOS, macOS, and web.
1. Identify the Firebase apps from which to extract configuration. By default, the CLI attempts to automatically match Firebase apps based on your current project configuration.
1. Generate a `firebase_options.dart` file in your project.
### Configure macOS
Flutter on macOS builds fully sandboxed apps. As this app integrates with the network to communicate with the Firebase servers, you need to configure your app with network client privileges.
#### [macos/Runner/DebugProfile.entitlements](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_04/macos/Runner/DebugProfile.entitlements)
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<!-- Add the following two lines -->
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
```
#### [macos/Runner/Release.entitlements](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_04/macos/Runner/Release.entitlements)
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<!-- Add the following two lines -->
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
```
For more information, see [Desktop support for Flutter](https://docs.flutter.dev/development/platform-integration/desktop).
## Add RSVP functionality
Duration: 10:00
Now that you added Firebase to the app, you can create an **RSVP** button that registers people with [Authentication](https://firebase.google.com/docs/auth). For Android native, iOS native, and Web, there are prebuilt `FirebaseUI Auth` packages, but you need to build this capability for Flutter.
The project that you retrieved earlier included a set of widgets that implements the user interface for most of the authentication flow. You implement the business logic to integrate Authentication with the app.
### Add business logic with the `Provider` package
Use the [`provider` package](https://pub.dev/packages/provider) to make a centralized app state object available throughout the app's tree of Flutter widgets:
1. Create a new file named `app_state.dart` with the following content:
#### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_05/lib/app_state.dart#L1)
```dart
import 'package:firebase_auth/firebase_auth.dart'
hide EmailAuthProvider, PhoneAuthProvider;
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
import 'package:flutter/material.dart';
import 'firebase_options.dart';
class ApplicationState extends ChangeNotifier {
ApplicationState() {
init();
}
bool _loggedIn = false;
bool get loggedIn => _loggedIn;
Future<void> init() async {
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform);
FirebaseUIAuth.configureProviders([
EmailAuthProvider(),
]);
FirebaseAuth.instance.userChanges().listen((user) {
if (user != null) {
_loggedIn = true;
} else {
_loggedIn = false;
}
notifyListeners();
});
}
}
```
The `import` statements introduce Firebase Core and Auth, pull in the `provider` package that makes app state object available throughout the widget tree, and include the authentication widgets from the `firebase_ui_auth` package.
This `ApplicationState` application state object has one main responsibility for this step, which is to alert the widget tree that there was an update to an authenticated state.
You only use a provider to communicate the state of a user's login status to the app. To let a user log in, you use the UIs provided by the `firebase_ui_auth` package, which is a great way to quickly bootstrap login screens in your apps.
### Integrate the authentication flow
1. Modify the imports at the top of the `lib/main.dart` file:
#### [lib/main.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_05/lib/main.dart#L1)
```dart
import 'package:firebase_ui_auth/firebase_ui_auth.dart'; // new
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart'; // new
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart'; // new
import 'app_state.dart'; // new
import 'home_page.dart';
```
2. Connect the app state with the app initialization and then add the authentication flow to `HomePage`:
#### [lib/main.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_05/lib/main.dart#L14)
```dart
void main() {
// Modify from here...
WidgetsFlutterBinding.ensureInitialized();
runApp(ChangeNotifierProvider(
create: (context) => ApplicationState(),
builder: ((context, child) => const App()),
));
// ...to here.
}
```
The modification to the `main()` function makes the provider package responsible for the instantiation of the app state object with the `ChangeNotifierProvider` widget. You use this specific `provider` class because the app state object extends the `ChangeNotifier` class, which lets the `provider` package know when to redisplay dependent widgets.
3. Update your app to handle navigation to different screens that FirebaseUI provides for you, by creating a `GoRouter` configuration:
#### [lib/main.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_05/lib/main.dart#L23)
```dart
// Add GoRouter configuration outside the App class
final _router = GoRouter(
routes: [
GoRoute(
path: '/',
builder: (context, state) => const HomePage(),
routes: [
GoRoute(
path: 'sign-in',
builder: (context, state) {
return SignInScreen(
actions: [
ForgotPasswordAction(((context, email) {
final uri = Uri(
path: '/sign-in/forgot-password',
queryParameters: <String, String?>{
'email': email,
},
);
context.push(uri.toString());
})),
AuthStateChangeAction(((context, state) {
final user = switch (state) {
SignedIn state => state.user,
UserCreated state => state.credential.user,
_ => null
};
if (user == null) {
return;
}
if (state is UserCreated) {
user.updateDisplayName(user.email!.split('@')[0]);
}
if (!user.emailVerified) {
user.sendEmailVerification();
const snackBar = SnackBar(
content: Text(
'Please check your email to verify your email address'));
ScaffoldMessenger.of(context).showSnackBar(snackBar);
}
context.pushReplacement('/');
})),
],
);
},
routes: [
GoRoute(
path: 'forgot-password',
builder: (context, state) {
final arguments = state.uri.queryParameters;
return ForgotPasswordScreen(
email: arguments['email'],
headerMaxExtent: 200,
);
},
),
],
),
GoRoute(
path: 'profile',
builder: (context, state) {
return ProfileScreen(
providers: const [],
actions: [
SignedOutAction((context) {
context.pushReplacement('/');
}),
],
);
},
),
],
),
],
);
// end of GoRouter configuration
// Change MaterialApp to MaterialApp.router and add the routerConfig
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp.router(
title: 'Firebase Meetup',
theme: ThemeData(
buttonTheme: Theme.of(context).buttonTheme.copyWith(
highlightColor: Colors.deepPurple,
),
primarySwatch: Colors.deepPurple,
textTheme: GoogleFonts.robotoTextTheme(
Theme.of(context).textTheme,
),
visualDensity: VisualDensity.adaptivePlatformDensity,
useMaterial3: true,
),
routerConfig: _router, // new
);
}
}
```
Each screen has a different type of action associated with it based on the new state of the authentication flow. After most state changes in authentication, you can reroute back to a preferred screen, whether it's the home screen or a different screen, such as profile.
4. In the `HomePage` class's build method, integrate the app state with the `AuthFunc` widget:
#### [lib/home_page.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_05/lib/home_page.dart#L14)
```dart
import 'package:firebase_auth/firebase_auth.dart' // new
hide EmailAuthProvider, PhoneAuthProvider; // new
import 'package:flutter/material.dart'; // new
import 'package:provider/provider.dart'; // new
import 'app_state.dart'; // new
import 'src/authentication.dart'; // new
import 'src/widgets.dart';
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Firebase Meetup'),
),
body: ListView(
children: <Widget>[
Image.asset('assets/codelab.png'),
const SizedBox(height: 8),
const IconAndDetail(Icons.calendar_today, 'October 30'),
const IconAndDetail(Icons.location_city, 'San Francisco'),
// Add from here
Consumer<ApplicationState>(
builder: (context, appState, _) => AuthFunc(
loggedIn: appState.loggedIn,
signOut: () {
FirebaseAuth.instance.signOut();
}),
),
// to here
const Divider(
height: 8,
thickness: 1,
indent: 8,
endIndent: 8,
color: Colors.grey,
),
const Header("What we'll be doing"),
const Paragraph(
'Join us for a day full of Firebase Workshops and Pizza!',
),
],
),
);
}
}
```
You instantiate the `AuthFunc` widget and wrap it in a `Consumer` widget. The Consumer widget is the usual way that the `provider` package can be used to rebuild part of the tree when the app state changes. The `AuthFunc` widget is the supplementary widgets that you test.
#### Test the authentication flow
<img src="img/cdf2d25e436bd48d.png" alt="cdf2d25e436bd48d.png" width="332.32" />
1. In the app, tap the **RSVP** button to initiate the `SignInScreen`.
<img src="img/2a2cd6d69d172369.png" alt="2a2cd6d69d172369.png" width="334.81" />
2. Enter an email address. If you're already registered, the system prompts you to enter a password. Otherwise, the system prompts you to complete the registration form.
<img src="img/e5e65065dba36b54.png" alt="e5e65065dba36b54.png" width="331.69" />
3. Enter a password that's less than six characters to check the error-handling flow. If you're registered, you see the password for instead.
4. Enter incorrect passwords to check the error-handling flow.
5. Enter the correct password. You see the logged-in experience, which offers the user the ability to log out.
<img src="img/4ed811a25b0cf816.png" alt="4ed811a25b0cf816.png" width="335.07" />
## Write messages to Firestore
Duration: 10:00
It's great to know that users are coming, but you need to give the guests something else to do in the app. What if they could leave messages in a guestbook? They can share why they're excited to come or who they hope to meet.
To store the chat messages that users write in the app, you use [Firestore](https://firebase.google.com/docs/firestore/).
### Data model
Firestore is a NoSQL database, and data stored in the database is split into collections, documents, fields, and subcollections. You store each message of the chat as a document in a `guestbook` collection, which is a top-level collection.
<img src="img/7c20dc8424bb1d84.png" alt="7c20dc8424bb1d84.png" width="249.32" />
> aside positive
>
> **Note**: To learn more about the Firestore data model, see [Firestore Data model](https://firebase.google.com/docs/firestore/data-model)and [this great series of videos](https://www.youtube.com/playlist?list=PLl-K7zZEsYLluG5MCVEzXAQ7ACZBCuZgZ).
### Add messages to Firestore
In this section, you add the functionality for users to write messages to the database. First, you add a form field and send button, and then you add the code that connects these elements with the database.
1. Create a new file named `guest_book.dart`, add a `GuestBook` stateful widget to construct the UI elements of a message field and a send button:
#### [lib/guest_book.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_06/lib/guest_book.dart)
```dart
import 'dart:async';
import 'package:flutter/material.dart';
import 'src/widgets.dart';
class GuestBook extends StatefulWidget {
const GuestBook({required this.addMessage, super.key});
final FutureOr<void> Function(String message) addMessage;
@override
State<GuestBook> createState() => _GuestBookState();
}
class _GuestBookState extends State<GuestBook> {
final _formKey = GlobalKey<FormState>(debugLabel: '_GuestBookState');
final _controller = TextEditingController();
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(8.0),
child: Form(
key: _formKey,
child: Row(
children: [
Expanded(
child: TextFormField(
controller: _controller,
decoration: const InputDecoration(
hintText: 'Leave a message',
),
validator: (value) {
if (value == null || value.isEmpty) {
return 'Enter your message to continue';
}
return null;
},
),
),
const SizedBox(width: 8),
StyledButton(
onPressed: () async {
if (_formKey.currentState!.validate()) {
await widget.addMessage(_controller.text);
_controller.clear();
}
},
child: Row(
children: const [
Icon(Icons.send),
SizedBox(width: 4),
Text('SEND'),
],
),
),
],
),
),
);
}
}
```
There are a couple of points of interest here. First, you instantiate a form so that you can validate that the message actually contains content and show the user an error message if there isn't any. To validate a form, you access the form state behind the form with a `GlobalKey`. For more information about Keys and how to use them, see [When to Use Keys](https://www.youtube.com/watch?v=kn0EOS-ZiIc).
Also note the way that the widgets are laid out, you have a `Row` with a `TextFormField` and a `StyledButton`, which contains a `Row`. Also note the `TextFormField` is wrapped in an `Expanded` widget, which forces the `TextFormField` to fill any extra space in the row. To better understand why this is required, see [Understanding constraints](https://flutter.dev/docs/development/ui/layout/constraints).
Now that you have a widget that enables the user to enter some text to add to the Guest Book, you need to get it on the screen.
2. Edit the body of `HomePage` to add the following two lines at the end of the `ListView`'s children:
```dart
const Header("What we'll be doing"),
const Paragraph(
'Join us for a day full of Firebase Workshops and Pizza!',
),
// Add the following two lines.
const Header('Discussion'),
GuestBook(addMessage: (message) => print(message)),
```
While this is enough to display the widget, it isn't sufficient to do anything useful. You update this code shortly to make it functional.
#### App preview
| <p align=center><img style="width: 240.00px" src="img/3454c60868571147.png" alt="The home screen of the app on Android with chat integration"></p> | <img style="width: 317.30px" src="img/393bf52a546e9567.png" alt="The home screen of the app on iOS with chat integration"> |
| --- | --- |
| <img style="width: 298.00px" src="img/c0f8f4de66dc0d04.png" alt="The home screen of the app on web with chat integration"> | <img style="width: 298.00px" src="img/9b5e06ea495ef00d.png" alt="The home screen of the app on macOS with chat integration"> |
When a user clicks **SEND**, it triggers the following code snippet. It adds the contents of the message input field to the `guestbook` collection of the database. Specifically, the `addMessageToGuestBook` method adds the message content to a new document with an automatically generated ID in the `guestbook` collection.
Note that `FirebaseAuth.instance.currentUser.uid` is a reference to the autogenerated unique ID that Authentication gives for all logged-in users.
* In the `lib/app_state.dart` file, add the `addMessageToGuestBook` method. You connect this capability with the user interface in the next step.
#### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_06/lib/app_state.dart#L41)
```dart
import 'package:cloud_firestore/cloud_firestore.dart'; // new
import 'package:firebase_auth/firebase_auth.dart'
hide EmailAuthProvider, PhoneAuthProvider;
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
import 'package:flutter/material.dart';
import 'firebase_options.dart';
class ApplicationState extends ChangeNotifier {
// Current content of ApplicationState elided ...
// Add from here...
Future<DocumentReference> addMessageToGuestBook(String message) {
if (!_loggedIn) {
throw Exception('Must be logged in');
}
return FirebaseFirestore.instance
.collection('guestbook')
.add(<String, dynamic>{
'text': message,
'timestamp': DateTime.now().millisecondsSinceEpoch,
'name': FirebaseAuth.instance.currentUser!.displayName,
'userId': FirebaseAuth.instance.currentUser!.uid,
});
}
// ...to here.
}
```
### Connect UI and database
You have a UI where the user can enter the text they want to add to the Guest Book and you have the code to add the entry to Firestore. Now all you need to do is connect the two.
* In the `lib/home_page.dart` file, make the following change to the `HomePage` widget:
#### [lib/home_page.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_06/lib/home_page.dart#L15)
```dart
import 'package:firebase_auth/firebase_auth.dart'
hide EmailAuthProvider, PhoneAuthProvider;
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'app_state.dart';
import 'guest_book.dart'; // new
import 'src/authentication.dart';
import 'src/widgets.dart';
class HomePage extends StatelessWidget {
const HomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Firebase Meetup'),
),
body: ListView(
children: <Widget>[
Image.asset('assets/codelab.png'),
const SizedBox(height: 8),
const IconAndDetail(Icons.calendar_today, 'October 30'),
const IconAndDetail(Icons.location_city, 'San Francisco'),
Consumer<ApplicationState>(
builder: (context, appState, _) => AuthFunc(
loggedIn: appState.loggedIn,
signOut: () {
FirebaseAuth.instance.signOut();
}),
),
const Divider(
height: 8,
thickness: 1,
indent: 8,
endIndent: 8,
color: Colors.grey,
),
const Header("What we'll be doing"),
const Paragraph(
'Join us for a day full of Firebase Workshops and Pizza!',
),
// Modify from here...
Consumer<ApplicationState>(
builder: (context, appState, _) => Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (appState.loggedIn) ...[
const Header('Discussion'),
GuestBook(
addMessage: (message) =>
appState.addMessageToGuestBook(message),
),
],
],
),
),
// ...to here.
],
),
);
}
}
```
You replaced the two lines that you added at the start of this step with the full implementation. You again use `Consumer<ApplicationState>` to make the app state available to the part of the tree that you render. This lets you react to someone who enters a message in the UI and publish it in the database. In the next section, you test whether the added messages are published in the database.
### Test sending messages
1. If necessary, sign in to the app.
2. Enter a message, such as `Hey there!`, and then click **SEND**.
This action writes the message to your Firestore database. However, you don't see the message in your actual Flutter app because you still need to implement retrieval of the data, which you do in the next step. However, in the Firebase console's [**Database** dashboard](https://console.firebase.google.com/project/_/database), you can see your added message in the `guestbook` collection. If you send more messages, you add more documents to your `guestbook` collection. For example, see the following code snippet:
<img src="img/713870af0b3b63c.png" alt="713870af0b3b63c.png" width="624.00" />
## Read messages
Duration: 10:00
It's lovely that guests can write messages to the database, but they can't see them in the app yet. Time to fix that!
### Synchronize messages
To display messages, you need to add listeners that trigger when data changes and then create a UI element that shows new messages. You add code to the app state that listens for newly added messages from the app.
1. Create a new file `guest_book_message.dart`, add the following class to expose a structured view of the data that you store in Firestore.
#### [lib/guest_book_message.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_07/lib/guest_book_message.dart)
```dart
class GuestBookMessage {
GuestBookMessage({required this.name, required this.message});
final String name;
final String message;
}
```
2. In the `lib/app_state.dart` file, add the following imports:
#### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_07/lib/app_state.dart#L1)
```dart
import 'dart:async'; // new
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart'
hide EmailAuthProvider, PhoneAuthProvider;
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
import 'package:flutter/material.dart';
import 'firebase_options.dart';
import 'guest_book_message.dart'; // new
```
3. In section of `ApplicationState` where you define state and getters, add the following lines:
#### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_07/lib/app_state.dart#L22)
```dart
bool _loggedIn = false;
bool get loggedIn => _loggedIn;
// Add from here...
StreamSubscription<QuerySnapshot>? _guestBookSubscription;
List<GuestBookMessage> _guestBookMessages = [];
List<GuestBookMessage> get guestBookMessages => _guestBookMessages;
// ...to here.
```
4. In the initialization section of `ApplicationState`, add the following lines to subscribe to a query over the document collection when a user logs in and unsubscribe when they log out:
#### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_07/lib/app_state.dart#L29)
```dart
Future<void> init() async {
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform);
FirebaseUIAuth.configureProviders([
EmailAuthProvider(),
]);
FirebaseAuth.instance.userChanges().listen((user) {
if (user != null) {
_loggedIn = true;
_guestBookSubscription = FirebaseFirestore.instance
.collection('guestbook')
.orderBy('timestamp', descending: true)
.snapshots()
.listen((snapshot) {
_guestBookMessages = [];
for (final document in snapshot.docs) {
_guestBookMessages.add(
GuestBookMessage(
name: document.data()['name'] as String,
message: document.data()['text'] as String,
),
);
}
notifyListeners();
});
} else {
_loggedIn = false;
_guestBookMessages = [];
_guestBookSubscription?.cancel();
}
notifyListeners();
});
}
```
This section is important because it's where you construct a query over the `guestbook` collection, and handle subscribing and unsubscribing to this collection. You listen to the stream, where you reconstruct a local cache of the messages in the `guestbook` collection and also store a reference to this subscription so that you can unsubscribe from it later. There's a lot going on here, so you should explore it in a debugger to inspect what happens to get a clearer mental model. For more information, see [Get realtime updates with Firestore](https://firebase.google.com/docs/firestore/query-data/listen).
> aside positive
>
> **Note**: For a faster refresh, you can update only the changed documents instead of the whole list. To learn more, see [View changes between snapshots](https://firebase.google.com/docs/firestore/query-data/listen#view_changes_between_snapshots).
5. In the `lib/guest_book.dart` file, add the following import:
```dart
import 'guest_book_message.dart';
```
6. In the `GuestBook` widget, add a list of messages as part of the configuration to connect this changing state to the user interface:
#### [lib/guest_book.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_07/lib/guest_book.dart#L12)
```dart
class GuestBook extends StatefulWidget {
// Modify the following line:
const GuestBook({
super.key,
required this.addMessage,
required this.messages,
});
final FutureOr<void> Function(String message) addMessage;
final List<GuestBookMessage> messages; // new
@override
_GuestBookState createState() => _GuestBookState();
}
```
7. In `_GuestBookState`, modify the `build` method as follows to expose this configuration:
#### [lib/guest_book.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_07/lib/guest_book.dart#L26)
```dart
class _GuestBookState extends State<GuestBook> {
final _formKey = GlobalKey<FormState>(debugLabel: '_GuestBookState');
final _controller = TextEditingController();
@override
// Modify from here...
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// ...to here.
Padding(
padding: const EdgeInsets.all(8.0),
child: Form(
key: _formKey,
child: Row(
children: [
Expanded(
child: TextFormField(
controller: _controller,
decoration: const InputDecoration(
hintText: 'Leave a message',
),
validator: (value) {
if (value == null || value.isEmpty) {
return 'Enter your message to continue';
}
return null;
},
),
),
const SizedBox(width: 8),
StyledButton(
onPressed: () async {
if (_formKey.currentState!.validate()) {
await widget.addMessage(_controller.text);
_controller.clear();
}
},
child: Row(
children: const [
Icon(Icons.send),
SizedBox(width: 4),
Text('SEND'),
],
),
),
],
),
),
),
// Modify from here...
const SizedBox(height: 8),
for (var message in widget.messages)
Paragraph('${message.name}: ${message.message}'),
const SizedBox(height: 8),
],
// ...to here.
);
}
}
```
You wrap the previous content of the `build()` method with a `Column` widget and then you add a [collection for](https://dart.dev/guides/language/language-tour#collection-operators) at the tail of the `Column`'s children to generate a new `Paragraph` for each message in the list of messages.
8. Update the body of `HomePage` to correctly construct `GuestBook` with the new `messages` parameter:
#### [lib/home_page.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_07/lib/home_page.dart#L48)
```dart
Consumer<ApplicationState>(
builder: (context, appState, _) => Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (appState.loggedIn) ...[
const Header('Discussion'),
GuestBook(
addMessage: (message) =>
appState.addMessageToGuestBook(message),
messages: appState.guestBookMessages, // new
),
],
],
),
),
```
### Test message synchronization
Firestore automatically and instantly synchronizes data with clients subscribed to the database.
Test message synchronization:
1. In the app, find the messages that you created earlier in the database.
2. Write new messages. They appear instantly.
3. Open your workspace in multiple windows or tabs. The messages sync in real time across the windows and tabs.
4. Optional: In the Firebase console's **Database** menu, manually delete, modify, or add new messages. All changes appear in the UI.
Congratulations! You read Firestore documents in your app!
#### App preview
| <p align=center><img style="width: 240.00px" src="img/a26378d2c9ce8904.png" alt="The home screen of the app on Android with chat integration"></p> | <img style="width: 310.88px" src="img/8bf20f6736281f25.png" alt="The home screen of the app on iOS with chat integration"> |
| --- | --- |
| <img style="width: 298.00px" src="img/ea8c4d640fbeefe.png" alt="The home screen of the app on web with chat integration"> | <img style="width: 298.00px" src="img/681f61235f4a73eb.png" alt="The home screen of the app on macOS with chat integration"> |
## Set up basic security rules
Duration: 05:00
You initially set up Firestore to use test mode, which means that your database is open for reads and writes. However, you should only use test mode during early stages of development. As a best practice, you should set up security rules for your database as you develop your app. Security is integral to your app's structure and behavior.
Firebase Security Rules let you control access to documents and collections in your database. The flexible rules syntax lets you create rules that match anything from all writes to the entire database to operations on a specific document.
Set up basic security rules:
1. In the Firebase console's **Develop** menu, click **Database > Rules**. You should see the following default security rules and a warning about the rules being public:
<img src="img/7767a2d2e64e7275.png" alt="7767a2d2e64e7275.png" width="624.00" />
> aside positive
>
> To learn more about security rules, see [Firebase Security Rules](https://firebase.google.com/docs/rules) and [the Understanding Firebase Security Rules playlist on YouTube](https://www.youtube.com/watch?v=QEuu9X9L-MU&list=PLl-K7zZEsYLn8h1NyU_OV6dX8mBhH2s_L).
2. Identify the collections to which the app writes data:
In `match /databases/{database}/documents`, identify the collection that you want to secure:
```javascript
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /guestbook/{entry} {
// You'll add rules here in the next step.
}
}
```
Because you used the Authentication UID as a field in each guestbook document, you can get the Authentication UID and verify that anyone attempting to write to the document has a matching Authentication UID.
3. Add the read and write rules to your rule set:
```javascript
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /guestbook/{entry} {
allow read: if request.auth.uid != null;
allow write:
if request.auth.uid == request.resource.data.userId;
}
}
}
```
Now, only signed-in users can read messages in the guest book, but only a message's author can edit a message.
4. Add data validation to ensure that all the expected fields are present in the document:
```javascript
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /guestbook/{entry} {
allow read: if request.auth.uid != null;
allow write:
if request.auth.uid == request.resource.data.userId
&& "name" in request.resource.data
&& "text" in request.resource.data
&& "timestamp" in request.resource.data;
}
}
}
```
## Bonus step: Practice what you've learned
### Record an attendee's RSVP status
Right now, your app only allows people to chat when they're interested in the event. Also, the only way that you know whether someone's coming is when they say so in the chat.
In this step, you get organized and let people know how many people are coming. You add a couple of capabilities to the app state. The first is the ability for a logged-in user to nominate whether they're attending. The second is a counter of how many people are attending.
1. In the `lib/app_state.dart` file, add the following lines to the accessors section of the `ApplicationState` so that the UI code can interact with this state:
#### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_09/lib/app_state.dart#L37)
```dart
int _attendees = 0;
int get attendees => _attendees;
Attending _attending = Attending.unknown;
StreamSubscription<DocumentSnapshot>? _attendingSubscription;
Attending get attending => _attending;
set attending(Attending attending) {
final userDoc = FirebaseFirestore.instance
.collection('attendees')
.doc(FirebaseAuth.instance.currentUser!.uid);
if (attending == Attending.yes) {
userDoc.set(<String, dynamic>{'attending': true});
} else {
userDoc.set(<String, dynamic>{'attending': false});
}
}
```
2. Update the `ApplicationState`'s `init()` method as follows:
#### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_09/lib/app_state.dart#L80)
```dart
Future<void> init() async {
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform);
FirebaseUIAuth.configureProviders([
EmailAuthProvider(),
]);
// Add from here...
FirebaseFirestore.instance
.collection('attendees')
.where('attending', isEqualTo: true)
.snapshots()
.listen((snapshot) {
_attendees = snapshot.docs.length;
notifyListeners();
});
// ...to here.
FirebaseAuth.instance.userChanges().listen((user) {
if (user != null) {
_loginState = ApplicationLoginState.loggedIn;
_guestBookSubscription = FirebaseFirestore.instance
.collection('guestbook')
.orderBy('timestamp', descending: true)
.snapshots()
.listen((snapshot) {
_guestBookMessages = [];
for (final document in snapshot.docs) {
_guestBookMessages.add(
GuestBookMessage(
name: document.data()['name'] as String,
message: document.data()['text'] as String,
),
);
}
notifyListeners();
});
// Add from here...
_attendingSubscription = FirebaseFirestore.instance
.collection('attendees')
.doc(user.uid)
.snapshots()
.listen((snapshot) {
if (snapshot.data() != null) {
if (snapshot.data()!['attending'] as bool) {
_attending = Attending.yes;
} else {
_attending = Attending.no;
}
} else {
_attending = Attending.unknown;
}
notifyListeners();
});
// ...to here.
} else {
_loginState = ApplicationLoginState.loggedOut;
_guestBookMessages = [];
_guestBookSubscription?.cancel();
_attendingSubscription?.cancel(); // new
}
notifyListeners();
});
}
```
This code adds an always-subscribed query to determine the number of attendees and a second query that's only active while a user is logged in to determine whether the user is attending.
3. Add the following enumeration at the top of the `lib/app_state.dart` file.
#### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_09/lib/app_state.dart#L5)
```dart
enum Attending { yes, no, unknown }
```
4. Create a new file `yes_no_selection.dart`, define a new widget that acts like radio buttons:
#### [lib/yes_no_selection.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_09/lib/yes_no_selection.dart)
```dart
import 'package:flutter/material.dart';
import 'app_state.dart';
import 'src/widgets.dart';
class YesNoSelection extends StatelessWidget {
const YesNoSelection(
{super.key, required this.state, required this.onSelection});
final Attending state;
final void Function(Attending selection) onSelection;
@override
Widget build(BuildContext context) {
switch (state) {
case Attending.yes:
return Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
FilledButton(
onPressed: () => onSelection(Attending.yes),
child: const Text('YES'),
),
const SizedBox(width: 8),
TextButton(
onPressed: () => onSelection(Attending.no),
child: const Text('NO'),
),
],
),
);
case Attending.no:
return Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
TextButton(
onPressed: () => onSelection(Attending.yes),
child: const Text('YES'),
),
const SizedBox(width: 8),
FilledButton(
onPressed: () => onSelection(Attending.no),
child: const Text('NO'),
),
],
),
);
default:
return Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
StyledButton(
onPressed: () => onSelection(Attending.yes),
child: const Text('YES'),
),
const SizedBox(width: 8),
StyledButton(
onPressed: () => onSelection(Attending.no),
child: const Text('NO'),
),
],
),
);
}
}
}
```
It starts in an indeterminate state with neither **Yes** nor **No** selected. Once the user selects whether they're attending, you show that option highlighted with a filled button and the other option recedes with a flat rendering.
5. Update `HomePage`'s `build()` method to take advantage of `YesNoSelection`, enable a logged-in user to nominate whether they're attending, and display the number of attendees for the event:
#### [lib/home_page.dart](https://github.com/flutter/codelabs/blob/main/firebase-get-to-know-flutter/step_09/lib/home_page.dart#L56)
```dart
Consumer<ApplicationState>(
builder: (context, appState, _) => Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// Add from here...
switch (appState.attendees) {
1 => const Paragraph('1 person going'),
>= 2 => Paragraph('${appState.attendees} people going'),
_ => const Paragraph('No one going'),
},
// ...to here.
if (appState.loggedIn) ...[
// Add from here...
YesNoSelection(
state: appState.attending,
onSelection: (attending) => appState.attending = attending,
),
// ...to here.
const Header('Discussion'),
GuestBook(
addMessage: (message) =>
appState.addMessageToGuestBook(message),
messages: appState.guestBookMessages,
),
],
],
),
),
```
### Add rules
You already set up some rules, so the data that you add with the buttons will be rejected. You need to update the rules to allow additions to the `attendees` collection.
1. In the `attendees` collection, grab the Authentication UID that you used as the document name and verify that the submitter's `uid` is the same as the document they're writing:
```javascript
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
// ... //
match /attendees/{userId} {
allow read: if true;
allow write: if request.auth.uid == userId;
}
}
}
```
This lets everyone read the attendees list because there's no private data there, but only the creator can update it.
2. Add data validation to ensure that all the expected fields are present in the document:
```javascript
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
// ... //
match /attendees/{userId} {
allow read: if true;
allow write: if request.auth.uid == userId
&& "attending" in request.resource.data;
}
}
}
```
3. Optional: In the app, click buttons to see the results in the Firestore dashboard in the Firebase console.
#### App preview
| <p align=center><img style="width: 240.00px" src="img/c62416352b641c75.png" alt="The home screen of the app on Android"></p> | <img style="width: 313.73px" src="img/71935c62efd2aeb5.png" alt="The home screen of the app on iOS"> |
| --- | --- |
| <img style="width: 298.00px" src="img/73245a514a97e5a6.png" alt="The home screen of the app on web"> | <img style="width: 298.00px" src="img/ace882b7591fe799.png" alt="The home screen of the app on macOS"> |
## Congratulations!
You used Firebase to build an interactive, real-time web app!
### Learn more
* [Firebase](https://firebase.google.com)
* [Flutter](https://flutter.dev/)
* [FlutterFire](https://firebase.flutter.dev/)
* [Firebase YouTube channel](https://www.youtube.com/user/Firebase/featured)
* [Flutter YouTube channel](https://www.youtube.com/FlutterDev)
* [Firestore web codelab](https://codelabs.developers.google.com/codelabs/firestore-web)
* [Get to know Firestore YouTube playlist](https://www.youtube.com/watch?v=v_hR4K4auoQ&list=PLl-K7zZEsYLluG5MCVEzXAQ7ACZBCuZgZ&index=2&t=0s)
| codelabs/firebase-get-to-know-flutter/steps/index.lab.md/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/steps/index.lab.md",
"repo_id": "codelabs",
"token_count": 20950
} | 43 |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "include/window_to_front/window_to_front_plugin.h"
#include <flutter_linux/flutter_linux.h>
#include <gtk/gtk.h>
#include <sys/utsname.h>
#define WINDOW_TO_FRONT_PLUGIN(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), window_to_front_plugin_get_type(), \
WindowToFrontPlugin))
struct _WindowToFrontPlugin {
GObject parent_instance;
FlPluginRegistrar* registrar;
};
G_DEFINE_TYPE(WindowToFrontPlugin, window_to_front_plugin, g_object_get_type())
// Called when a method call is received from Flutter.
static void window_to_front_plugin_handle_method_call(
WindowToFrontPlugin* self,
FlMethodCall* method_call) {
g_autoptr(FlMethodResponse) response = nullptr;
const gchar* method = fl_method_call_get_name(method_call);
if (strcmp(method, "activate") == 0) {
FlView* view = fl_plugin_registrar_get_view(self->registrar);
if (view != nullptr) {
GtkWindow* window = GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(view)));
gtk_window_present(window);
}
response = FL_METHOD_RESPONSE(fl_method_success_response_new(nullptr));
} else {
response = FL_METHOD_RESPONSE(fl_method_not_implemented_response_new());
}
fl_method_call_respond(method_call, response, nullptr);
}
static void window_to_front_plugin_dispose(GObject* object) {
G_OBJECT_CLASS(window_to_front_plugin_parent_class)->dispose(object);
}
static void window_to_front_plugin_class_init(WindowToFrontPluginClass* klass) {
G_OBJECT_CLASS(klass)->dispose = window_to_front_plugin_dispose;
}
static void window_to_front_plugin_init(WindowToFrontPlugin* self) {}
static void method_call_cb(FlMethodChannel* channel, FlMethodCall* method_call,
gpointer user_data) {
WindowToFrontPlugin* plugin = WINDOW_TO_FRONT_PLUGIN(user_data);
window_to_front_plugin_handle_method_call(plugin, method_call);
}
void window_to_front_plugin_register_with_registrar(FlPluginRegistrar* registrar) {
WindowToFrontPlugin* plugin = WINDOW_TO_FRONT_PLUGIN(
g_object_new(window_to_front_plugin_get_type(), nullptr));
plugin->registrar = FL_PLUGIN_REGISTRAR(g_object_ref(registrar));
g_autoptr(FlStandardMethodCodec) codec = fl_standard_method_codec_new();
g_autoptr(FlMethodChannel) channel =
fl_method_channel_new(fl_plugin_registrar_get_messenger(registrar),
"window_to_front",
FL_METHOD_CODEC(codec));
fl_method_channel_set_method_call_handler(channel, method_call_cb,
g_object_ref(plugin),
g_object_unref);
g_object_unref(plugin);
}
| codelabs/github-client/window_to_front/linux/window_to_front_plugin.cc/0 | {
"file_path": "codelabs/github-client/window_to_front/linux/window_to_front_plugin.cc",
"repo_id": "codelabs",
"token_count": 1282
} | 44 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/google-maps-in-flutter/step_3/android/gradle.properties/0 | {
"file_path": "codelabs/google-maps-in-flutter/step_3/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 45 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/google-maps-in-flutter/step_5/android/gradle.properties/0 | {
"file_path": "codelabs/google-maps-in-flutter/step_5/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 46 |
#include "Generated.xcconfig"
| codelabs/haiku_generator/finished/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/haiku_generator/finished/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 47 |
import '../../domain/models/product.dart';
import '../../domain/repositories/abstract/product_repository.dart';
class ProductRepositoryImpl implements ProductRepository {
ProductRepositoryImpl();
@override
Future<List<Product>> getAllProducts() async {
var dummyData = [
{'productName': 'Google Search'},
];
return dummyData.map((item) => Product.fromMap(item)).toList();
}
}
| codelabs/haiku_generator/step0/lib/data/repositories/product_repository_impl.dart/0 | {
"file_path": "codelabs/haiku_generator/step0/lib/data/repositories/product_repository_impl.dart",
"repo_id": "codelabs",
"token_count": 134
} | 48 |
#include "Generated.xcconfig"
| codelabs/haiku_generator/step1/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/haiku_generator/step1/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 49 |
import '../../domain/models/product.dart';
import '../../domain/repositories/abstract/product_repository.dart';
class ProductRepositoryImpl implements ProductRepository {
ProductRepositoryImpl();
@override
Future<List<Product>> getAllProducts() async {
var dummyData = [
{'productName': 'Google Search'},
{'productName': 'YouTube'},
{'productName': 'Android'},
{'productName': 'Google Maps'},
{'productName': 'GMail'}
];
return dummyData.map((item) => Product.fromMap(item)).toList();
}
}
| codelabs/haiku_generator/step2/lib/data/repositories/product_repository_impl.dart/0 | {
"file_path": "codelabs/haiku_generator/step2/lib/data/repositories/product_repository_impl.dart",
"repo_id": "codelabs",
"token_count": 196
} | 50 |
#include "Generated.xcconfig"
| codelabs/haiku_generator/step3/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/haiku_generator/step3/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 51 |
import 'package:flutter/material.dart';
import 'home_screen.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
useMaterial3: true,
appBarTheme: AppBarTheme(
backgroundColor: ColorScheme.fromSeed(seedColor: Colors.deepPurple)
.primaryContainer,
),
textTheme: const TextTheme(
titleMedium: TextStyle(
fontFamily: 'Chewy',
fontSize: 20,
),
),
),
home: const MyHomePage(),
);
}
}
| codelabs/homescreen_codelab/step_03/lib/main.dart/0 | {
"file_path": "codelabs/homescreen_codelab/step_03/lib/main.dart",
"repo_id": "codelabs",
"token_count": 314
} | 52 |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/widget_container"
style="@style/Widget.Android.AppWidget.Container"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@android:color/white"
android:theme="@style/Theme.Android.AppWidgetContainer">
<TextView
android:id="@+id/headline_title"
style="@style/Widget.Android.AppWidget.InnerView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:background="@android:color/white"
android:text="Title"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/headline_description"
style="@style/Widget.Android.AppWidget.InnerView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/headline_title"
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="4dp"
android:background="@android:color/white"
android:text="Title"
android:textSize="16sp" />
</RelativeLayout> | codelabs/homescreen_codelab/step_04/android/app/src/main/res/layout/news_widget.xml/0 | {
"file_path": "codelabs/homescreen_codelab/step_04/android/app/src/main/res/layout/news_widget.xml",
"repo_id": "codelabs",
"token_count": 652
} | 53 |
<resources>
<style name="Theme.Android.AppWidgetContainerParent" parent="@android:style/Theme.DeviceDefault">
<!-- Radius of the outer bound of widgets to make the rounded corners -->
<item name="appWidgetRadius">16dp</item>
<!--
Radius of the inner view's bound of widgets to make the rounded corners.
It needs to be 8dp or less than the value of appWidgetRadius
-->
<item name="appWidgetInnerRadius">8dp</item>
</style>
<style name="Theme.Android.AppWidgetContainer" parent="Theme.Android.AppWidgetContainerParent">
<!-- Apply padding to avoid the content of the widget colliding with the rounded corners -->
<item name="appWidgetPadding">16dp</item>
</style>
</resources> | codelabs/homescreen_codelab/step_04/android/app/src/main/res/values/themes.xml/0 | {
"file_path": "codelabs/homescreen_codelab/step_04/android/app/src/main/res/values/themes.xml",
"repo_id": "codelabs",
"token_count": 257
} | 54 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.application-groups</key>
<array>
<string>group.leighawidget</string>
</array>
</dict>
</plist>
| codelabs/homescreen_codelab/step_05/ios/NewsWidgetsExtension.entitlements/0 | {
"file_path": "codelabs/homescreen_codelab/step_05/ios/NewsWidgetsExtension.entitlements",
"repo_id": "codelabs",
"token_count": 127
} | 55 |
// Import will depend on App ID.
package com.mydomain.homescreen_widgets
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.widget.RemoteViews
import java.io.File
import es.antonborri.home_widget.HomeWidgetPlugin
/**
* Implementation of App Widget functionality.
*/
class NewsWidget : AppWidgetProvider() {
override fun onUpdate(
context: Context,
appWidgetManager: AppWidgetManager,
appWidgetIds: IntArray,
) {
for (appWidgetId in appWidgetIds) {
val widgetData = HomeWidgetPlugin.getData(context)
val views = RemoteViews(context.packageName, R.layout.news_widget).apply {
val title = widgetData.getString("headline_title", null)
setTextViewText(R.id.headline_title, title ?: "No title set")
val description = widgetData.getString("headline_description", null)
setTextViewText(R.id.headline_description, description ?: "No description set")
// // New: Add the section below
// // Get chart image and put it in the widget, if it exists
val imageName = widgetData.getString("filename", null)
val imageFile = File(imageName)
val imageExists = imageFile.exists()
if (imageExists) {
val myBitmap: Bitmap = BitmapFactory.decodeFile(imageFile.absolutePath)
setImageViewBitmap(R.id.widget_image, myBitmap)
} else {
println("image not found!, looked @: ${imageName}")
}
// End new code
}
appWidgetManager.updateAppWidget(appWidgetId, views)
}
}
}
| codelabs/homescreen_codelab/step_06/android/app/src/main/java/com/mydomain/homescreen_widgets/NewsWidget.kt/0 | {
"file_path": "codelabs/homescreen_codelab/step_06/android/app/src/main/java/com/mydomain/homescreen_widgets/NewsWidget.kt",
"repo_id": "codelabs",
"token_count": 801
} | 56 |
<resources>
<style name="Widget.Android.AppWidget.Container" parent="android:Widget">
<item name="android:id">@android:id/background</item>
<item name="android:padding">?attr/appWidgetPadding</item>
<item name="android:background">@drawable/app_widget_background</item>
<item name="android:clipToOutline">true</item>
</style>
<style name="Widget.Android.AppWidget.InnerView" parent="android:Widget">
<item name="android:padding">?attr/appWidgetPadding</item>
<item name="android:background">@drawable/app_widget_inner_view_background</item>
<item name="android:textColor">?android:attr/textColorPrimary</item>
<item name="android:clipToOutline">true</item>
</style>
</resources> | codelabs/homescreen_codelab/step_06/android/app/src/main/res/values-v31/styles.xml/0 | {
"file_path": "codelabs/homescreen_codelab/step_06/android/app/src/main/res/values-v31/styles.xml",
"repo_id": "codelabs",
"token_count": 280
} | 57 |
import 'package:flutter/material.dart';
import 'package:home_widget/home_widget.dart';
import 'article_screen.dart';
import 'news_data.dart';
// TO DO: Replace with your App Group ID
const String appGroupId = '<YOUR APP GROUP>';
const String iOSWidgetName = 'NewsWidgets';
const String androidWidgetName = 'NewsWidget';
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
void updateHeadline(NewsArticle newHeadline) {
HomeWidget.saveWidgetData<String>('headline_title', newHeadline.title);
HomeWidget.saveWidgetData<String>(
'headline_description', newHeadline.description);
HomeWidget.updateWidget(
iOSName: iOSWidgetName,
androidName: androidWidgetName,
);
}
class _MyHomePageState extends State<MyHomePage> {
@override
void initState() {
super.initState();
HomeWidget.setAppGroupId(appGroupId);
final newHeadline = getNewsStories()[0];
updateHeadline(newHeadline);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Top Stories'),
centerTitle: false,
titleTextStyle: const TextStyle(
fontSize: 30,
fontWeight: FontWeight.bold,
color: Colors.black)),
body: ListView.separated(
separatorBuilder: (context, idx) {
return const Divider();
},
itemCount: getNewsStories().length,
itemBuilder: (context, idx) {
final article = getNewsStories()[idx];
return ListTile(
key: Key('$idx ${article.hashCode}'),
title: Text(article.title),
subtitle: Text(article.description),
onTap: () {
Navigator.of(context).push(
MaterialPageRoute<ArticleScreen>(
builder: (context) {
return ArticleScreen(article: article);
},
),
);
},
);
},
));
}
}
| codelabs/homescreen_codelab/step_06/lib/home_screen.dart/0 | {
"file_path": "codelabs/homescreen_codelab/step_06/lib/home_screen.dart",
"repo_id": "codelabs",
"token_count": 949
} | 58 |
import 'package:flutter/widgets.dart';
import '../constants.dart';
enum PurchaseType {
subscriptionPurchase,
nonSubscriptionPurchase,
}
enum Store {
googlePlay,
appStore,
}
enum Status {
pending,
completed,
active,
expired,
}
@immutable
class PastPurchase {
final PurchaseType type;
final Store store;
final String orderId;
final String productId;
final DateTime purchaseDate;
final DateTime? expiryDate;
final Status status;
String get title {
return switch (productId) {
storeKeyConsumable => 'Consumable',
storeKeySubscription => 'Subscription',
_ => productId
};
}
PastPurchase.fromJson(Map<String, dynamic> json)
: type = _typeFromString(json['type'] as String),
store = _storeFromString(json['iapSource'] as String),
orderId = json['orderId'] as String,
productId = json['productId'] as String,
purchaseDate = DateTime.now(),
expiryDate = null,
status = _statusFromString(json['status'] as String);
}
PurchaseType _typeFromString(String type) {
return switch (type) {
'nonSubscription' => PurchaseType.subscriptionPurchase,
'subscription' => PurchaseType.nonSubscriptionPurchase,
_ => throw ArgumentError.value(type, '$type is not a supported type')
};
}
Store _storeFromString(String store) {
return switch (store) {
'googleplay' => Store.googlePlay,
'appstore' => Store.appStore,
_ => throw ArgumentError.value(store, '$store is not a supported store')
};
}
Status _statusFromString(String status) {
return switch (status) {
'pending' => Status.pending,
'completed' => Status.completed,
'active' => Status.active,
'expired' => Status.expired,
_ => throw ArgumentError.value(status, '$status is not a supported status')
};
}
| codelabs/in_app_purchases/complete/app/lib/model/past_purchase.dart/0 | {
"file_path": "codelabs/in_app_purchases/complete/app/lib/model/past_purchase.dart",
"repo_id": "codelabs",
"token_count": 628
} | 59 |
import 'dart:async';
import 'package:app_store_server_sdk/app_store_server_sdk.dart';
import 'constants.dart';
import 'iap_repository.dart';
import 'products.dart';
import 'purchase_handler.dart';
/// Handles App Store purchases.
/// Uses the ITunes API to validate purchases.
/// Uses the App Store Server SDK to obtain the latest subscription status.
class AppStorePurchaseHandler extends PurchaseHandler {
final IapRepository iapRepository;
final AppStoreServerAPI appStoreServerAPI;
AppStorePurchaseHandler(
this.iapRepository,
this.appStoreServerAPI,
) {
// Poll Subscription status every 10 seconds.
Timer.periodic(Duration(seconds: 10), (_) {
_pullStatus();
});
}
final _iTunesAPI = ITunesApi(
ITunesHttpClient(
ITunesEnvironment.sandbox(),
loggingEnabled: true,
),
);
@override
Future<bool> handleNonSubscription({
required String userId,
required ProductData productData,
required String token,
}) {
return handleValidation(userId: userId, token: token);
}
@override
Future<bool> handleSubscription({
required String userId,
required ProductData productData,
required String token,
}) {
return handleValidation(userId: userId, token: token);
}
/// Handle purchase validation.
Future<bool> handleValidation({
required String userId,
required String token,
}) async {
print('AppStorePurchaseHandler.handleValidation');
final response = await _iTunesAPI.verifyReceipt(
password: appStoreSharedSecret,
receiptData: token,
);
print('response: $response');
if (response.status == 0) {
print('Successfully verified purchase');
final receipts = response.latestReceiptInfo ?? [];
for (final receipt in receipts) {
final product = productDataMap[receipt.productId];
if (product == null) {
print('Error: Unknown product: ${receipt.productId}');
continue;
}
switch (product.type) {
case ProductType.nonSubscription:
await iapRepository.createOrUpdatePurchase(NonSubscriptionPurchase(
userId: userId,
productId: receipt.productId ?? '',
iapSource: IAPSource.appstore,
orderId: receipt.originalTransactionId ?? '',
purchaseDate: DateTime.fromMillisecondsSinceEpoch(
int.parse(receipt.originalPurchaseDateMs ?? '0')),
type: product.type,
status: NonSubscriptionStatus.completed,
));
break;
case ProductType.subscription:
await iapRepository.createOrUpdatePurchase(SubscriptionPurchase(
userId: userId,
productId: receipt.productId ?? '',
iapSource: IAPSource.appstore,
orderId: receipt.originalTransactionId ?? '',
purchaseDate: DateTime.fromMillisecondsSinceEpoch(
int.parse(receipt.originalPurchaseDateMs ?? '0')),
type: product.type,
expiryDate: DateTime.fromMillisecondsSinceEpoch(
int.parse(receipt.expiresDateMs ?? '0')),
status: SubscriptionStatus.active,
));
break;
}
}
return true;
} else {
print('Error: Status: ${response.status}');
return false;
}
}
/// Request the App Store for the latest subscription status.
/// Updates all App Store subscriptions in the database.
/// NOTE: This code only handles when a subscription expires as example.
Future<void> _pullStatus() async {
print('Polling App Store');
final purchases = await iapRepository.getPurchases();
// filter for App Store subscriptions
final appStoreSubscriptions = purchases.where((element) =>
element.type == ProductType.subscription &&
element.iapSource == IAPSource.appstore);
for (final purchase in appStoreSubscriptions) {
final status =
await appStoreServerAPI.getAllSubscriptionStatuses(purchase.orderId);
// Obtain all subscriptions for the order id.
for (final subscription in status.data) {
// Last transaction contains the subscription status.
for (final transaction in subscription.lastTransactions) {
final expirationDate = DateTime.fromMillisecondsSinceEpoch(
transaction.transactionInfo.expiresDate ?? 0);
// Check if subscription has expired.
final isExpired = expirationDate.isBefore(DateTime.now());
print('Expiration Date: $expirationDate - isExpired: $isExpired');
// Update the subscription status with the new expiration date and status.
await iapRepository.updatePurchase(SubscriptionPurchase(
userId: null,
productId: transaction.transactionInfo.productId,
iapSource: IAPSource.appstore,
orderId: transaction.originalTransactionId,
purchaseDate: DateTime.fromMillisecondsSinceEpoch(
transaction.transactionInfo.originalPurchaseDate),
type: ProductType.subscription,
expiryDate: expirationDate,
status: isExpired
? SubscriptionStatus.expired
: SubscriptionStatus.active,
));
}
}
}
}
}
| codelabs/in_app_purchases/complete/dart-backend/lib/app_store_purchase_handler.dart/0 | {
"file_path": "codelabs/in_app_purchases/complete/dart-backend/lib/app_store_purchase_handler.dart",
"repo_id": "codelabs",
"token_count": 2086
} | 60 |
import 'package:flutter_test/flutter_test.dart';
import 'package:namer_app/main.dart';
void main() {
testWidgets('App starts', (WidgetTester tester) async {
await tester.pumpWidget(const MyApp());
expect(find.text('A random AWESOME idea:'), findsOneWidget);
});
}
| codelabs/namer/step_04_a_widget/test/widget_test.dart/0 | {
"file_path": "codelabs/namer/step_04_a_widget/test/widget_test.dart",
"repo_id": "codelabs",
"token_count": 102
} | 61 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/namer/step_05_d_theme/android/gradle.properties/0 | {
"file_path": "codelabs/namer/step_05_d_theme/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 62 |
#include "Generated.xcconfig"
| codelabs/namer/step_05_f_accessibility/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_f_accessibility/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 63 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_05_f_accessibility/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_f_accessibility/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 64 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_05_g_center_vertical/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_g_center_vertical/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 65 |
#include "Generated.xcconfig"
| codelabs/namer/step_06_b_add_row/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_06_b_add_row/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 66 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_06_b_add_row/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_06_b_add_row/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 67 |
#import "GeneratedPluginRegistrant.h"
| codelabs/namer/step_06_c_add_like_button/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/namer/step_06_c_add_like_button/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 68 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_06_c_add_like_button/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_06_c_add_like_button/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 69 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/next-gen-ui/step_03_b/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/next-gen-ui/step_03_b/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 70 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/next-gen-ui/step_05_b/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/next-gen-ui/step_05_b/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 71 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/next-gen-ui/step_06/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/next-gen-ui/step_06/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 72 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/testing_codelab/step_03/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/testing_codelab/step_03/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 73 |
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "testing_app",
"request": "launch",
"type": "dart"
}
]
}
| codelabs/testing_codelab/step_07/.vscode/launch.json/0 | {
"file_path": "codelabs/testing_codelab/step_07/.vscode/launch.json",
"repo_id": "codelabs",
"token_count": 162
} | 74 |
// Copyright 2020 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../models/favorites.dart';
class FavoritesPage extends StatelessWidget {
const FavoritesPage({super.key});
static String routeName = 'favorites_page';
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Favorites'),
),
body: Consumer<Favorites>(
builder: (context, value, child) => ListView.builder(
itemCount: value.items.length,
padding: const EdgeInsets.symmetric(vertical: 16),
itemBuilder: (context, index) => FavoriteItemTile(value.items[index]),
),
),
);
}
}
class FavoriteItemTile extends StatelessWidget {
const FavoriteItemTile(this.itemNo, {super.key});
final int itemNo;
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(8.0),
child: ListTile(
leading: CircleAvatar(
backgroundColor: Colors.primaries[itemNo % Colors.primaries.length],
),
title: Text(
'Item $itemNo',
key: Key('favorites_text_$itemNo'),
),
trailing: IconButton(
key: Key('remove_icon_$itemNo'),
icon: const Icon(Icons.close),
onPressed: () {
Provider.of<Favorites>(context, listen: false).remove(itemNo);
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Removed from favorites.'),
duration: Duration(seconds: 1),
),
);
},
),
),
);
}
}
| codelabs/testing_codelab/step_07/lib/screens/favorites.dart/0 | {
"file_path": "codelabs/testing_codelab/step_07/lib/screens/favorites.dart",
"repo_id": "codelabs",
"token_count": 780
} | 75 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/testing_codelab/step_07/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/testing_codelab/step_07/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 76 |
# Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""TF Agents python environment for the PlaneStrike board game."""
import numpy as np
import random
from tf_agents.environments import py_environment
from tf_agents.specs import array_spec
from tf_agents.trajectories import time_step as ts
# We always use square board, so only one size is needed
BOARD_SIZE = 8
# Number of cells in each plane; fixed number
PLANE_SIZE = 8
MAX_STEPS_PER_EPISODE = BOARD_SIZE**2
# Plane direction
PLANE_HEADING_RIGHT = 0
PLANE_HEADING_UP = 1
PLANE_HEADING_LEFT = 2
PLANE_HEADING_DOWN = 3
# Rewards for each strike
HIT_REWARD = 1
MISS_REWARD = 0
REPEAT_STRIKE_REWARD = -1
# Reward for finishing the game within MAX_STEPS_PER_EPISODE
FINISHED_GAME_REWARD = 10
# Reward for not finishing the game within MAX_STEPS_PER_EPISODE
UNFINISHED_GAME_REWARD = -10
# Hidden board cell status; 'occupied' means it's part of the plane
HIDDEN_BOARD_CELL_OCCUPIED = 1
HIDDEN_BOARD_CELL_UNOCCUPIED = 0
# Visible board cell status
VISIBLE_BOARD_CELL_HIT = 1
VISIBLE_BOARD_CELL_MISS = -1
VISIBLE_BOARD_CELL_UNTRIED = 0
class PlaneStrikePyEnvironment(py_environment.PyEnvironment):
"""PlaneStrike environment for TF Agents."""
def __init__(
self, board_size=BOARD_SIZE, discount=0.9, max_steps=MAX_STEPS_PER_EPISODE
) -> None:
super(PlaneStrikePyEnvironment, self).__init__()
assert board_size >= 4
self._board_size = board_size
self._strike_count = 0
self._discount = discount
self._max_steps = max_steps
self._episode_ended = False
self._action_spec = array_spec.BoundedArraySpec(
(), np.int32, minimum=0, maximum=self._board_size**2 - 1
)
self._observation_spec = array_spec.BoundedArraySpec(
(self._board_size, self._board_size),
np.float32,
minimum=VISIBLE_BOARD_CELL_MISS,
maximum=VISIBLE_BOARD_CELL_HIT,
)
self._time_step_spec = ts.time_step_spec(self._observation_spec)
self.set_boards()
def initialize_random_hidden_board(self, board_size):
"""Initialize the hidden board."""
hidden_board = np.ones((board_size, board_size)) * HIDDEN_BOARD_CELL_UNOCCUPIED
# Populate the plane's position
# First figure out the plane's orientation
# 0: heading right
# 1: heading up
# 2: heading left
# 3: heading down
plane_orientation = random.randint(0, 3)
# Figrue out the location of plane core as the '*' below
# | | | | | ---
# |-*- -*- -*-| |
# | | | | | -*-
# --- |
if plane_orientation == PLANE_HEADING_RIGHT:
plane_core_row = random.randint(1, board_size - 2)
plane_core_column = random.randint(2, board_size - 2)
# Populate the tail
hidden_board[plane_core_row][
plane_core_column - 2
] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row - 1][
plane_core_column - 2
] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row + 1][
plane_core_column - 2
] = HIDDEN_BOARD_CELL_OCCUPIED
elif plane_orientation == PLANE_HEADING_UP:
plane_core_row = random.randint(1, board_size - 3)
plane_core_column = random.randint(1, board_size - 3)
# Populate the tail
hidden_board[plane_core_row + 2][
plane_core_column
] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row + 2][
plane_core_column + 1
] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row + 2][
plane_core_column - 1
] = HIDDEN_BOARD_CELL_OCCUPIED
elif plane_orientation == PLANE_HEADING_LEFT:
plane_core_row = random.randint(1, board_size - 2)
plane_core_column = random.randint(1, board_size - 3)
# Populate the tail
hidden_board[plane_core_row][
plane_core_column + 2
] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row - 1][
plane_core_column + 2
] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row + 1][
plane_core_column + 2
] = HIDDEN_BOARD_CELL_OCCUPIED
elif plane_orientation == PLANE_HEADING_DOWN:
plane_core_row = random.randint(2, board_size - 2)
plane_core_column = random.randint(1, board_size - 2)
# Populate the tail
hidden_board[plane_core_row - 2][
plane_core_column
] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row - 2][
plane_core_column + 1
] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row - 2][
plane_core_column - 1
] = HIDDEN_BOARD_CELL_OCCUPIED
# Populate the cross
hidden_board[plane_core_row][plane_core_column] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row + 1][plane_core_column] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row - 1][plane_core_column] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row][plane_core_column + 1] = HIDDEN_BOARD_CELL_OCCUPIED
hidden_board[plane_core_row][plane_core_column - 1] = HIDDEN_BOARD_CELL_OCCUPIED
return hidden_board
def set_boards(self):
self._plane_size = PLANE_SIZE
self._hit_count = 0
self._visible_board = np.zeros((self._board_size, self._board_size))
self._hidden_board = self.initialize_random_hidden_board(self._board_size)
def current_time_step(self):
return self._current_time_step
def observation_spec(self):
"""Return observation_spec."""
return self._observation_spec
def action_spec(self):
"""Return action_spec."""
return self._action_spec
def _reset(self):
"""Return initial_time_step."""
self._episode_ended = False
self._strike_count = 0
self._hit_count = 0
self.set_boards()
return ts.restart(np.array(self._visible_board, dtype=np.float32))
def _step(self, action):
"""Apply action and return new time_step."""
if self._hit_count == self._plane_size:
self._episode_ended = True
return self.reset()
if self._strike_count + 1 == self._max_steps:
self.reset()
return ts.termination(
np.array(self._visible_board, dtype=np.float32), UNFINISHED_GAME_REWARD
)
self._strike_count += 1
action_x = action // self._board_size
action_y = action % self._board_size
# Hit
if self._hidden_board[action_x][action_y] == HIDDEN_BOARD_CELL_OCCUPIED:
# Non-repeat move
if self._visible_board[action_x][action_y] == VISIBLE_BOARD_CELL_UNTRIED:
self._hit_count += 1
self._visible_board[action_x][action_y] = VISIBLE_BOARD_CELL_HIT
# Successful strike
if self._hit_count == self._plane_size:
# Game finished
self._episode_ended = True
return ts.termination(
np.array(self._visible_board, dtype=np.float32),
FINISHED_GAME_REWARD,
)
else:
self._episode_ended = False
return ts.transition(
np.array(self._visible_board, dtype=np.float32),
HIT_REWARD,
self._discount,
)
# Repeat strike
else:
self._episode_ended = False
return ts.transition(
np.array(self._visible_board, dtype=np.float32),
REPEAT_STRIKE_REWARD,
self._discount,
)
# Miss
else:
# Unsuccessful strike
self._episode_ended = False
self._visible_board[action_x][action_y] = VISIBLE_BOARD_CELL_MISS
return ts.transition(
np.array(self._visible_board, dtype=np.float32),
MISS_REWARD,
self._discount,
)
def render(self, mode: "human") -> np.ndarray:
if mode != "human":
raise ValueError(
"Only rendering mode supported is 'human', got {} instead.".format(mode)
)
return self._visible_board
| codelabs/tfagents-flutter/finished/backend/planestrike_py_environment.py/0 | {
"file_path": "codelabs/tfagents-flutter/finished/backend/planestrike_py_environment.py",
"repo_id": "codelabs",
"token_count": 4525
} | 77 |
#include "Generated.xcconfig"
| codelabs/tfagents-flutter/step0/frontend/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step0/frontend/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 78 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/tfagents-flutter/step0/frontend/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step0/frontend/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 79 |
#import "GeneratedPluginRegistrant.h"
| codelabs/tfagents-flutter/step2/frontend/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/tfagents-flutter/step2/frontend/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 80 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/tfagents-flutter/step2/frontend/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step2/frontend/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 81 |
#include "Generated.xcconfig"
| codelabs/tfagents-flutter/step3/frontend/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step3/frontend/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 82 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/tfagents-flutter/step3/frontend/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step3/frontend/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 83 |
#include "Generated.xcconfig"
| codelabs/tfrs-flutter/step1/frontend/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step1/frontend/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 84 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/tfrs-flutter/step1/frontend/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step1/frontend/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 85 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/tfrs-flutter/step3/frontend/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step3/frontend/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 86 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| codelabs/tfrs-flutter/step4/frontend/android/gradle.properties/0 | {
"file_path": "codelabs/tfrs-flutter/step4/frontend/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 31
} | 87 |
import 'dart:convert';
import 'dart:io' show Platform;
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
void main() => runApp(const RecommenderDemo());
class RecommenderDemo extends StatefulWidget {
const RecommenderDemo({super.key});
@override
State<RecommenderDemo> createState() => _RecommenderDemoState();
}
class _RecommenderDemoState extends State<RecommenderDemo> {
late List<String> _movieList;
final TextEditingController _userIDController = TextEditingController();
late String _server;
late Future<List<String>> _futureRecommendations;
@override
void initState() {
super.initState();
_futureRecommendations = Future<List<String>>.value([]);
}
Future<List<String>> recommend() async {
if (!kIsWeb && Platform.isAndroid) {
// For Android emulator
_server = '10.0.2.2';
} else {
// For iOS emulator, desktop and web platforms
_server = '127.0.0.1';
}
final response = await http.post(
Uri.parse('http://$_server:5000/recommend'),
headers: <String, String>{
'Content-Type': 'application/json',
},
body: jsonEncode(<String, String>{
'user_id': _userIDController.text,
}),
);
if (response.statusCode == 200) {
return List<String>.from(
jsonDecode(response.body)['movies'] as Iterable<dynamic>);
} else {
throw Exception('Error response');
}
}
@override
Widget build(BuildContext context) {
const title = 'Flutter Movie Recommendation Demo';
return MaterialApp(
title: title,
theme: ThemeData.light(useMaterial3: true),
home: Scaffold(
appBar: AppBar(
title: const Text(title),
),
body: Center(
child: Container(
padding: const EdgeInsets.fromLTRB(20, 0, 20, 0),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Expanded(
child: TextField(
controller: _userIDController,
decoration: const InputDecoration(
border: UnderlineInputBorder(),
hintText: 'Enter a user ID here'),
)),
Container(
margin: const EdgeInsets.only(left: 10.0),
child: FilledButton(
style: FilledButton.styleFrom(
textStyle: const TextStyle(fontSize: 15),
),
onPressed: () {
setState(() {
_futureRecommendations = recommend();
});
},
child: const Text('Recommend'))),
]),
FutureBuilder<List<String>>(
future: _futureRecommendations,
builder: (context, snapshot) {
if (snapshot.hasData) {
_movieList = snapshot.data!;
return ListView.builder(
scrollDirection: Axis.vertical,
shrinkWrap: true,
itemCount: _movieList.length,
itemBuilder: (context, index) {
return ListTile(
leading: _movieList.isEmpty
? null
: const FlutterLogo(),
title: Text(_movieList[index]),
);
},
);
} else if (snapshot.hasError) {
return Text('${snapshot.error}');
}
// By default, show a loading spinner.
return const CircularProgressIndicator();
},
),
]),
),
),
),
);
}
}
| codelabs/tfrs-flutter/step5/frontend/lib/main.dart/0 | {
"file_path": "codelabs/tfrs-flutter/step5/frontend/lib/main.dart",
"repo_id": "codelabs",
"token_count": 2411
} | 88 |
# TensorFlow Serving + Flutter
This folder contains the codelabs for the [Get started with text classification
in Flutter
apps](https://developers.google.com/learn/pathways/text-classification-flutter)
pathway.
The folder is organized as:
- `codelab1` contains the first codelab code to train a spam detection model
- `codelab2` contains the second codelab code to connect Flutter frontend to TensorFlow Serving backend
- `codelab3` contains the third codelab code to enhance the spam detection model to detect specific spam phrases
| codelabs/tfserving-flutter/README.md/0 | {
"file_path": "codelabs/tfserving-flutter/README.md",
"repo_id": "codelabs",
"token_count": 141
} | 89 |
///
// Generated code. Do not modify.
// source: tensorflow/core/example/example.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
| codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/example/example.pbenum.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/example/example.pbenum.dart",
"repo_id": "codelabs",
"token_count": 115
} | 90 |
///
// Generated code. Do not modify.
// source: tensorflow/core/framework/graph.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package
import 'dart:core' as $core;
import 'dart:convert' as $convert;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use graphDefDescriptor instead')
const GraphDef$json = const {
'1': 'GraphDef',
'2': const [
const {
'1': 'node',
'3': 1,
'4': 3,
'5': 11,
'6': '.tensorflow.NodeDef',
'10': 'node'
},
const {
'1': 'versions',
'3': 4,
'4': 1,
'5': 11,
'6': '.tensorflow.VersionDef',
'10': 'versions'
},
const {
'1': 'version',
'3': 3,
'4': 1,
'5': 5,
'8': const {'3': true},
'10': 'version',
},
const {
'1': 'library',
'3': 2,
'4': 1,
'5': 11,
'6': '.tensorflow.FunctionDefLibrary',
'10': 'library'
},
],
};
/// Descriptor for `GraphDef`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List graphDefDescriptor = $convert.base64Decode(
'CghHcmFwaERlZhInCgRub2RlGAEgAygLMhMudGVuc29yZmxvdy5Ob2RlRGVmUgRub2RlEjIKCHZlcnNpb25zGAQgASgLMhYudGVuc29yZmxvdy5WZXJzaW9uRGVmUgh2ZXJzaW9ucxIcCgd2ZXJzaW9uGAMgASgFQgIYAVIHdmVyc2lvbhI4CgdsaWJyYXJ5GAIgASgLMh4udGVuc29yZmxvdy5GdW5jdGlvbkRlZkxpYnJhcnlSB2xpYnJhcnk=');
| codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/graph.pbjson.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/graph.pbjson.dart",
"repo_id": "codelabs",
"token_count": 811
} | 91 |
///
// Generated code. Do not modify.
// source: tensorflow/core/framework/types.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
import 'dart:core' as $core;
export 'types.pbenum.dart';
| codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/types.pb.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/types.pb.dart",
"repo_id": "codelabs",
"token_count": 141
} | 92 |
///
// Generated code. Do not modify.
// source: tensorflow/core/protobuf/saver.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
// ignore_for_file: UNDEFINED_SHOWN_NAME
import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb;
class SaverDef_CheckpointFormatVersion extends $pb.ProtobufEnum {
static const SaverDef_CheckpointFormatVersion LEGACY =
SaverDef_CheckpointFormatVersion._(
0,
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
? ''
: 'LEGACY');
static const SaverDef_CheckpointFormatVersion V1 =
SaverDef_CheckpointFormatVersion._(
1,
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
? ''
: 'V1');
static const SaverDef_CheckpointFormatVersion V2 =
SaverDef_CheckpointFormatVersion._(
2,
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
? ''
: 'V2');
static const $core.List<SaverDef_CheckpointFormatVersion> values =
<SaverDef_CheckpointFormatVersion>[
LEGACY,
V1,
V2,
];
static final $core.Map<$core.int, SaverDef_CheckpointFormatVersion> _byValue =
$pb.ProtobufEnum.initByValue(values);
static SaverDef_CheckpointFormatVersion? valueOf($core.int value) =>
_byValue[value];
const SaverDef_CheckpointFormatVersion._($core.int v, $core.String n)
: super(v, n);
}
| codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/protobuf/saver.pbenum.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/protobuf/saver.pbenum.dart",
"repo_id": "codelabs",
"token_count": 694
} | 93 |
///
// Generated code. Do not modify.
// source: tensorflow_serving/apis/inference.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package
import 'dart:core' as $core;
import 'dart:convert' as $convert;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use inferenceTaskDescriptor instead')
const InferenceTask$json = const {
'1': 'InferenceTask',
'2': const [
const {
'1': 'model_spec',
'3': 1,
'4': 1,
'5': 11,
'6': '.tensorflow.serving.ModelSpec',
'10': 'modelSpec'
},
const {'1': 'method_name', '3': 2, '4': 1, '5': 9, '10': 'methodName'},
],
};
/// Descriptor for `InferenceTask`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List inferenceTaskDescriptor = $convert.base64Decode(
'Cg1JbmZlcmVuY2VUYXNrEjwKCm1vZGVsX3NwZWMYASABKAsyHS50ZW5zb3JmbG93LnNlcnZpbmcuTW9kZWxTcGVjUgltb2RlbFNwZWMSHwoLbWV0aG9kX25hbWUYAiABKAlSCm1ldGhvZE5hbWU=');
@$core.Deprecated('Use inferenceResultDescriptor instead')
const InferenceResult$json = const {
'1': 'InferenceResult',
'2': const [
const {
'1': 'model_spec',
'3': 1,
'4': 1,
'5': 11,
'6': '.tensorflow.serving.ModelSpec',
'10': 'modelSpec'
},
const {
'1': 'classification_result',
'3': 2,
'4': 1,
'5': 11,
'6': '.tensorflow.serving.ClassificationResult',
'9': 0,
'10': 'classificationResult'
},
const {
'1': 'regression_result',
'3': 3,
'4': 1,
'5': 11,
'6': '.tensorflow.serving.RegressionResult',
'9': 0,
'10': 'regressionResult'
},
],
'8': const [
const {'1': 'result'},
],
};
/// Descriptor for `InferenceResult`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List inferenceResultDescriptor = $convert.base64Decode(
'Cg9JbmZlcmVuY2VSZXN1bHQSPAoKbW9kZWxfc3BlYxgBIAEoCzIdLnRlbnNvcmZsb3cuc2VydmluZy5Nb2RlbFNwZWNSCW1vZGVsU3BlYxJfChVjbGFzc2lmaWNhdGlvbl9yZXN1bHQYAiABKAsyKC50ZW5zb3JmbG93LnNlcnZpbmcuQ2xhc3NpZmljYXRpb25SZXN1bHRIAFIUY2xhc3NpZmljYXRpb25SZXN1bHQSUwoRcmVncmVzc2lvbl9yZXN1bHQYAyABKAsyJC50ZW5zb3JmbG93LnNlcnZpbmcuUmVncmVzc2lvblJlc3VsdEgAUhByZWdyZXNzaW9uUmVzdWx0QggKBnJlc3VsdA==');
@$core.Deprecated('Use multiInferenceRequestDescriptor instead')
const MultiInferenceRequest$json = const {
'1': 'MultiInferenceRequest',
'2': const [
const {
'1': 'tasks',
'3': 1,
'4': 3,
'5': 11,
'6': '.tensorflow.serving.InferenceTask',
'10': 'tasks'
},
const {
'1': 'input',
'3': 2,
'4': 1,
'5': 11,
'6': '.tensorflow.serving.Input',
'10': 'input'
},
],
};
/// Descriptor for `MultiInferenceRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List multiInferenceRequestDescriptor = $convert.base64Decode(
'ChVNdWx0aUluZmVyZW5jZVJlcXVlc3QSNwoFdGFza3MYASADKAsyIS50ZW5zb3JmbG93LnNlcnZpbmcuSW5mZXJlbmNlVGFza1IFdGFza3MSLwoFaW5wdXQYAiABKAsyGS50ZW5zb3JmbG93LnNlcnZpbmcuSW5wdXRSBWlucHV0');
@$core.Deprecated('Use multiInferenceResponseDescriptor instead')
const MultiInferenceResponse$json = const {
'1': 'MultiInferenceResponse',
'2': const [
const {
'1': 'results',
'3': 1,
'4': 3,
'5': 11,
'6': '.tensorflow.serving.InferenceResult',
'10': 'results'
},
],
};
/// Descriptor for `MultiInferenceResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List multiInferenceResponseDescriptor =
$convert.base64Decode(
'ChZNdWx0aUluZmVyZW5jZVJlc3BvbnNlEj0KB3Jlc3VsdHMYASADKAsyIy50ZW5zb3JmbG93LnNlcnZpbmcuSW5mZXJlbmNlUmVzdWx0UgdyZXN1bHRz');
| codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/inference.pbjson.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/inference.pbjson.dart",
"repo_id": "codelabs",
"token_count": 1954
} | 94 |
///
// Generated code. Do not modify.
// source: tensorflow_serving/apis/regression.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package
import 'dart:core' as $core;
import 'dart:convert' as $convert;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use regressionDescriptor instead')
const Regression$json = const {
'1': 'Regression',
'2': const [
const {'1': 'value', '3': 1, '4': 1, '5': 2, '10': 'value'},
],
};
/// Descriptor for `Regression`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List regressionDescriptor =
$convert.base64Decode('CgpSZWdyZXNzaW9uEhQKBXZhbHVlGAEgASgCUgV2YWx1ZQ==');
@$core.Deprecated('Use regressionResultDescriptor instead')
const RegressionResult$json = const {
'1': 'RegressionResult',
'2': const [
const {
'1': 'regressions',
'3': 1,
'4': 3,
'5': 11,
'6': '.tensorflow.serving.Regression',
'10': 'regressions'
},
],
};
/// Descriptor for `RegressionResult`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List regressionResultDescriptor = $convert.base64Decode(
'ChBSZWdyZXNzaW9uUmVzdWx0EkAKC3JlZ3Jlc3Npb25zGAEgAygLMh4udGVuc29yZmxvdy5zZXJ2aW5nLlJlZ3Jlc3Npb25SC3JlZ3Jlc3Npb25z');
@$core.Deprecated('Use regressionRequestDescriptor instead')
const RegressionRequest$json = const {
'1': 'RegressionRequest',
'2': const [
const {
'1': 'model_spec',
'3': 1,
'4': 1,
'5': 11,
'6': '.tensorflow.serving.ModelSpec',
'10': 'modelSpec'
},
const {
'1': 'input',
'3': 2,
'4': 1,
'5': 11,
'6': '.tensorflow.serving.Input',
'10': 'input'
},
],
};
/// Descriptor for `RegressionRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List regressionRequestDescriptor = $convert.base64Decode(
'ChFSZWdyZXNzaW9uUmVxdWVzdBI8Cgptb2RlbF9zcGVjGAEgASgLMh0udGVuc29yZmxvdy5zZXJ2aW5nLk1vZGVsU3BlY1IJbW9kZWxTcGVjEi8KBWlucHV0GAIgASgLMhkudGVuc29yZmxvdy5zZXJ2aW5nLklucHV0UgVpbnB1dA==');
@$core.Deprecated('Use regressionResponseDescriptor instead')
const RegressionResponse$json = const {
'1': 'RegressionResponse',
'2': const [
const {
'1': 'model_spec',
'3': 2,
'4': 1,
'5': 11,
'6': '.tensorflow.serving.ModelSpec',
'10': 'modelSpec'
},
const {
'1': 'result',
'3': 1,
'4': 1,
'5': 11,
'6': '.tensorflow.serving.RegressionResult',
'10': 'result'
},
],
};
/// Descriptor for `RegressionResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List regressionResponseDescriptor = $convert.base64Decode(
'ChJSZWdyZXNzaW9uUmVzcG9uc2USPAoKbW9kZWxfc3BlYxgCIAEoCzIdLnRlbnNvcmZsb3cuc2VydmluZy5Nb2RlbFNwZWNSCW1vZGVsU3BlYxI8CgZyZXN1bHQYASABKAsyJC50ZW5zb3JmbG93LnNlcnZpbmcuUmVncmVzc2lvblJlc3VsdFIGcmVzdWx0');
| codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/regression.pbjson.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/regression.pbjson.dart",
"repo_id": "codelabs",
"token_count": 1491
} | 95 |
syntax = "proto3";
package tensorflow;
option cc_enable_arenas = true;
option java_outer_classname = "VersionsProtos";
option java_multiple_files = true;
option java_package = "org.tensorflow.framework";
option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/framework/versions_go_proto";
// Version information for a piece of serialized data
//
// There are different types of versions for each type of data
// (GraphDef, etc.), but they all have the same common shape
// described here.
//
// Each consumer has "consumer" and "min_producer" versions (specified
// elsewhere). A consumer is allowed to consume this data if
//
// producer >= min_producer
// consumer >= min_consumer
// consumer not in bad_consumers
//
message VersionDef {
// The version of the code that produced this data.
int32 producer = 1;
// Any consumer below this version is not allowed to consume this data.
int32 min_consumer = 2;
// Specific consumer versions which are disallowed (e.g. due to bugs).
repeated int32 bad_consumers = 3;
}
| codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/versions.proto/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/versions.proto",
"repo_id": "codelabs",
"token_count": 304
} | 96 |
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "claat_export",
"request": "launch",
"type": "dart",
"program": "bin/claat_export.dart"
},
{
"name": "render_codelab",
"request": "launch",
"type": "dart",
"program": "bin/render_codelab.dart",
"args": [
"test/data/exports/17L9jk2dhTFrdEqyLb6Wxhq0NeRrtzpQLLJv09qROsA8.json"
]
}
]
} | codelabs/tooling/claat_export_images/.vscode/launch.json/0 | {
"file_path": "codelabs/tooling/claat_export_images/.vscode/launch.json",
"repo_id": "codelabs",
"token_count": 385
} | 97 |
{
"body": {
"content": [
{
"endIndex": 1,
"sectionBreak": {
"sectionStyle": {
"columnSeparatorStyle": "NONE",
"contentDirection": "LEFT_TO_RIGHT",
"sectionType": "CONTINUOUS"
}
}
},
{
"endIndex": 2,
"paragraph": {
"elements": [
{
"endIndex": 2,
"startIndex": 1,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "END",
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 1
},
{
"endIndex": 3,
"paragraph": {
"elements": [
{
"endIndex": 3,
"startIndex": 2,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.hha40vfkrqx",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 2
},
{
"endIndex": 47,
"paragraph": {
"elements": [
{
"endIndex": 46,
"startIndex": 3,
"textRun": {
"content": "Adding in-app purchases to your Flutter app",
"textStyle": {}
}
},
{
"endIndex": 47,
"startIndex": 46,
"textRun": {
"content": "\n",
"textStyle": {
"fontSize": {
"magnitude": 14.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.7sa4zxkhmsum",
"namedStyleType": "TITLE",
"pageBreakBefore": false,
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 3
},
{
"endIndex": 48,
"paragraph": {
"elements": [
{
"endIndex": 48,
"startIndex": 47,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 47
},
{
"endIndex": 406,
"startIndex": 48,
"table": {
"columns": 2,
"rows": 7,
"tableRows": [
{
"endIndex": 182,
"startIndex": 49,
"tableCells": [
{
"content": [
{
"endIndex": 59,
"paragraph": {
"elements": [
{
"endIndex": 59,
"startIndex": 51,
"textRun": {
"content": "Summary\n",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 51
}
],
"endIndex": 59,
"startIndex": 50,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.9529412,
"green": 0.9529412,
"red": 0.9529412
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
},
{
"content": [
{
"endIndex": 182,
"paragraph": {
"elements": [
{
"endIndex": 84,
"startIndex": 60,
"textRun": {
"content": "In this codelab, youβll ",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 87,
"startIndex": 84,
"textRun": {
"content": "add",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
},
{
"endIndex": 88,
"startIndex": 87,
"textRun": {
"content": " ",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 181,
"startIndex": 88,
"textRun": {
"content": "in-app purchases to a Flutter app that are verified and managed using a Dart backend service.",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
},
{
"endIndex": 182,
"startIndex": 181,
"textRun": {
"content": "\n",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 60
}
],
"endIndex": 182,
"startIndex": 59,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
},
{
"endIndex": 223,
"startIndex": 182,
"tableCells": [
{
"content": [
{
"endIndex": 188,
"paragraph": {
"elements": [
{
"endIndex": 188,
"startIndex": 184,
"textRun": {
"content": "URL\n",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 184
}
],
"endIndex": 188,
"startIndex": 183,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.9529412,
"green": 0.9529412,
"red": 0.9529412
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
},
{
"content": [
{
"endIndex": 223,
"paragraph": {
"elements": [
{
"endIndex": 223,
"startIndex": 189,
"textRun": {
"content": "codelabs/flutter-in-app-purchases\n",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 189
}
],
"endIndex": 223,
"startIndex": 188,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
},
{
"endIndex": 243,
"startIndex": 223,
"tableCells": [
{
"content": [
{
"endIndex": 234,
"paragraph": {
"elements": [
{
"endIndex": 234,
"startIndex": 225,
"textRun": {
"content": "Category\n",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 225
}
],
"endIndex": 234,
"startIndex": 224,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.9529412,
"green": 0.9529412,
"red": 0.9529412
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
},
{
"content": [
{
"endIndex": 243,
"paragraph": {
"elements": [
{
"endIndex": 243,
"startIndex": 235,
"textRun": {
"content": "Flutter\n",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 235
}
],
"endIndex": 243,
"startIndex": 234,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
},
{
"endIndex": 262,
"startIndex": 243,
"tableCells": [
{
"content": [
{
"endIndex": 257,
"paragraph": {
"elements": [
{
"endIndex": 257,
"startIndex": 245,
"textRun": {
"content": "Environment\n",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 245
}
],
"endIndex": 257,
"startIndex": 244,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.9529412,
"green": 0.9529412,
"red": 0.9529412
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
},
{
"content": [
{
"endIndex": 262,
"paragraph": {
"elements": [
{
"endIndex": 262,
"startIndex": 258,
"textRun": {
"content": "web\n",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 258
}
],
"endIndex": 262,
"startIndex": 257,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
},
{
"endIndex": 278,
"startIndex": 262,
"tableCells": [
{
"content": [
{
"endIndex": 271,
"paragraph": {
"elements": [
{
"endIndex": 271,
"startIndex": 264,
"textRun": {
"content": "Status\n",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 264
}
],
"endIndex": 271,
"startIndex": 263,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.9529412,
"green": 0.9529412,
"red": 0.9529412
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
},
{
"content": [
{
"endIndex": 278,
"paragraph": {
"elements": [
{
"endIndex": 278,
"startIndex": 272,
"textRun": {
"content": "Draft\n",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 272
}
],
"endIndex": 278,
"startIndex": 271,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
},
{
"endIndex": 337,
"startIndex": 278,
"tableCells": [
{
"content": [
{
"endIndex": 294,
"paragraph": {
"elements": [
{
"endIndex": 294,
"startIndex": 280,
"textRun": {
"content": "Feedback Link\n",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 280
}
],
"endIndex": 294,
"startIndex": 279,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.9529412,
"green": 0.9529412,
"red": 0.9529412
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
},
{
"content": [
{
"endIndex": 337,
"paragraph": {
"elements": [
{
"endIndex": 336,
"startIndex": 295,
"textRun": {
"content": "https://github.com/flutter/flutter/issues",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/flutter/issues"
},
"underline": true,
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
},
{
"endIndex": 337,
"startIndex": 336,
"textRun": {
"content": "\n",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 295
}
],
"endIndex": 337,
"startIndex": 294,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
},
{
"endIndex": 405,
"startIndex": 337,
"tableCells": [
{
"content": [
{
"endIndex": 346,
"paragraph": {
"elements": [
{
"endIndex": 346,
"startIndex": 339,
"textRun": {
"content": "Author\n",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 339
}
],
"endIndex": 346,
"startIndex": 338,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.9529412,
"green": 0.9529412,
"red": 0.9529412
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
},
{
"content": [
{
"endIndex": 405,
"paragraph": {
"elements": [
{
"endIndex": 405,
"startIndex": 347,
"textRun": {
"content": "Rene Floor, Bodhi Mulders, Jop Middelkamp, Miguel Beltran\n",
"textStyle": {
"fontSize": {
"magnitude": 10.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 347
}
],
"endIndex": 405,
"startIndex": 346,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"width": {
"magnitude": 101.25,
"unit": "PT"
},
"widthType": "FIXED_WIDTH"
},
{
"width": {
"magnitude": 366.75,
"unit": "PT"
},
"widthType": "FIXED_WIDTH"
}
]
}
}
},
{
"endIndex": 407,
"paragraph": {
"elements": [
{
"endIndex": 407,
"startIndex": 406,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 406
},
{
"endIndex": 408,
"paragraph": {
"elements": [
{
"endIndex": 408,
"startIndex": 407,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 407
},
{
"endIndex": 3504,
"startIndex": 408,
"tableOfContents": {
"content": [
{
"endIndex": 422,
"paragraph": {
"elements": [
{
"endIndex": 421,
"startIndex": 409,
"textRun": {
"content": "Introduction",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.ait8gx84hw5v"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 422,
"startIndex": 421,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 409
},
{
"endIndex": 440,
"paragraph": {
"elements": [
{
"endIndex": 439,
"startIndex": 422,
"textRun": {
"content": "What you'll build",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.psmbt23h0lx"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 440,
"startIndex": 439,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 422
},
{
"endIndex": 458,
"paragraph": {
"elements": [
{
"endIndex": 457,
"startIndex": 440,
"textRun": {
"content": "What youβll learn",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.d2tafm78btb1"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 458,
"startIndex": 457,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 440
},
{
"endIndex": 475,
"paragraph": {
"elements": [
{
"endIndex": 474,
"startIndex": 458,
"textRun": {
"content": "What you'll need",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.fj42uleug9t6"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 475,
"startIndex": 474,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 458
},
{
"endIndex": 510,
"paragraph": {
"elements": [
{
"endIndex": 509,
"startIndex": 475,
"textRun": {
"content": "Set up the development environment",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.1c3bchpiqnrw"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 510,
"startIndex": 509,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 475
},
{
"endIndex": 528,
"paragraph": {
"elements": [
{
"endIndex": 527,
"startIndex": 510,
"textRun": {
"content": "Download the code",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.i9dbh7csr0w"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 528,
"startIndex": 527,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 510
},
{
"endIndex": 555,
"paragraph": {
"elements": [
{
"endIndex": 554,
"startIndex": 528,
"textRun": {
"content": "Set up the starter project",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.7fhkdxspeb3e"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 555,
"startIndex": 554,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 528
},
{
"endIndex": 577,
"paragraph": {
"elements": [
{
"endIndex": 576,
"startIndex": 555,
"textRun": {
"content": "Initialize the plugin",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.23gzwqcjonei"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 577,
"startIndex": 576,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 555
},
{
"endIndex": 603,
"paragraph": {
"elements": [
{
"endIndex": 602,
"startIndex": 577,
"textRun": {
"content": "Add dependency in pubspec",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.va9fr09ola34"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 603,
"startIndex": 602,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 577
},
{
"endIndex": 616,
"paragraph": {
"elements": [
{
"endIndex": 615,
"startIndex": 603,
"textRun": {
"content": "pubspec.yaml",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.5k996sxdajot"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 616,
"startIndex": 615,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 603
},
{
"endIndex": 637,
"paragraph": {
"elements": [
{
"endIndex": 636,
"startIndex": 616,
"textRun": {
"content": "Set up the App Store",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.qrnxh16sdve"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 637,
"startIndex": 636,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 616
},
{
"endIndex": 658,
"paragraph": {
"elements": [
{
"endIndex": 657,
"startIndex": 637,
"textRun": {
"content": "Paid Apps Agreements",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.ry9305h98tp"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 658,
"startIndex": 657,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 637
},
{
"endIndex": 674,
"paragraph": {
"elements": [
{
"endIndex": 673,
"startIndex": 658,
"textRun": {
"content": "Register App ID",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.dzz6cf94qup9"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 674,
"startIndex": 673,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 658
},
{
"endIndex": 693,
"paragraph": {
"elements": [
{
"endIndex": 692,
"startIndex": 674,
"textRun": {
"content": "Creating a new app",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.vexv6ix15uw0"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 693,
"startIndex": 692,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 674
},
{
"endIndex": 727,
"paragraph": {
"elements": [
{
"endIndex": 726,
"startIndex": 693,
"textRun": {
"content": "Configuring your in-app purchases",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.gb01agmg3h15"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 727,
"startIndex": 726,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 693
},
{
"endIndex": 749,
"paragraph": {
"elements": [
{
"endIndex": 748,
"startIndex": 727,
"textRun": {
"content": "Set up the Play Store",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.jqrw9w6jbek"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 749,
"startIndex": 748,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 727
},
{
"endIndex": 766,
"paragraph": {
"elements": [
{
"endIndex": 765,
"startIndex": 749,
"textRun": {
"content": "Create a new app",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.o1u6soa0az1q"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 766,
"startIndex": 765,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 749
},
{
"endIndex": 787,
"paragraph": {
"elements": [
{
"endIndex": 786,
"startIndex": 766,
"textRun": {
"content": "Sign the application",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.z8iwhe2sn61w"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 787,
"startIndex": 786,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 766
},
{
"endIndex": 805,
"paragraph": {
"elements": [
{
"endIndex": 804,
"startIndex": 787,
"textRun": {
"content": "Create a keystore",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.rmmd9ixc2pz4"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 805,
"startIndex": 804,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 787
},
{
"endIndex": 841,
"paragraph": {
"elements": [
{
"endIndex": 840,
"startIndex": 805,
"textRun": {
"content": "Reference the keystore from the app",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.n6xp5o4jc4k9"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 841,
"startIndex": 840,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 805
},
{
"endIndex": 869,
"paragraph": {
"elements": [
{
"endIndex": 868,
"startIndex": 841,
"textRun": {
"content": "Configure signing in Gradle",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.2vb42m8xb3no"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 869,
"startIndex": 868,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 841
},
{
"endIndex": 893,
"paragraph": {
"elements": [
{
"endIndex": 892,
"startIndex": 869,
"textRun": {
"content": "Upload your first build",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.ni22dsnb3wge"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 893,
"startIndex": 892,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 869
},
{
"endIndex": 911,
"paragraph": {
"elements": [
{
"endIndex": 910,
"startIndex": 893,
"textRun": {
"content": "Set up test users",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.2u0491vkcfde"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 911,
"startIndex": 910,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 893
},
{
"endIndex": 945,
"paragraph": {
"elements": [
{
"endIndex": 944,
"startIndex": 911,
"textRun": {
"content": "Configuring your in-app purchases",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.7kkxkz4gyhhc"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 945,
"startIndex": 944,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 911
},
{
"endIndex": 961,
"paragraph": {
"elements": [
{
"endIndex": 960,
"startIndex": 945,
"textRun": {
"content": "Set up Firebase",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.ejv8vgshgjc1"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 961,
"startIndex": 960,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 945
},
{
"endIndex": 987,
"paragraph": {
"elements": [
{
"endIndex": 986,
"startIndex": 961,
"textRun": {
"content": "Create a Firebase project",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.whi67zwuhucz"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 987,
"startIndex": 986,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 961
},
{
"endIndex": 1015,
"paragraph": {
"elements": [
{
"endIndex": 1014,
"startIndex": 987,
"textRun": {
"content": "Set up Firebase for Flutter",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.1ccdp4w5qlnf"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1015,
"startIndex": 1014,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 987
},
{
"endIndex": 1058,
"paragraph": {
"elements": [
{
"endIndex": 1057,
"startIndex": 1015,
"textRun": {
"content": "Set up Firebase for Android: Further steps",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.rb9iczfwcj61"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1058,
"startIndex": 1057,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1015
},
{
"endIndex": 1098,
"paragraph": {
"elements": [
{
"endIndex": 1097,
"startIndex": 1058,
"textRun": {
"content": "Get your debug signing certificate hash",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.hl575bgcxaxg"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1098,
"startIndex": 1097,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1058
},
{
"endIndex": 1137,
"paragraph": {
"elements": [
{
"endIndex": 1136,
"startIndex": 1098,
"textRun": {
"content": "Set up Firebase for iOS: Further steps",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.p0owkml37qhm"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1137,
"startIndex": 1136,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1098
},
{
"endIndex": 1164,
"paragraph": {
"elements": [
{
"endIndex": 1163,
"startIndex": 1137,
"textRun": {
"content": "Listen to purchase updates",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.mcahbl9vdrpn"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1164,
"startIndex": 1163,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1137
},
{
"endIndex": 1191,
"paragraph": {
"elements": [
{
"endIndex": 1190,
"startIndex": 1164,
"textRun": {
"content": "Listen to purchase updates",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.fcw6hzds1nq"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1191,
"startIndex": 1190,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1164
},
{
"endIndex": 1205,
"paragraph": {
"elements": [
{
"endIndex": 1204,
"startIndex": 1191,
"textRun": {
"content": "lib/main.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.jk048wxvrjkx"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1205,
"startIndex": 1204,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1191
},
{
"endIndex": 1219,
"paragraph": {
"elements": [
{
"endIndex": 1218,
"startIndex": 1205,
"textRun": {
"content": "lib/main.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.o3vvyif9w0v"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1219,
"startIndex": 1218,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1205
},
{
"endIndex": 1241,
"paragraph": {
"elements": [
{
"endIndex": 1240,
"startIndex": 1219,
"textRun": {
"content": "test/widget_test.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.iq06bszch0h4"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1241,
"startIndex": 1240,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1219
},
{
"endIndex": 1271,
"paragraph": {
"elements": [
{
"endIndex": 1270,
"startIndex": 1241,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.80zn0qqce5ar"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1271,
"startIndex": 1270,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1241
},
{
"endIndex": 1301,
"paragraph": {
"elements": [
{
"endIndex": 1300,
"startIndex": 1271,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.jo3s1whrc6q6"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1301,
"startIndex": 1300,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1271
},
{
"endIndex": 1316,
"paragraph": {
"elements": [
{
"endIndex": 1315,
"startIndex": 1301,
"textRun": {
"content": "Make purchases",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.sjju57tbpys9"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1316,
"startIndex": 1315,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1301
},
{
"endIndex": 1341,
"paragraph": {
"elements": [
{
"endIndex": 1340,
"startIndex": 1316,
"textRun": {
"content": "Adapt PurchasableProduct",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.x906iqehvpr2"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1341,
"startIndex": 1340,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1316
},
{
"endIndex": 1376,
"paragraph": {
"elements": [
{
"endIndex": 1375,
"startIndex": 1341,
"textRun": {
"content": "lib/model/purchasable_product.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.rglablhgfq77"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1376,
"startIndex": 1375,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1341
},
{
"endIndex": 1401,
"paragraph": {
"elements": [
{
"endIndex": 1400,
"startIndex": 1376,
"textRun": {
"content": "Load available purchases",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.b00evudm79da"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1401,
"startIndex": 1400,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1376
},
{
"endIndex": 1431,
"paragraph": {
"elements": [
{
"endIndex": 1430,
"startIndex": 1401,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.mgrbbglmvoez"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1431,
"startIndex": 1430,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1401
},
{
"endIndex": 1461,
"paragraph": {
"elements": [
{
"endIndex": 1460,
"startIndex": 1431,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.ucam5cd4fp6l"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1461,
"startIndex": 1460,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1431
},
{
"endIndex": 1491,
"paragraph": {
"elements": [
{
"endIndex": 1490,
"startIndex": 1461,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.nfvpw72ufdo8"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1491,
"startIndex": 1490,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1461
},
{
"endIndex": 1521,
"paragraph": {
"elements": [
{
"endIndex": 1520,
"startIndex": 1491,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.jwn50inqxl6w"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1521,
"startIndex": 1520,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1491
},
{
"endIndex": 1551,
"paragraph": {
"elements": [
{
"endIndex": 1550,
"startIndex": 1521,
"textRun": {
"content": "Show the purchasable products",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.a9894r9iopct"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1551,
"startIndex": 1550,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1521
},
{
"endIndex": 1580,
"paragraph": {
"elements": [
{
"endIndex": 1579,
"startIndex": 1551,
"textRun": {
"content": "lib/pages/purchase_page.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.o7gdmx3ulp1v"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1580,
"startIndex": 1579,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1551
},
{
"endIndex": 1610,
"paragraph": {
"elements": [
{
"endIndex": 1609,
"startIndex": 1580,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.t2my6pr741wt"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1610,
"startIndex": 1609,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1580
},
{
"endIndex": 1640,
"paragraph": {
"elements": [
{
"endIndex": 1639,
"startIndex": 1610,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.u1p10v9fz9mc"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1640,
"startIndex": 1639,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1610
},
{
"endIndex": 1659,
"paragraph": {
"elements": [
{
"endIndex": 1658,
"startIndex": 1640,
"textRun": {
"content": "Set up the backend",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.8dbu8esps88"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1659,
"startIndex": 1658,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1640
},
{
"endIndex": 1681,
"paragraph": {
"elements": [
{
"endIndex": 1680,
"startIndex": 1659,
"textRun": {
"content": "Base project overview",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.7obu2mgfnlz0"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1681,
"startIndex": 1680,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1659
},
{
"endIndex": 1704,
"paragraph": {
"elements": [
{
"endIndex": 1703,
"startIndex": 1681,
"textRun": {
"content": "Set up Firebase access",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"headingId": "h.dkookxd617q6"
},
"underline": true
}
}
},
{
"endIndex": 1704,
"startIndex": 1703,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1681
},
{
"endIndex": 1730,
"paragraph": {
"elements": [
{
"endIndex": 1729,
"startIndex": 1704,
"textRun": {
"content": "Set up Google Play access",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.knv4xp21ktnt"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1730,
"startIndex": 1729,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1704
},
{
"endIndex": 1760,
"paragraph": {
"elements": [
{
"endIndex": 1759,
"startIndex": 1730,
"textRun": {
"content": "Set up Apple App Store access",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.g72vs8nlqhfu"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1760,
"startIndex": 1759,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1730
},
{
"endIndex": 1789,
"paragraph": {
"elements": [
{
"endIndex": 1788,
"startIndex": 1760,
"textRun": {
"content": "Constants configuration file",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"headingId": "h.aqc59yhf20q"
},
"underline": true
}
}
},
{
"endIndex": 1789,
"startIndex": 1788,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1760
},
{
"endIndex": 1806,
"paragraph": {
"elements": [
{
"endIndex": 1805,
"startIndex": 1789,
"textRun": {
"content": "Verify purchases",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.92eefa9xpwex"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1806,
"startIndex": 1805,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1789
},
{
"endIndex": 1830,
"paragraph": {
"elements": [
{
"endIndex": 1829,
"startIndex": 1806,
"textRun": {
"content": "Set up the Flutter side",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.aoaadshh2reg"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1830,
"startIndex": 1829,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1806
},
{
"endIndex": 1852,
"paragraph": {
"elements": [
{
"endIndex": 1851,
"startIndex": 1830,
"textRun": {
"content": "Set up authentication",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.134djrxwtck0"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1852,
"startIndex": 1851,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1830
},
{
"endIndex": 1881,
"paragraph": {
"elements": [
{
"endIndex": 1880,
"startIndex": 1852,
"textRun": {
"content": "lib/pages/purchase_page.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.bqda879f77zo"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1881,
"startIndex": 1880,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1852
},
{
"endIndex": 1921,
"paragraph": {
"elements": [
{
"endIndex": 1920,
"startIndex": 1881,
"textRun": {
"content": "Call verification endpoint from the app",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.fpeghnmhyjw5"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1921,
"startIndex": 1920,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1881
},
{
"endIndex": 1951,
"paragraph": {
"elements": [
{
"endIndex": 1950,
"startIndex": 1921,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.ambb17bea5eu"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1951,
"startIndex": 1950,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1921
},
{
"endIndex": 1965,
"paragraph": {
"elements": [
{
"endIndex": 1964,
"startIndex": 1951,
"textRun": {
"content": "lib/main.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.h3a9vrs8wpa6"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 1965,
"startIndex": 1964,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1951
},
{
"endIndex": 1998,
"paragraph": {
"elements": [
{
"endIndex": 1997,
"startIndex": 1965,
"textRun": {
"content": "lib/logic/firebase_notifier.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"headingId": "h.w07tm7tj04kl"
},
"underline": true
}
}
},
{
"endIndex": 1998,
"startIndex": 1997,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1965
},
{
"endIndex": 2028,
"paragraph": {
"elements": [
{
"endIndex": 2027,
"startIndex": 1998,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.ikjulurznqpp"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2028,
"startIndex": 2027,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 1998
},
{
"endIndex": 2058,
"paragraph": {
"elements": [
{
"endIndex": 2057,
"startIndex": 2028,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.ipyt35k9ps3s"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2058,
"startIndex": 2057,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2028
},
{
"endIndex": 2085,
"paragraph": {
"elements": [
{
"endIndex": 2084,
"startIndex": 2058,
"textRun": {
"content": "Set up the backend service",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.w21b5bvfuwiw"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2085,
"startIndex": 2084,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2058
},
{
"endIndex": 2109,
"paragraph": {
"elements": [
{
"endIndex": 2108,
"startIndex": 2085,
"textRun": {
"content": "Build purchase handlers",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.q27vh9nf8lin"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2109,
"startIndex": 2108,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2085
},
{
"endIndex": 2135,
"paragraph": {
"elements": [
{
"endIndex": 2134,
"startIndex": 2109,
"textRun": {
"content": "lib/purchase_handler.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.lzo8w6ec9do"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2135,
"startIndex": 2134,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2109
},
{
"endIndex": 2161,
"paragraph": {
"elements": [
{
"endIndex": 2160,
"startIndex": 2135,
"textRun": {
"content": "lib/purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"headingId": "h.geakaektj298"
},
"underline": true
}
}
},
{
"endIndex": 2161,
"startIndex": 2160,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2135
},
{
"endIndex": 2187,
"paragraph": {
"elements": [
{
"endIndex": 2186,
"startIndex": 2161,
"textRun": {
"content": "functions/src/products.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.b5dsy0h4nyqp"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2187,
"startIndex": 2186,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2161
},
{
"endIndex": 2221,
"paragraph": {
"elements": [
{
"endIndex": 2220,
"startIndex": 2187,
"textRun": {
"content": "functions/src/purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.8s3sgzaprww5"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2221,
"startIndex": 2220,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2187
},
{
"endIndex": 2267,
"paragraph": {
"elements": [
{
"endIndex": 2266,
"startIndex": 2221,
"textRun": {
"content": "functions/src/google-play.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.hit9xghmtn82"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2267,
"startIndex": 2266,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2221
},
{
"endIndex": 2311,
"paragraph": {
"elements": [
{
"endIndex": 2310,
"startIndex": 2267,
"textRun": {
"content": "functions/src/app-store.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.iokzwmayvp6a"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2311,
"startIndex": 2310,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2267
},
{
"endIndex": 2333,
"paragraph": {
"elements": [
{
"endIndex": 2332,
"startIndex": 2311,
"textRun": {
"content": "Use purchase handlers",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.xz19ykk8ox68"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2333,
"startIndex": 2332,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2311
},
{
"endIndex": 2356,
"paragraph": {
"elements": [
{
"endIndex": 2355,
"startIndex": 2333,
"textRun": {
"content": "functions/src/index.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.829xiqlpodn"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2356,
"startIndex": 2355,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2333
},
{
"endIndex": 2379,
"paragraph": {
"elements": [
{
"endIndex": 2378,
"startIndex": 2356,
"textRun": {
"content": "functions/src/index.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.g3r3y0bynpfd"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2379,
"startIndex": 2378,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2356
},
{
"endIndex": 2395,
"paragraph": {
"elements": [
{
"endIndex": 2394,
"startIndex": 2379,
"textRun": {
"content": "Define products",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.ffnftj7a0ds7"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2395,
"startIndex": 2394,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2379
},
{
"endIndex": 2421,
"paragraph": {
"elements": [
{
"endIndex": 2420,
"startIndex": 2395,
"textRun": {
"content": "functions/src/products.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.eqcv4bw3wj9l"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2421,
"startIndex": 2420,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2395
},
{
"endIndex": 2444,
"paragraph": {
"elements": [
{
"endIndex": 2443,
"startIndex": 2421,
"textRun": {
"content": "functions/src/index.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.h97fdl3sso4b"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2444,
"startIndex": 2443,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2421
},
{
"endIndex": 2500,
"paragraph": {
"elements": [
{
"endIndex": 2499,
"startIndex": 2444,
"textRun": {
"content": "Verify Android purchases: Implement the purchase hander",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.kvvs4a2ab9qm"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2500,
"startIndex": 2499,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2444
},
{
"endIndex": 2546,
"paragraph": {
"elements": [
{
"endIndex": 2545,
"startIndex": 2500,
"textRun": {
"content": "functions/src/google-play.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.3ckxdb9et3i1"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2546,
"startIndex": 2545,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2500
},
{
"endIndex": 2592,
"paragraph": {
"elements": [
{
"endIndex": 2591,
"startIndex": 2546,
"textRun": {
"content": "functions/src/google-play.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.3zpwswhdy5qy"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2592,
"startIndex": 2591,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2546
},
{
"endIndex": 2638,
"paragraph": {
"elements": [
{
"endIndex": 2637,
"startIndex": 2592,
"textRun": {
"content": "functions/src/google-play.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.u6r21uantosy"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2638,
"startIndex": 2637,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2592
},
{
"endIndex": 2684,
"paragraph": {
"elements": [
{
"endIndex": 2683,
"startIndex": 2638,
"textRun": {
"content": "functions/src/google-play.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.n3xrqwopnn6v"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2684,
"startIndex": 2683,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2638
},
{
"endIndex": 2737,
"paragraph": {
"elements": [
{
"endIndex": 2736,
"startIndex": 2684,
"textRun": {
"content": "Verify iOS purchases: Implement the purchase handler",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.msyta1i4r4lp"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2737,
"startIndex": 2736,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2684
},
{
"endIndex": 2781,
"paragraph": {
"elements": [
{
"endIndex": 2780,
"startIndex": 2737,
"textRun": {
"content": "functions/src/app-store.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.8h3fipl5g797"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2781,
"startIndex": 2780,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2737
},
{
"endIndex": 2825,
"paragraph": {
"elements": [
{
"endIndex": 2824,
"startIndex": 2781,
"textRun": {
"content": "functions/src/app-store.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.nwkw0tn4yar8"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2825,
"startIndex": 2824,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2781
},
{
"endIndex": 2869,
"paragraph": {
"elements": [
{
"endIndex": 2868,
"startIndex": 2825,
"textRun": {
"content": "functions/src/app-store.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.uhe18ngppe1q"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2869,
"startIndex": 2868,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2825
},
{
"endIndex": 2913,
"paragraph": {
"elements": [
{
"endIndex": 2912,
"startIndex": 2869,
"textRun": {
"content": "functions/src/app-store.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.pc665bdlompt"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2913,
"startIndex": 2912,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2869
},
{
"endIndex": 2957,
"paragraph": {
"elements": [
{
"endIndex": 2956,
"startIndex": 2913,
"textRun": {
"content": "functions/src/app-store.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.wgkogjxbkihg"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2957,
"startIndex": 2956,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2913
},
{
"endIndex": 2976,
"paragraph": {
"elements": [
{
"endIndex": 2975,
"startIndex": 2957,
"textRun": {
"content": "Deploy the backend",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.jb3eo77qkroq"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 2976,
"startIndex": 2975,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2957
},
{
"endIndex": 3000,
"paragraph": {
"elements": [
{
"endIndex": 2999,
"startIndex": 2976,
"textRun": {
"content": "Keep track of purchases",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.dd0rjca1enw0"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3000,
"startIndex": 2999,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 2976
},
{
"endIndex": 3036,
"paragraph": {
"elements": [
{
"endIndex": 3035,
"startIndex": 3000,
"textRun": {
"content": "Process store events on the backend",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.ti7vyj5prcjk"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3036,
"startIndex": 3035,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3000
},
{
"endIndex": 3071,
"paragraph": {
"elements": [
{
"endIndex": 3070,
"startIndex": 3036,
"textRun": {
"content": "Process Google Play billing events",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.sxk3tsy39sxr"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3071,
"startIndex": 3070,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3036
},
{
"endIndex": 3117,
"paragraph": {
"elements": [
{
"endIndex": 3116,
"startIndex": 3071,
"textRun": {
"content": "functions/src/google-play.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.aecu2q40uqsk"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3117,
"startIndex": 3116,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3071
},
{
"endIndex": 3163,
"paragraph": {
"elements": [
{
"endIndex": 3162,
"startIndex": 3117,
"textRun": {
"content": "functions/src/google-play.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.p9ua81tts3te"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3163,
"startIndex": 3162,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3117
},
{
"endIndex": 3186,
"paragraph": {
"elements": [
{
"endIndex": 3185,
"startIndex": 3163,
"textRun": {
"content": "functions/src/index.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.nbdit1uenoaw"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3186,
"startIndex": 3185,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3163
},
{
"endIndex": 3219,
"paragraph": {
"elements": [
{
"endIndex": 3218,
"startIndex": 3186,
"textRun": {
"content": "Process App Store billing events",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.cbs9z18fhfqs"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3219,
"startIndex": 3218,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3186
},
{
"endIndex": 3263,
"paragraph": {
"elements": [
{
"endIndex": 3262,
"startIndex": 3219,
"textRun": {
"content": "functions/src/app-store.purchase-handler.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.orjo6vlyqfge"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3263,
"startIndex": 3262,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3219
},
{
"endIndex": 3286,
"paragraph": {
"elements": [
{
"endIndex": 3285,
"startIndex": 3263,
"textRun": {
"content": "functions/src/index.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.ebi2444nkxx7"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3286,
"startIndex": 3285,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3263
},
{
"endIndex": 3309,
"paragraph": {
"elements": [
{
"endIndex": 3308,
"startIndex": 3286,
"textRun": {
"content": "Expiring Subscriptions",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.v4v1eioy8yhj"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3309,
"startIndex": 3308,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3286
},
{
"endIndex": 3332,
"paragraph": {
"elements": [
{
"endIndex": 3331,
"startIndex": 3309,
"textRun": {
"content": "functions/src/index.ts",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.uqid257a8v3"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3332,
"startIndex": 3331,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3309
},
{
"endIndex": 3350,
"paragraph": {
"elements": [
{
"endIndex": 3349,
"startIndex": 3332,
"textRun": {
"content": "Google Play setup",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.nkijb68mlhu2"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3350,
"startIndex": 3349,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3332
},
{
"endIndex": 3366,
"paragraph": {
"elements": [
{
"endIndex": 3365,
"startIndex": 3350,
"textRun": {
"content": "App Store setup",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.easdahjt03hd"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3366,
"startIndex": 3365,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3350
},
{
"endIndex": 3396,
"paragraph": {
"elements": [
{
"endIndex": 3395,
"startIndex": 3366,
"textRun": {
"content": "Track purchases on the device",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.iuugivjoy0l3"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3396,
"startIndex": 3395,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 18.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3366
},
{
"endIndex": 3419,
"paragraph": {
"elements": [
{
"endIndex": 3418,
"startIndex": 3396,
"textRun": {
"content": "lib/repo/iap_repo.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.xgm7m0la00z6"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3419,
"startIndex": 3418,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3396
},
{
"endIndex": 3449,
"paragraph": {
"elements": [
{
"endIndex": 3448,
"startIndex": 3419,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.2jm5f1b6gkhx"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3449,
"startIndex": 3448,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3419
},
{
"endIndex": 3463,
"paragraph": {
"elements": [
{
"endIndex": 3462,
"startIndex": 3449,
"textRun": {
"content": "lib/main.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.6ifsfvloq7cr"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3463,
"startIndex": 3462,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3449
},
{
"endIndex": 3493,
"paragraph": {
"elements": [
{
"endIndex": 3492,
"startIndex": 3463,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.br9j03ile7e3"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3493,
"startIndex": 3492,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3463
},
{
"endIndex": 3503,
"paragraph": {
"elements": [
{
"endIndex": 3502,
"startIndex": 3493,
"textRun": {
"content": "All done!",
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"italic": false,
"link": {
"headingId": "h.b777ki4f2xms"
},
"smallCaps": false,
"strikethrough": false,
"underline": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3503,
"startIndex": 3502,
"textRun": {
"content": "\n",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"underline": true
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spaceAbove": {
"magnitude": 3.0,
"unit": "PT"
}
}
},
"startIndex": 3493
}
]
}
},
{
"endIndex": 3505,
"paragraph": {
"elements": [
{
"endIndex": 3505,
"startIndex": 3504,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 3504
},
{
"endIndex": 3506,
"paragraph": {
"elements": [
{
"endIndex": 3506,
"startIndex": 3505,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 3505
},
{
"endIndex": 3508,
"paragraph": {
"elements": [
{
"endIndex": 3507,
"pageBreak": {
"textStyle": {}
},
"startIndex": 3506
},
{
"endIndex": 3508,
"startIndex": 3507,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.y3a2k1u3c8fs",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 3506
},
{
"endIndex": 3521,
"paragraph": {
"elements": [
{
"endIndex": 3512,
"startIndex": 3508,
"textRun": {
"content": "Intr",
"textStyle": {
"fontSize": {
"magnitude": 16.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3516,
"startIndex": 3512,
"textRun": {
"content": "oduc",
"textStyle": {}
}
},
{
"endIndex": 3521,
"startIndex": 3516,
"textRun": {
"content": "tion\n",
"textStyle": {
"fontSize": {
"magnitude": 16.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ait8gx84hw5v",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 3508
},
{
"endIndex": 3522,
"paragraph": {
"elements": [
{
"endIndex": 3522,
"startIndex": 3521,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 3521
},
{
"endIndex": 3547,
"paragraph": {
"elements": [
{
"endIndex": 3535,
"startIndex": 3522,
"textRun": {
"content": "Last Updated:",
"textStyle": {
"bold": true,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3536,
"startIndex": 3535,
"textRun": {
"content": " ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3540,
"startIndex": 3536,
"textRun": {
"content": "2023",
"textStyle": {}
}
},
{
"endIndex": 3542,
"startIndex": 3540,
"textRun": {
"content": "-0",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3543,
"startIndex": 3542,
"textRun": {
"content": "3",
"textStyle": {}
}
},
{
"endIndex": 3544,
"startIndex": 3543,
"textRun": {
"content": "-",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 3546,
"startIndex": 3544,
"textRun": {
"content": "27",
"textStyle": {}
}
},
{
"endIndex": 3547,
"startIndex": 3546,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 3522
},
{
"endIndex": 3548,
"paragraph": {
"elements": [
{
"endIndex": 3548,
"startIndex": 3547,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 3547
},
{
"endIndex": 3736,
"paragraph": {
"elements": [
{
"endIndex": 3735,
"startIndex": 3548,
"textRun": {
"content": "Adding in-app purchases to a Flutter app requires correctly setting up the App and Play stores, verifying the purchase, and granting the necessary permissions, such as subscription perks.",
"textStyle": {}
}
},
{
"endIndex": 3736,
"startIndex": 3735,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 3548
},
{
"endIndex": 3737,
"paragraph": {
"elements": [
{
"endIndex": 3737,
"startIndex": 3736,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 3736
},
{
"endIndex": 4022,
"paragraph": {
"elements": [
{
"endIndex": 4022,
"startIndex": 3737,
"textRun": {
"content": "In this codelab youβll add three types of in-app purchases to an app (provided for you), and verify these purchases using a Dart backend with Firebase. The provided app, Dash Clicker, contains a game that uses the Dash mascot as currency. You will add the following purchase options: \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 3737
},
{
"endIndex": 4023,
"paragraph": {
"elements": [
{
"endIndex": 4023,
"startIndex": 4022,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 4022
},
{
"endIndex": 4077,
"paragraph": {
"bullet": {
"listId": "kix.ueq2r24kq7ie",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 4077,
"startIndex": 4023,
"textRun": {
"content": "A repeatable purchase option for 2000 Dashes at once.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 4023
},
{
"endIndex": 4158,
"paragraph": {
"bullet": {
"listId": "kix.ueq2r24kq7ie",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 4158,
"startIndex": 4077,
"textRun": {
"content": "A one-time upgrade purchase to make the old style Dash into a modern style Dash.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 4077
},
{
"endIndex": 4222,
"paragraph": {
"bullet": {
"listId": "kix.ueq2r24kq7ie",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 4222,
"startIndex": 4158,
"textRun": {
"content": "A subscription that doubles the automatically generated clicks.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 4158
},
{
"endIndex": 4223,
"paragraph": {
"elements": [
{
"endIndex": 4223,
"startIndex": 4222,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 36.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 4222
},
{
"endIndex": 4459,
"paragraph": {
"elements": [
{
"endIndex": 4459,
"startIndex": 4223,
"textRun": {
"content": "The first purchase option gives the user a direct benefit of 2000 Dashes. These are directly available to the user and can be bought many times. This is called a consumable as it is directly consumed and can be consumed multiple times.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 4223
},
{
"endIndex": 4460,
"paragraph": {
"elements": [
{
"endIndex": 4460,
"startIndex": 4459,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 4459
},
{
"endIndex": 4687,
"paragraph": {
"elements": [
{
"endIndex": 4687,
"startIndex": 4460,
"textRun": {
"content": "The second option upgrades the Dash to a more beautiful Dash. This only has to be purchased once and is available forever. Such a purchase is called non-consumable because it cannot be consumed by the app but is valid forever.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 4460
},
{
"endIndex": 4688,
"paragraph": {
"elements": [
{
"endIndex": 4688,
"startIndex": 4687,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 4687
},
{
"endIndex": 4887,
"paragraph": {
"elements": [
{
"endIndex": 4887,
"startIndex": 4688,
"textRun": {
"content": "The third and last purchase option is a subscription. While the subscription is active the user will get Dashes more quickly, but when he stops paying for the subscription the benefits also go away.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 4688
},
{
"endIndex": 4888,
"paragraph": {
"elements": [
{
"endIndex": 4888,
"startIndex": 4887,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 4887
},
{
"endIndex": 5138,
"paragraph": {
"elements": [
{
"endIndex": 5138,
"startIndex": 4888,
"textRun": {
"content": "The backend service (also provided for you) runs as a Dart app, verifies that the purchases are made, and stores them using Firestore. Firestore is used to make the process easier, but in your production app, you can use any type of backend service.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 4888
},
{
"endIndex": 5150,
"paragraph": {
"elements": [
{
"endIndex": 5139,
"inlineObjectElement": {
"inlineObjectId": "kix.oob851rr5dpx",
"textStyle": {}
},
"startIndex": 5138
},
{
"endIndex": 5143,
"startIndex": 5139,
"textRun": {
"content": " ",
"textStyle": {}
}
},
{
"endIndex": 5144,
"inlineObjectElement": {
"inlineObjectId": "kix.y56zhtc6tete",
"textStyle": {}
},
"startIndex": 5143
},
{
"endIndex": 5148,
"startIndex": 5144,
"textRun": {
"content": " ",
"textStyle": {}
}
},
{
"endIndex": 5149,
"inlineObjectElement": {
"inlineObjectId": "kix.u8d6iv97bzy1",
"textStyle": {}
},
"startIndex": 5148
},
{
"endIndex": 5150,
"startIndex": 5149,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 5138
},
{
"endIndex": 5151,
"paragraph": {
"elements": [
{
"endIndex": 5151,
"startIndex": 5150,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 5150
},
{
"endIndex": 5152,
"paragraph": {
"elements": [
{
"endIndex": 5152,
"startIndex": 5151,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 5151
},
{
"endIndex": 5170,
"paragraph": {
"elements": [
{
"endIndex": 5170,
"startIndex": 5152,
"textRun": {
"content": "What you'll build\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.psmbt23h0lx",
"lineSpacing": 100.0,
"namedStyleType": "HEADING_2",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 15.0,
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
}
}
},
"startIndex": 5152
},
{
"endIndex": 5171,
"paragraph": {
"elements": [
{
"endIndex": 5171,
"startIndex": 5170,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5170
},
{
"endIndex": 5245,
"paragraph": {
"bullet": {
"listId": "kix.fhl8uuuumoyx",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 5196,
"startIndex": 5171,
"textRun": {
"content": "You will extend an app to",
"textStyle": {}
}
},
{
"endIndex": 5245,
"startIndex": 5196,
"textRun": {
"content": " support consumable purchases and subscriptions.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5171
},
{
"endIndex": 5326,
"paragraph": {
"bullet": {
"listId": "kix.fhl8uuuumoyx",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 5325,
"startIndex": 5245,
"textRun": {
"content": "You will also extend a Dart backend app to verify and store the purchased items.",
"textStyle": {}
}
},
{
"endIndex": 5326,
"startIndex": 5325,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5245
},
{
"endIndex": 5344,
"paragraph": {
"elements": [
{
"endIndex": 5338,
"startIndex": 5326,
"textRun": {
"content": "What youβll ",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 13.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
}
},
{
"endIndex": 5344,
"startIndex": 5338,
"textRun": {
"content": "learn\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.d2tafm78btb1",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false,
"spaceAbove": {
"magnitude": 10.0,
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "NEVER_COLLAPSE"
}
},
"startIndex": 5326
},
{
"endIndex": 5345,
"paragraph": {
"elements": [
{
"endIndex": 5345,
"startIndex": 5344,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5344
},
{
"endIndex": 5418,
"paragraph": {
"bullet": {
"listId": "kix.kic1o5ute4a9",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 5418,
"startIndex": 5345,
"textRun": {
"content": "How to configure the App Store and Play Store with purchasable products.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5345
},
{
"endIndex": 5502,
"paragraph": {
"bullet": {
"listId": "kix.kic1o5ute4a9",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 5502,
"startIndex": 5418,
"textRun": {
"content": "How to communicate with the stores to verify purchases and store them in Firestore.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5418
},
{
"endIndex": 5539,
"paragraph": {
"bullet": {
"listId": "kix.kic1o5ute4a9",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 5538,
"startIndex": 5502,
"textRun": {
"content": "How to manage purchases in your app.",
"textStyle": {}
}
},
{
"endIndex": 5539,
"startIndex": 5538,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5502
},
{
"endIndex": 5556,
"paragraph": {
"elements": [
{
"endIndex": 5556,
"startIndex": 5539,
"textRun": {
"content": "What you'll need\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.fj42uleug9t6",
"lineSpacing": 100.0,
"namedStyleType": "HEADING_2",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 15.0,
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
}
}
},
"startIndex": 5539
},
{
"endIndex": 5557,
"paragraph": {
"elements": [
{
"endIndex": 5557,
"startIndex": 5556,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5556
},
{
"endIndex": 5585,
"paragraph": {
"bullet": {
"listId": "kix.y1tmgniuwb75",
"textStyle": {}
},
"elements": [
{
"endIndex": 5585,
"startIndex": 5557,
"textRun": {
"content": "Android Studio 4.1 or later\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 5.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 5.0,
"unit": "PT"
}
}
},
"startIndex": 5557
},
{
"endIndex": 5625,
"paragraph": {
"bullet": {
"listId": "kix.y1tmgniuwb75",
"textStyle": {}
},
"elements": [
{
"endIndex": 5625,
"startIndex": 5585,
"textRun": {
"content": "Xcode 12 or later (for iOS development)\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 5.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 5.0,
"unit": "PT"
}
}
},
"startIndex": 5585
},
{
"endIndex": 5637,
"paragraph": {
"bullet": {
"listId": "kix.y1tmgniuwb75",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 5636,
"startIndex": 5625,
"textRun": {
"content": "Flutter SDK",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://flutter.dev/docs/get-started/install"
},
"underline": true
}
}
},
{
"endIndex": 5637,
"startIndex": 5636,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 5.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 5.0,
"unit": "PT"
}
}
},
"startIndex": 5625
},
{
"endIndex": 5638,
"paragraph": {
"elements": [
{
"endIndex": 5638,
"startIndex": 5637,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5637
},
{
"endIndex": 5640,
"paragraph": {
"elements": [
{
"endIndex": 5639,
"pageBreak": {
"textStyle": {}
},
"startIndex": 5638
},
{
"endIndex": 5640,
"startIndex": 5639,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.pcavc7c2y62c",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 5638
},
{
"endIndex": 5675,
"paragraph": {
"elements": [
{
"endIndex": 5675,
"startIndex": 5640,
"textRun": {
"content": "Set up the development environment\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.1c3bchpiqnrw",
"lineSpacing": 100.0,
"namedStyleType": "HEADING_1",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 15.0,
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
}
}
},
"startIndex": 5640
},
{
"endIndex": 5676,
"paragraph": {
"elements": [
{
"endIndex": 5676,
"startIndex": 5675,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5675
},
{
"endIndex": 5793,
"paragraph": {
"elements": [
{
"endIndex": 5793,
"startIndex": 5676,
"textRun": {
"content": "To start this codelab, download the code and change the bundle identifier for iOS and the package name for Android.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5676
},
{
"endIndex": 5811,
"paragraph": {
"elements": [
{
"endIndex": 5810,
"startIndex": 5793,
"textRun": {
"content": "Download the code",
"textStyle": {}
}
},
{
"endIndex": 5811,
"startIndex": 5810,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.i9dbh7csr0w",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 5793
},
{
"endIndex": 5892,
"paragraph": {
"elements": [
{
"endIndex": 5815,
"startIndex": 5811,
"textRun": {
"content": "To c",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 5824,
"startIndex": 5815,
"textRun": {
"content": "lone the ",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 5841,
"startIndex": 5824,
"textRun": {
"content": "GitHub repository",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.9098039,
"green": 0.4509804,
"red": 0.101960786
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs"
},
"underline": true
}
}
},
{
"endIndex": 5891,
"startIndex": 5841,
"textRun": {
"content": " from the command line, use the following command:",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 5892,
"startIndex": 5891,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 12.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 12.0,
"unit": "PT"
}
}
},
"startIndex": 5811
},
{
"endIndex": 5963,
"startIndex": 5892,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 5962,
"startIndex": 5893,
"tableCells": [
{
"content": [
{
"endIndex": 5962,
"paragraph": {
"elements": [
{
"endIndex": 5962,
"startIndex": 5895,
"textRun": {
"content": "git clone https://github.com/flutter/codelabs.git flutter-codelabs\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 5895
}
],
"endIndex": 5962,
"startIndex": 5894,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"magnitude": 26.061865234375,
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 6035,
"paragraph": {
"elements": [
{
"endIndex": 5979,
"startIndex": 5963,
"textRun": {
"content": "Or, if you have ",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 5991,
"startIndex": 5979,
"textRun": {
"content": "GitHub's cli",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.9098039,
"green": 0.4509804,
"red": 0.101960786
}
}
},
"link": {
"url": "https://github.com/cli/cli"
},
"underline": true
}
}
},
{
"endIndex": 6034,
"startIndex": 5991,
"textRun": {
"content": " tool installed, use the following command:",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 6035,
"startIndex": 6034,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 12.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 12.0,
"unit": "PT"
}
}
},
"startIndex": 5963
},
{
"endIndex": 6087,
"startIndex": 6035,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 6086,
"startIndex": 6036,
"tableCells": [
{
"content": [
{
"endIndex": 6086,
"paragraph": {
"elements": [
{
"endIndex": 6086,
"startIndex": 6038,
"textRun": {
"content": "gh repo clone flutter/codelabs flutter-codelabs\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 6038
}
],
"endIndex": 6086,
"startIndex": 6037,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 6267,
"paragraph": {
"elements": [
{
"endIndex": 6120,
"startIndex": 6087,
"textRun": {
"content": "The sample code is cloned into a ",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 6136,
"startIndex": 6120,
"textRun": {
"content": "flutter-codelabs",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
},
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 6232,
"startIndex": 6136,
"textRun": {
"content": " directory that contains the code for a collection of codelabs. The code for this codelab is in ",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 6265,
"startIndex": 6232,
"textRun": {
"content": "flutter-codelabs/in_app_purchases",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
},
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 6266,
"startIndex": 6265,
"textRun": {
"content": ".",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 6267,
"startIndex": 6266,
"textRun": {
"content": "\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
}
],
"paragraphStyle": {
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 12.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 12.0,
"unit": "PT"
}
}
},
"startIndex": 6087
},
{
"endIndex": 6493,
"paragraph": {
"elements": [
{
"endIndex": 6297,
"startIndex": 6267,
"textRun": {
"content": "The directory structure under ",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 6330,
"startIndex": 6297,
"textRun": {
"content": "flutter-codelabs/in_app_purchases",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
},
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 6492,
"startIndex": 6330,
"textRun": {
"content": " contains a series of snapshots of where you should be at the end of each named step. The starter code is in step 0, so locating the matching files is as easy as:",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 6493,
"startIndex": 6492,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 12.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 12.0,
"unit": "PT"
}
}
},
"startIndex": 6267
},
{
"endIndex": 6542,
"startIndex": 6493,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 6541,
"startIndex": 6494,
"tableCells": [
{
"content": [
{
"endIndex": 6541,
"paragraph": {
"elements": [
{
"endIndex": 6516,
"startIndex": 6496,
"textRun": {
"content": "cd flutter-codelabs/",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
},
{
"endIndex": 6532,
"startIndex": 6516,
"textRun": {
"content": "in_app_purchases",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
},
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
},
{
"endIndex": 6541,
"startIndex": 6532,
"textRun": {
"content": "/step_00\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 6496
}
],
"endIndex": 6541,
"startIndex": 6495,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 6745,
"paragraph": {
"elements": [
{
"endIndex": 6735,
"startIndex": 6542,
"textRun": {
"content": "If you want to skip forward or see what something should look like after a step, look in the directory named after the step you are interested in. The code of the last step is under the folder ",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 6743,
"startIndex": 6735,
"textRun": {
"content": "complete",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
},
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 6744,
"startIndex": 6743,
"textRun": {
"content": ".",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 6745,
"startIndex": 6744,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 12.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 12.0,
"unit": "PT"
}
}
},
"startIndex": 6542
},
{
"endIndex": 6772,
"paragraph": {
"elements": [
{
"endIndex": 6772,
"startIndex": 6745,
"textRun": {
"content": "Set up the starter project\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.7fhkdxspeb3e",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 6745
},
{
"endIndex": 6773,
"paragraph": {
"elements": [
{
"endIndex": 6773,
"startIndex": 6772,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 6772
},
{
"endIndex": 7007,
"paragraph": {
"elements": [
{
"endIndex": 6803,
"startIndex": 6773,
"textRun": {
"content": "Open the starter project from ",
"textStyle": {}
}
},
{
"endIndex": 6810,
"startIndex": 6803,
"textRun": {
"content": "step_00",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 7007,
"startIndex": 6810,
"textRun": {
"content": " in your favorite IDE. We used Android Studio for the screenshots, but Visual Studio Code is also a great option. With either editor, ensure that the latest Dart and Flutter plugins are installed.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 6773
},
{
"endIndex": 7008,
"paragraph": {
"elements": [
{
"endIndex": 7008,
"startIndex": 7007,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 7007
},
{
"endIndex": 7576,
"paragraph": {
"elements": [
{
"endIndex": 7457,
"startIndex": 7008,
"textRun": {
"content": "The apps you are going to make need to communicate with the App Store and Play Store to know which products are available and for what price. Every app is identified by a unique ID. For the iOS App Store this is called the bundle identifier and for the Android Play Store this is the application ID. These identifiers are usually made using a reverse domain name notation. For example when making an in app purchase app for flutter.dev we would use ",
"textStyle": {}
}
},
{
"endIndex": 7482,
"startIndex": 7457,
"textRun": {
"content": "dev.flutter.inapppurchase",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 7576,
"startIndex": 7482,
"textRun": {
"content": ". Think of an identifier for your app, you are now going to set that in the project settings.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 7008
},
{
"endIndex": 7577,
"paragraph": {
"elements": [
{
"endIndex": 7577,
"startIndex": 7576,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 7576
},
{
"endIndex": 7622,
"paragraph": {
"elements": [
{
"endIndex": 7622,
"startIndex": 7577,
"textRun": {
"content": "First, set up the bundle identifier for iOS.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 7577
},
{
"endIndex": 7623,
"paragraph": {
"elements": [
{
"endIndex": 7623,
"startIndex": 7622,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 7622
},
{
"endIndex": 7745,
"paragraph": {
"elements": [
{
"endIndex": 7698,
"startIndex": 7623,
"textRun": {
"content": "With the project open in Android Studio, right-click the iOS folder, click ",
"textStyle": {}
}
},
{
"endIndex": 7705,
"startIndex": 7698,
"textRun": {
"content": "Flutter",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 7745,
"startIndex": 7705,
"textRun": {
"content": ", and open the module in the Xcode app.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 7623
},
{
"endIndex": 7746,
"paragraph": {
"elements": [
{
"endIndex": 7746,
"startIndex": 7745,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 7745
},
{
"endIndex": 7749,
"paragraph": {
"elements": [
{
"endIndex": 7747,
"inlineObjectElement": {
"inlineObjectId": "kix.q6qr0div57d4",
"textStyle": {}
},
"startIndex": 7746
},
{
"endIndex": 7749,
"startIndex": 7747,
"textRun": {
"content": " \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 7746
},
{
"endIndex": 7750,
"paragraph": {
"elements": [
{
"endIndex": 7750,
"startIndex": 7749,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 7749
},
{
"endIndex": 8063,
"paragraph": {
"elements": [
{
"endIndex": 7783,
"startIndex": 7750,
"textRun": {
"content": "In Xcodeβs folder structure, the ",
"textStyle": {}
}
},
{
"endIndex": 7797,
"startIndex": 7783,
"textRun": {
"content": "Runner project",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 7821,
"startIndex": 7797,
"textRun": {
"content": " is at the top, and the ",
"textStyle": {}
}
},
{
"endIndex": 7828,
"startIndex": 7821,
"textRun": {
"content": "Flutter",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 7830,
"startIndex": 7828,
"textRun": {
"content": ", ",
"textStyle": {}
}
},
{
"endIndex": 7836,
"startIndex": 7830,
"textRun": {
"content": "Runner",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 7842,
"startIndex": 7836,
"textRun": {
"content": ", and ",
"textStyle": {}
}
},
{
"endIndex": 7850,
"startIndex": 7842,
"textRun": {
"content": "Products",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 7904,
"startIndex": 7850,
"textRun": {
"content": " targets are beneath the Runner project. Double-click ",
"textStyle": {}
}
},
{
"endIndex": 7910,
"startIndex": 7904,
"textRun": {
"content": "Runner",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 7952,
"startIndex": 7910,
"textRun": {
"content": " to edit your project settings, and click ",
"textStyle": {}
}
},
{
"endIndex": 7974,
"startIndex": 7952,
"textRun": {
"content": "Signing & Capabilities",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 8022,
"startIndex": 7974,
"textRun": {
"content": ". Enter the bundle identifier youβve just chosen",
"textStyle": {}
}
},
{
"endIndex": 8033,
"startIndex": 8022,
"textRun": {
"content": " under the ",
"textStyle": {}
}
},
{
"endIndex": 8037,
"startIndex": 8033,
"textRun": {
"content": "Team",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 8046,
"startIndex": 8037,
"textRun": {
"content": " field to",
"textStyle": {}
}
},
{
"endIndex": 8063,
"startIndex": 8046,
"textRun": {
"content": " set your team. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 7750
},
{
"endIndex": 8064,
"paragraph": {
"elements": [
{
"endIndex": 8064,
"startIndex": 8063,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8063
},
{
"endIndex": 8066,
"paragraph": {
"elements": [
{
"endIndex": 8065,
"inlineObjectElement": {
"inlineObjectId": "kix.8o06if5zrj4p",
"textStyle": {}
},
"startIndex": 8064
},
{
"endIndex": 8066,
"startIndex": 8065,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8064
},
{
"endIndex": 8067,
"paragraph": {
"elements": [
{
"endIndex": 8067,
"startIndex": 8066,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8066
},
{
"endIndex": 8545,
"paragraph": {
"elements": [
{
"endIndex": 8180,
"startIndex": 8067,
"textRun": {
"content": "You can now close Xcode and go back to Android Studio to finish the configuration for Android. To do so open the ",
"textStyle": {}
}
},
{
"endIndex": 8192,
"startIndex": 8180,
"textRun": {
"content": "build.gradle",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 8204,
"startIndex": 8192,
"textRun": {
"content": " file under ",
"textStyle": {}
}
},
{
"endIndex": 8215,
"startIndex": 8204,
"textRun": {
"content": "android/app",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 8216,
"startIndex": 8215,
"textRun": {
"content": ",",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
},
{
"endIndex": 8233,
"startIndex": 8216,
"textRun": {
"content": " and change your ",
"textStyle": {}
}
},
{
"endIndex": 8246,
"startIndex": 8233,
"textRun": {
"content": "applicationId",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 8346,
"startIndex": 8246,
"textRun": {
"content": " (on line 37 in the screenshot below) to the application ID, the same as the iOS bundle identifier.",
"textStyle": {}
}
},
{
"endIndex": 8545,
"startIndex": 8346,
"textRun": {
"content": " Note that the IDs for the iOS and Android stores donβt have to be identical, however keeping them identical is less error prone and therefore in this codelab we will also use identical identifiers.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8067
},
{
"endIndex": 8546,
"paragraph": {
"elements": [
{
"endIndex": 8546,
"startIndex": 8545,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8545
},
{
"endIndex": 8548,
"paragraph": {
"elements": [
{
"endIndex": 8547,
"inlineObjectElement": {
"inlineObjectId": "kix.mz7oj06j8ynp",
"textStyle": {}
},
"startIndex": 8546
},
{
"endIndex": 8548,
"startIndex": 8547,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8546
},
{
"endIndex": 8549,
"paragraph": {
"elements": [
{
"endIndex": 8549,
"startIndex": 8548,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8548
},
{
"endIndex": 8550,
"paragraph": {
"elements": [
{
"endIndex": 8550,
"startIndex": 8549,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8549
},
{
"endIndex": 8551,
"paragraph": {
"elements": [
{
"endIndex": 8551,
"startIndex": 8550,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8550
},
{
"endIndex": 8552,
"paragraph": {
"elements": [
{
"endIndex": 8552,
"startIndex": 8551,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8551
},
{
"endIndex": 8553,
"paragraph": {
"elements": [
{
"endIndex": 8553,
"startIndex": 8552,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8552
},
{
"endIndex": 8554,
"paragraph": {
"elements": [
{
"endIndex": 8554,
"startIndex": 8553,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 8553
},
{
"endIndex": 8556,
"paragraph": {
"elements": [
{
"endIndex": 8555,
"pageBreak": {
"textStyle": {}
},
"startIndex": 8554
},
{
"endIndex": 8556,
"startIndex": 8555,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ldu04snwnjcy",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 8554
},
{
"endIndex": 8575,
"paragraph": {
"elements": [
{
"endIndex": 8575,
"startIndex": 8556,
"textRun": {
"content": "Install the plugin\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.23gzwqcjonei",
"namedStyleType": "HEADING_1"
}
},
"startIndex": 8556
},
{
"endIndex": 8576,
"paragraph": {
"elements": [
{
"endIndex": 8576,
"startIndex": 8575,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 8575
},
{
"endIndex": 8647,
"paragraph": {
"elements": [
{
"endIndex": 8647,
"startIndex": 8576,
"textRun": {
"content": "In this part of the codelab youβll install the in_app_purchase plugin.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 8576
},
{
"endIndex": 8673,
"paragraph": {
"elements": [
{
"endIndex": 8673,
"startIndex": 8647,
"textRun": {
"content": "Add dependency in pubspec\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.va9fr09ola34",
"namedStyleType": "HEADING_2"
}
},
"startIndex": 8647
},
{
"endIndex": 8674,
"paragraph": {
"elements": [
{
"endIndex": 8674,
"startIndex": 8673,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 8673
},
{
"endIndex": 8773,
"paragraph": {
"elements": [
{
"endIndex": 8678,
"startIndex": 8674,
"textRun": {
"content": "Add ",
"textStyle": {}
}
},
{
"endIndex": 8693,
"startIndex": 8678,
"textRun": {
"content": "in_app_purchase",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 8719,
"startIndex": 8693,
"textRun": {
"content": " to the pubspec by adding ",
"textStyle": {}
}
},
{
"endIndex": 8734,
"startIndex": 8719,
"textRun": {
"content": "in_app_purchase",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 8773,
"startIndex": 8734,
"textRun": {
"content": " to the dependencies in your pubspec: \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 8674
},
{
"endIndex": 8774,
"paragraph": {
"elements": [
{
"endIndex": 8774,
"startIndex": 8773,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 8773
},
{
"endIndex": 8821,
"startIndex": 8774,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 8820,
"startIndex": 8775,
"tableCells": [
{
"content": [
{
"endIndex": 8786,
"paragraph": {
"elements": [
{
"endIndex": 8786,
"startIndex": 8777,
"textRun": {
"content": "$ cd app\n",
"textStyle": {
"fontSize": {
"magnitude": 12.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 8777
},
{
"endIndex": 8820,
"paragraph": {
"elements": [
{
"endIndex": 8820,
"startIndex": 8786,
"textRun": {
"content": "$ flutter pub add in_app_purchase\n",
"textStyle": {
"fontSize": {
"magnitude": 12.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 8786
}
],
"endIndex": 8820,
"startIndex": 8776,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 8822,
"paragraph": {
"elements": [
{
"endIndex": 8822,
"startIndex": 8821,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 8821
},
{
"endIndex": 8835,
"paragraph": {
"elements": [
{
"endIndex": 8834,
"startIndex": 8822,
"textRun": {
"content": "pubspec.yaml",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_07/app/pubspec.yaml#L23-L29"
},
"underline": true
}
}
},
{
"endIndex": 8835,
"startIndex": 8834,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.5k996sxdajot",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 8822
},
{
"endIndex": 9039,
"startIndex": 8835,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 9038,
"startIndex": 8836,
"tableCells": [
{
"content": [
{
"endIndex": 8852,
"paragraph": {
"elements": [
{
"endIndex": 8852,
"startIndex": 8838,
"textRun": {
"content": "dependencies:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 8838
},
{
"endIndex": 8857,
"paragraph": {
"elements": [
{
"endIndex": 8857,
"startIndex": 8852,
"textRun": {
"content": " ..\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 8852
},
{
"endIndex": 8883,
"paragraph": {
"elements": [
{
"endIndex": 8883,
"startIndex": 8857,
"textRun": {
"content": " cloud_firestore: ^4.0.3\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 8857
},
{
"endIndex": 8907,
"paragraph": {
"elements": [
{
"endIndex": 8907,
"startIndex": 8883,
"textRun": {
"content": " firebase_auth: ^4.2.2\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 8883
},
{
"endIndex": 8931,
"paragraph": {
"elements": [
{
"endIndex": 8931,
"startIndex": 8907,
"textRun": {
"content": " firebase_core: ^2.5.0\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 8907
},
{
"endIndex": 8956,
"paragraph": {
"elements": [
{
"endIndex": 8956,
"startIndex": 8931,
"textRun": {
"content": " google_sign_in: ^6.0.1\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 8931
},
{
"endIndex": 8972,
"paragraph": {
"elements": [
{
"endIndex": 8972,
"startIndex": 8956,
"textRun": {
"content": " http: ^0.13.4\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 8956
},
{
"endIndex": 8998,
"paragraph": {
"elements": [
{
"endIndex": 8998,
"startIndex": 8972,
"textRun": {
"content": " in_app_purchase: ^3.0.1\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 8972
},
{
"endIndex": 9014,
"paragraph": {
"elements": [
{
"endIndex": 9014,
"startIndex": 8998,
"textRun": {
"content": " intl: ^0.18.0\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 8998
},
{
"endIndex": 9033,
"paragraph": {
"elements": [
{
"endIndex": 9033,
"startIndex": 9014,
"textRun": {
"content": " provider: ^6.0.2\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 9014
},
{
"endIndex": 9038,
"paragraph": {
"elements": [
{
"endIndex": 9038,
"startIndex": 9033,
"textRun": {
"content": " ..\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 9033
}
],
"endIndex": 9038,
"startIndex": 8837,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 9040,
"paragraph": {
"elements": [
{
"endIndex": 9040,
"startIndex": 9039,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 9039
},
{
"endIndex": 9123,
"paragraph": {
"elements": [
{
"endIndex": 9046,
"startIndex": 9040,
"textRun": {
"content": "Click ",
"textStyle": {}
}
},
{
"endIndex": 9053,
"startIndex": 9046,
"textRun": {
"content": "pub get",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 9085,
"startIndex": 9053,
"textRun": {
"content": " to download the package or run ",
"textStyle": {}
}
},
{
"endIndex": 9100,
"startIndex": 9085,
"textRun": {
"content": "flutter pub get",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 9121,
"startIndex": 9100,
"textRun": {
"content": " in the command line.",
"textStyle": {}
}
},
{
"endIndex": 9122,
"pageBreak": {
"textStyle": {}
},
"startIndex": 9121
},
{
"endIndex": 9123,
"startIndex": 9122,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 9040
},
{
"endIndex": 9144,
"paragraph": {
"elements": [
{
"endIndex": 9144,
"startIndex": 9123,
"textRun": {
"content": "Set up the App Store\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.qrnxh16sdve",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 9123
},
{
"endIndex": 9145,
"paragraph": {
"elements": [
{
"endIndex": 9145,
"startIndex": 9144,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 9144
},
{
"endIndex": 9454,
"paragraph": {
"elements": [
{
"endIndex": 9415,
"startIndex": 9145,
"textRun": {
"content": "To set up in-app purchases and test them on iOS, you need to create a new app in the App Store and create purchasable products there. You donβt have to publish anything or send the app to Apple for review. You need a developer account to do this. If you donβt have one, ",
"textStyle": {}
}
},
{
"endIndex": 9452,
"startIndex": 9415,
"textRun": {
"content": "enroll in the Apple developer program",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://developer.apple.com/programs/enroll/"
},
"underline": true
}
}
},
{
"endIndex": 9454,
"startIndex": 9452,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 9145
},
{
"endIndex": 9475,
"paragraph": {
"elements": [
{
"endIndex": 9475,
"startIndex": 9454,
"textRun": {
"content": "Paid Apps Agreements\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ry9305h98tp",
"namedStyleType": "HEADING_2"
}
},
"startIndex": 9454
},
{
"endIndex": 9476,
"paragraph": {
"elements": [
{
"endIndex": 9476,
"startIndex": 9475,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 9475
},
{
"endIndex": 9661,
"paragraph": {
"elements": [
{
"endIndex": 9585,
"startIndex": 9476,
"textRun": {
"content": "To use in-app purchases, you also need to have an active agreement for paid apps in App Store Connect. Go to ",
"textStyle": {}
}
},
{
"endIndex": 9619,
"startIndex": 9585,
"textRun": {
"content": "https://appstoreconnect.apple.com/",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://appstoreconnect.apple.com/"
},
"underline": true
}
}
},
{
"endIndex": 9620,
"startIndex": 9619,
"textRun": {
"content": ",",
"textStyle": {}
}
},
{
"endIndex": 9631,
"startIndex": 9620,
"textRun": {
"content": " and click ",
"textStyle": {}
}
},
{
"endIndex": 9659,
"startIndex": 9631,
"textRun": {
"content": "Agreements, Tax, and Banking",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 9660,
"startIndex": 9659,
"textRun": {
"content": ".",
"textStyle": {}
}
},
{
"endIndex": 9661,
"startIndex": 9660,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 9476
},
{
"endIndex": 9662,
"paragraph": {
"elements": [
{
"endIndex": 9662,
"startIndex": 9661,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 9661
},
{
"endIndex": 9664,
"paragraph": {
"elements": [
{
"endIndex": 9663,
"inlineObjectElement": {
"inlineObjectId": "kix.bezjpjdxf6ua",
"textStyle": {}
},
"startIndex": 9662
},
{
"endIndex": 9664,
"startIndex": 9663,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 9662
},
{
"endIndex": 9665,
"paragraph": {
"elements": [
{
"endIndex": 9665,
"startIndex": 9664,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 9664
},
{
"endIndex": 9881,
"paragraph": {
"elements": [
{
"endIndex": 9881,
"startIndex": 9665,
"textRun": {
"content": "You will see agreements here for free and paid apps. The status of free apps should be active, and the status for paid apps is new. Make sure that you view the terms, accept them, and enter all required information.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 9665
},
{
"endIndex": 9882,
"paragraph": {
"elements": [
{
"endIndex": 9882,
"startIndex": 9881,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 9881
},
{
"endIndex": 9884,
"paragraph": {
"elements": [
{
"endIndex": 9883,
"inlineObjectElement": {
"inlineObjectId": "kix.x8fkh4sa1hxv",
"textStyle": {}
},
"startIndex": 9882
},
{
"endIndex": 9884,
"startIndex": 9883,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 9882
},
{
"endIndex": 10061,
"paragraph": {
"elements": [
{
"endIndex": 10061,
"startIndex": 9884,
"textRun": {
"content": "When everything is set correctly, the status for paid apps will be active. This is very important because you wonβt be able to try in-app purchases without an active agreement.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 9884
},
{
"endIndex": 10062,
"paragraph": {
"elements": [
{
"endIndex": 10062,
"startIndex": 10061,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10061
},
{
"endIndex": 10064,
"paragraph": {
"elements": [
{
"endIndex": 10063,
"inlineObjectElement": {
"inlineObjectId": "kix.gc7gqme3obux",
"textStyle": {}
},
"startIndex": 10062
},
{
"endIndex": 10064,
"startIndex": 10063,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10062
},
{
"endIndex": 10065,
"paragraph": {
"elements": [
{
"endIndex": 10065,
"startIndex": 10064,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10064
},
{
"endIndex": 10082,
"paragraph": {
"elements": [
{
"endIndex": 10082,
"startIndex": 10065,
"textRun": {
"content": " Register App ID\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.dzz6cf94qup9",
"namedStyleType": "HEADING_2"
}
},
"startIndex": 10065
},
{
"endIndex": 10137,
"paragraph": {
"elements": [
{
"endIndex": 10137,
"startIndex": 10082,
"textRun": {
"content": "Create a new identifier in the Apple developer portal.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10082
},
{
"endIndex": 10139,
"paragraph": {
"elements": [
{
"endIndex": 10138,
"inlineObjectElement": {
"inlineObjectId": "kix.9einmm88jss2",
"textStyle": {}
},
"startIndex": 10137
},
{
"endIndex": 10139,
"startIndex": 10138,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10137
},
{
"endIndex": 10140,
"paragraph": {
"elements": [
{
"endIndex": 10140,
"startIndex": 10139,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10139
},
{
"endIndex": 10155,
"paragraph": {
"elements": [
{
"endIndex": 10155,
"startIndex": 10140,
"textRun": {
"content": "Choose App IDs\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10140
},
{
"endIndex": 10157,
"paragraph": {
"elements": [
{
"endIndex": 10156,
"inlineObjectElement": {
"inlineObjectId": "kix.m510bdgwtm2c",
"textStyle": {}
},
"startIndex": 10155
},
{
"endIndex": 10157,
"startIndex": 10156,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10155
},
{
"endIndex": 10158,
"paragraph": {
"elements": [
{
"endIndex": 10158,
"startIndex": 10157,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10157
},
{
"endIndex": 10169,
"paragraph": {
"elements": [
{
"endIndex": 10169,
"startIndex": 10158,
"textRun": {
"content": "Choose App\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10158
},
{
"endIndex": 10171,
"paragraph": {
"elements": [
{
"endIndex": 10170,
"inlineObjectElement": {
"inlineObjectId": "kix.71g2qymec6v9",
"textStyle": {}
},
"startIndex": 10169
},
{
"endIndex": 10171,
"startIndex": 10170,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10169
},
{
"endIndex": 10172,
"paragraph": {
"elements": [
{
"endIndex": 10172,
"startIndex": 10171,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10171
},
{
"endIndex": 10289,
"paragraph": {
"elements": [
{
"endIndex": 10289,
"startIndex": 10172,
"textRun": {
"content": "Provide some description and set the bundle ID to match the bundle ID to the same value as previously set in XCode. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10172
},
{
"endIndex": 10291,
"paragraph": {
"elements": [
{
"endIndex": 10290,
"inlineObjectElement": {
"inlineObjectId": "kix.ed6mdmveygi3",
"textStyle": {}
},
"startIndex": 10289
},
{
"endIndex": 10291,
"startIndex": 10290,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10289
},
{
"endIndex": 10292,
"paragraph": {
"elements": [
{
"endIndex": 10292,
"startIndex": 10291,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10291
},
{
"endIndex": 10377,
"paragraph": {
"elements": [
{
"endIndex": 10352,
"startIndex": 10292,
"textRun": {
"content": "For more guidance about how to create a new app ID, see the ",
"textStyle": {}
}
},
{
"endIndex": 10374,
"startIndex": 10352,
"textRun": {
"content": "Developer Account Help",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://help.apple.com/developer-account/#/dev1b35d6f83"
},
"underline": true
}
}
},
{
"endIndex": 10377,
"startIndex": 10374,
"textRun": {
"content": " .\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10292
},
{
"endIndex": 10378,
"paragraph": {
"elements": [
{
"endIndex": 10378,
"startIndex": 10377,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10377
},
{
"endIndex": 10397,
"paragraph": {
"elements": [
{
"endIndex": 10397,
"startIndex": 10378,
"textRun": {
"content": "Creating a new app\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.vexv6ix15uw0",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 10378
},
{
"endIndex": 10398,
"paragraph": {
"elements": [
{
"endIndex": 10398,
"startIndex": 10397,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10397
},
{
"endIndex": 10473,
"paragraph": {
"elements": [
{
"endIndex": 10473,
"startIndex": 10398,
"textRun": {
"content": "Create a new app in App Store Connect with your unique bundle identifier. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10398
},
{
"endIndex": 10475,
"paragraph": {
"elements": [
{
"endIndex": 10474,
"inlineObjectElement": {
"inlineObjectId": "kix.qmpm4klwgkv8",
"textStyle": {}
},
"startIndex": 10473
},
{
"endIndex": 10475,
"startIndex": 10474,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10473
},
{
"endIndex": 10477,
"paragraph": {
"elements": [
{
"endIndex": 10476,
"inlineObjectElement": {
"inlineObjectId": "kix.wz46ijx4irp7",
"textStyle": {}
},
"startIndex": 10475
},
{
"endIndex": 10477,
"startIndex": 10476,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10475
},
{
"endIndex": 10478,
"paragraph": {
"elements": [
{
"endIndex": 10478,
"startIndex": 10477,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10477
},
{
"endIndex": 10479,
"paragraph": {
"elements": [
{
"endIndex": 10479,
"startIndex": 10478,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10478
},
{
"endIndex": 10582,
"paragraph": {
"elements": [
{
"endIndex": 10558,
"startIndex": 10479,
"textRun": {
"content": "For more guidance about how to create a new app and manage agreements, see the ",
"textStyle": {}
}
},
{
"endIndex": 10580,
"startIndex": 10558,
"textRun": {
"content": "App Store Connect help",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://help.apple.com/app-store-connect/"
},
"underline": true
}
}
},
{
"endIndex": 10582,
"startIndex": 10580,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10479
},
{
"endIndex": 10583,
"paragraph": {
"elements": [
{
"endIndex": 10583,
"startIndex": 10582,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10582
},
{
"endIndex": 10936,
"paragraph": {
"elements": [
{
"endIndex": 10813,
"startIndex": 10583,
"textRun": {
"content": "To test the in-app purchases, you need a sandbox test user. This test user shouldnβt be connected to iTunesβitβs only used for testing in-app purchases. You canβt use an email address that is already used for an Apple account. In ",
"textStyle": {}
}
},
{
"endIndex": 10829,
"startIndex": 10813,
"textRun": {
"content": "Users and Access",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 10837,
"startIndex": 10829,
"textRun": {
"content": ", go to ",
"textStyle": {}
}
},
{
"endIndex": 10844,
"startIndex": 10837,
"textRun": {
"content": "Testers",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 10851,
"startIndex": 10844,
"textRun": {
"content": " under ",
"textStyle": {}
}
},
{
"endIndex": 10858,
"startIndex": 10851,
"textRun": {
"content": "Sandbox",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 10936,
"startIndex": 10858,
"textRun": {
"content": " to create a new sandbox account or to manage the existing sandbox Apple IDs.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 10583
},
{
"endIndex": 10937,
"paragraph": {
"elements": [
{
"endIndex": 10937,
"startIndex": 10936,
"textRun": {
"content": "\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10936
},
{
"endIndex": 11283,
"startIndex": 10937,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 11282,
"startIndex": 10938,
"tableCells": [
{
"content": [
{
"endIndex": 11282,
"paragraph": {
"elements": [
{
"endIndex": 10946,
"startIndex": 10940,
"textRun": {
"content": "Note: ",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 11049,
"startIndex": 10946,
"textRun": {
"content": "If you are using a Gmail account you can create a task-specific email address. For example, if you own ",
"textStyle": {}
}
},
{
"endIndex": 11062,
"startIndex": 11049,
"textRun": {
"content": "[email protected]",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "mailto:[email protected]"
},
"underline": true
}
}
},
{
"endIndex": 11115,
"startIndex": 11062,
"textRun": {
"content": " you can create an account with the following e-mail ",
"textStyle": {}
}
},
{
"endIndex": 11136,
"startIndex": 11115,
"textRun": {
"content": "[email protected]",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "mailto:[email protected]"
},
"underline": true
}
}
},
{
"endIndex": 11191,
"startIndex": 11136,
"textRun": {
"content": ". The email for this account will still be received in ",
"textStyle": {}
}
},
{
"endIndex": 11204,
"startIndex": 11191,
"textRun": {
"content": "[email protected]",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "mailto:[email protected]"
},
"underline": true
}
}
},
{
"endIndex": 11248,
"startIndex": 11204,
"textRun": {
"content": " inbox. You can read more about this in the ",
"textStyle": {}
}
},
{
"endIndex": 11280,
"startIndex": 11248,
"textRun": {
"content": "Google Workspace Learning Center",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://support.google.com/a/users/answer/9308648"
},
"underline": true
}
}
},
{
"endIndex": 11282,
"startIndex": 11280,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 10940
}
],
"endIndex": 11282,
"startIndex": 10939,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.827451,
"green": 0.91764706,
"red": 0.8509804
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"magnitude": 68.25,
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 11284,
"paragraph": {
"elements": [
{
"endIndex": 11284,
"startIndex": 11283,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11283
},
{
"endIndex": 11286,
"paragraph": {
"elements": [
{
"endIndex": 11285,
"inlineObjectElement": {
"inlineObjectId": "kix.qu1stbpqly5r",
"textStyle": {}
},
"startIndex": 11284
},
{
"endIndex": 11286,
"startIndex": 11285,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11284
},
{
"endIndex": 11390,
"paragraph": {
"elements": [
{
"endIndex": 11350,
"startIndex": 11286,
"textRun": {
"content": "Now you can set up your sandbox user on your iPhone by going to ",
"textStyle": {}
}
},
{
"endIndex": 11390,
"startIndex": 11350,
"textRun": {
"content": "Settings > App Store > Sandbox-account.\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11286
},
{
"endIndex": 11391,
"paragraph": {
"elements": [
{
"endIndex": 11391,
"startIndex": 11390,
"textRun": {
"content": "\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11390
},
{
"endIndex": 11398,
"paragraph": {
"elements": [
{
"endIndex": 11392,
"inlineObjectElement": {
"inlineObjectId": "kix.qu7litrheizj",
"textStyle": {
"bold": true
}
},
"startIndex": 11391
},
{
"endIndex": 11396,
"startIndex": 11392,
"textRun": {
"content": " ",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 11397,
"inlineObjectElement": {
"inlineObjectId": "kix.qp719ylpm6v9",
"textStyle": {
"bold": true
}
},
"startIndex": 11396
},
{
"endIndex": 11398,
"startIndex": 11397,
"textRun": {
"content": "\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11391
},
{
"endIndex": 11432,
"paragraph": {
"elements": [
{
"endIndex": 11432,
"startIndex": 11398,
"textRun": {
"content": "Configuring your in-app purchases\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.gb01agmg3h15",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 11398
},
{
"endIndex": 11433,
"paragraph": {
"elements": [
{
"endIndex": 11433,
"startIndex": 11432,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11432
},
{
"endIndex": 11483,
"paragraph": {
"elements": [
{
"endIndex": 11483,
"startIndex": 11433,
"textRun": {
"content": "Now youβll configure the three purchasable items:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11433
},
{
"endIndex": 11484,
"paragraph": {
"elements": [
{
"endIndex": 11484,
"startIndex": 11483,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11483
},
{
"endIndex": 11635,
"paragraph": {
"bullet": {
"listId": "kix.y1airoxi6fpx",
"textStyle": {}
},
"elements": [
{
"endIndex": 11502,
"startIndex": 11484,
"textRun": {
"content": "dash_consumable_2k",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 11635,
"startIndex": 11502,
"textRun": {
"content": ": A consumable purchase that can be purchased many times over, which grants the user 2000 Dashes (the in-app currency) per purchase.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 11484
},
{
"endIndex": 11780,
"paragraph": {
"bullet": {
"listId": "kix.y1airoxi6fpx",
"textStyle": {}
},
"elements": [
{
"endIndex": 11650,
"startIndex": 11635,
"textRun": {
"content": "dash_upgrade_3d",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 11780,
"startIndex": 11650,
"textRun": {
"content": ": A non-consumable βupgradeβ purchase that can only be purchased once, and gives the user a cosmetically different Dash to click.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 11635
},
{
"endIndex": 11912,
"paragraph": {
"bullet": {
"listId": "kix.y1airoxi6fpx",
"textStyle": {}
},
"elements": [
{
"endIndex": 11805,
"startIndex": 11780,
"textRun": {
"content": "dash_subscription_doubler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 11912,
"startIndex": 11805,
"textRun": {
"content": ": A subscription that grants the user twice as many Dashes per click for the duration of the subscription.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 11780
},
{
"endIndex": 11914,
"paragraph": {
"elements": [
{
"endIndex": 11913,
"inlineObjectElement": {
"inlineObjectId": "kix.yg4ec5m6jurg",
"textStyle": {}
},
"startIndex": 11912
},
{
"endIndex": 11914,
"startIndex": 11913,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11912
},
{
"endIndex": 11915,
"paragraph": {
"elements": [
{
"endIndex": 11915,
"startIndex": 11914,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11914
},
{
"endIndex": 11948,
"paragraph": {
"elements": [
{
"endIndex": 11921,
"startIndex": 11915,
"textRun": {
"content": "Go to ",
"textStyle": {}
}
},
{
"endIndex": 11946,
"startIndex": 11921,
"textRun": {
"content": "In-App Purchases > Manage",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 11948,
"startIndex": 11946,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11915
},
{
"endIndex": 12001,
"paragraph": {
"elements": [
{
"endIndex": 12001,
"startIndex": 11948,
"textRun": {
"content": "Create your in-app purchases with the specified IDs:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 11948
},
{
"endIndex": 12044,
"paragraph": {
"bullet": {
"listId": "kix.a0afkqdhia6w",
"nestingLevel": 1,
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 12008,
"startIndex": 12001,
"textRun": {
"content": "Set up ",
"textStyle": {}
}
},
{
"endIndex": 12026,
"startIndex": 12008,
"textRun": {
"content": "dash_consumable_2k",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 12032,
"startIndex": 12026,
"textRun": {
"content": " as a ",
"textStyle": {}
}
},
{
"endIndex": 12042,
"startIndex": 12032,
"textRun": {
"content": "Consumable",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 12044,
"startIndex": 12042,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 12001
},
{
"endIndex": 12303,
"paragraph": {
"elements": [
{
"endIndex": 12048,
"startIndex": 12044,
"textRun": {
"content": "Use ",
"textStyle": {}
}
},
{
"endIndex": 12066,
"startIndex": 12048,
"textRun": {
"content": "dash_consumable_2k",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 12067,
"startIndex": 12066,
"textRun": {
"content": " ",
"textStyle": {}
}
},
{
"endIndex": 12155,
"startIndex": 12067,
"textRun": {
"content": "as the Product ID. The reference name is only used in app store connect, just set it to ",
"textStyle": {}
}
},
{
"endIndex": 12173,
"startIndex": 12155,
"textRun": {
"content": "dash consumable 2k",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 12237,
"startIndex": 12173,
"textRun": {
"content": " and add your localizations for the purchase. Call the purchase ",
"textStyle": {}
}
},
{
"endIndex": 12257,
"startIndex": 12237,
"textRun": {
"content": "Spring is in the air",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 12263,
"startIndex": 12257,
"textRun": {
"content": " with ",
"textStyle": {}
}
},
{
"endIndex": 12282,
"startIndex": 12263,
"textRun": {
"content": "2000 dashes fly out",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 12301,
"startIndex": 12282,
"textRun": {
"content": " as the description",
"textStyle": {}
}
},
{
"endIndex": 12303,
"startIndex": 12301,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 12044
},
{
"endIndex": 12305,
"paragraph": {
"elements": [
{
"endIndex": 12304,
"inlineObjectElement": {
"inlineObjectId": "kix.5vhpoytm1398",
"textStyle": {}
},
"startIndex": 12303
},
{
"endIndex": 12305,
"startIndex": 12304,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 12303
},
{
"endIndex": 12349,
"paragraph": {
"bullet": {
"listId": "kix.a0afkqdhia6w",
"nestingLevel": 1,
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 12312,
"startIndex": 12305,
"textRun": {
"content": "Set up ",
"textStyle": {}
}
},
{
"endIndex": 12327,
"startIndex": 12312,
"textRun": {
"content": "dash_upgrade_3d",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 12333,
"startIndex": 12327,
"textRun": {
"content": " as a ",
"textStyle": {}
}
},
{
"endIndex": 12347,
"startIndex": 12333,
"textRun": {
"content": "Non-consumable",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 12349,
"startIndex": 12347,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 12305
},
{
"endIndex": 12562,
"paragraph": {
"elements": [
{
"endIndex": 12353,
"startIndex": 12349,
"textRun": {
"content": "Use ",
"textStyle": {}
}
},
{
"endIndex": 12368,
"startIndex": 12353,
"textRun": {
"content": "dash_upgrade_3d",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 12414,
"startIndex": 12368,
"textRun": {
"content": " as the Product ID. Set the reference name to ",
"textStyle": {}
}
},
{
"endIndex": 12429,
"startIndex": 12414,
"textRun": {
"content": "dash upgrade 3d",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 12493,
"startIndex": 12429,
"textRun": {
"content": " and add your localizations for the purchase. Call the purchase ",
"textStyle": {}
}
},
{
"endIndex": 12500,
"startIndex": 12493,
"textRun": {
"content": "3D Dash",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 12506,
"startIndex": 12500,
"textRun": {
"content": " with ",
"textStyle": {}
}
},
{
"endIndex": 12541,
"startIndex": 12506,
"textRun": {
"content": "Brings your dash back to the future",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 12561,
"startIndex": 12541,
"textRun": {
"content": " as the description.",
"textStyle": {}
}
},
{
"endIndex": 12562,
"startIndex": 12561,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 12349
},
{
"endIndex": 12564,
"paragraph": {
"elements": [
{
"endIndex": 12563,
"inlineObjectElement": {
"inlineObjectId": "kix.6pb13kk3wfit",
"textStyle": {}
},
"startIndex": 12562
},
{
"endIndex": 12564,
"startIndex": 12563,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 12562
},
{
"endIndex": 12631,
"paragraph": {
"bullet": {
"listId": "kix.a0afkqdhia6w",
"nestingLevel": 1,
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 12571,
"startIndex": 12564,
"textRun": {
"content": "Set up ",
"textStyle": {}
}
},
{
"endIndex": 12596,
"startIndex": 12571,
"textRun": {
"content": "dash_subscription_doubler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 12603,
"startIndex": 12596,
"textRun": {
"content": " as an ",
"textStyle": {}
}
},
{
"endIndex": 12629,
"startIndex": 12603,
"textRun": {
"content": "Auto-renewing subscription",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 12631,
"startIndex": 12629,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 12564
},
{
"endIndex": 12738,
"paragraph": {
"elements": [
{
"endIndex": 12738,
"startIndex": 12631,
"textRun": {
"content": "The flow for subscriptions is a bit different. First youβll have to set the Reference Name and Product ID:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 12631
},
{
"endIndex": 12740,
"paragraph": {
"elements": [
{
"endIndex": 12739,
"inlineObjectElement": {
"inlineObjectId": "kix.1ewb15mdsw1y",
"textStyle": {}
},
"startIndex": 12738
},
{
"endIndex": 12740,
"startIndex": 12739,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 12738
},
{
"endIndex": 13004,
"paragraph": {
"elements": [
{
"endIndex": 12989,
"startIndex": 12740,
"textRun": {
"content": "Next, you have to create a subscription group. When multiple subscriptions are part of the same group, a user can only subscribe to one of these at the same time, but can easily upgrade or downgrade between these subscriptions. Just call this group ",
"textStyle": {}
}
},
{
"endIndex": 13002,
"startIndex": 12989,
"textRun": {
"content": "subscriptions",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 13004,
"startIndex": 13002,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 12740
},
{
"endIndex": 13006,
"paragraph": {
"elements": [
{
"endIndex": 13005,
"inlineObjectElement": {
"inlineObjectId": "kix.chh2m1xhxh1i",
"textStyle": {}
},
"startIndex": 13004
},
{
"endIndex": 13006,
"startIndex": 13005,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13004
},
{
"endIndex": 13156,
"paragraph": {
"elements": [
{
"endIndex": 13090,
"startIndex": 13006,
"textRun": {
"content": "Next, enter the subscription duration and the localizations. Name this subscription ",
"textStyle": {}
}
},
{
"endIndex": 13100,
"startIndex": 13090,
"textRun": {
"content": "Jet Engine",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 13122,
"startIndex": 13100,
"textRun": {
"content": " with the description ",
"textStyle": {}
}
},
{
"endIndex": 13141,
"startIndex": 13122,
"textRun": {
"content": "Doubles your clicks",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 13150,
"startIndex": 13141,
"textRun": {
"content": ". Click ",
"textStyle": {}
}
},
{
"endIndex": 13154,
"startIndex": 13150,
"textRun": {
"content": "Save",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 13156,
"startIndex": 13154,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13006
},
{
"endIndex": 13158,
"paragraph": {
"elements": [
{
"endIndex": 13157,
"inlineObjectElement": {
"inlineObjectId": "kix.fqpy0mh0yer0",
"textStyle": {}
},
"startIndex": 13156
},
{
"endIndex": 13158,
"startIndex": 13157,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13156
},
{
"endIndex": 13249,
"paragraph": {
"elements": [
{
"endIndex": 13183,
"startIndex": 13158,
"textRun": {
"content": "After youβve clicked the ",
"textStyle": {}
}
},
{
"endIndex": 13187,
"startIndex": 13183,
"textRun": {
"content": "Save",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 13249,
"startIndex": 13187,
"textRun": {
"content": " button, add a subscription price. Pick any price you desire.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13158
},
{
"endIndex": 13251,
"paragraph": {
"elements": [
{
"endIndex": 13250,
"inlineObjectElement": {
"inlineObjectId": "kix.v4watl264rvd",
"textStyle": {}
},
"startIndex": 13249
},
{
"endIndex": 13251,
"startIndex": 13250,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 72.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13249
},
{
"endIndex": 13316,
"paragraph": {
"elements": [
{
"endIndex": 13316,
"startIndex": 13251,
"textRun": {
"content": "You should now see the three purchases in the list of purchases:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13251
},
{
"endIndex": 13318,
"paragraph": {
"elements": [
{
"endIndex": 13317,
"inlineObjectElement": {
"inlineObjectId": "kix.ln0fxrlkwddc",
"textStyle": {}
},
"startIndex": 13316
},
{
"endIndex": 13318,
"startIndex": 13317,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13316
},
{
"endIndex": 13319,
"paragraph": {
"elements": [
{
"endIndex": 13319,
"startIndex": 13318,
"textRun": {
"content": "\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13318
},
{
"endIndex": 13613,
"startIndex": 13319,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 13612,
"startIndex": 13320,
"tableCells": [
{
"content": [
{
"endIndex": 13612,
"paragraph": {
"elements": [
{
"endIndex": 13328,
"startIndex": 13322,
"textRun": {
"content": "Note: ",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 13408,
"startIndex": 13328,
"textRun": {
"content": "During testing, youβll use the sandbox environment so no real payments are made.",
"textStyle": {}
}
},
{
"endIndex": 13409,
"startIndex": 13408,
"textRun": {
"content": " ",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 13587,
"startIndex": 13409,
"textRun": {
"content": "The subscription period in the sandbox environment is shorter than in production. For example, 7 days will be 3 minutes, and 1 year will be 60 minutes. You can see all values in ",
"textStyle": {}
}
},
{
"endIndex": 13610,
"startIndex": 13587,
"textRun": {
"content": "the Apple documentation",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://help.apple.com/app-store-connect/#/dev7e89e149d"
},
"underline": true
}
}
},
{
"endIndex": 13611,
"startIndex": 13610,
"textRun": {
"content": ".",
"textStyle": {}
}
},
{
"endIndex": 13612,
"startIndex": 13611,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13322
}
],
"endIndex": 13612,
"startIndex": 13321,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.827451,
"green": 0.91764706,
"red": 0.8509804
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"magnitude": 85.5,
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 13614,
"paragraph": {
"elements": [
{
"endIndex": 13614,
"startIndex": 13613,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.vwqbvj2toquh",
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 120.00001,
"namedStyleType": "HEADING_3",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 14.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 4.0,
"unit": "PT"
}
}
},
"startIndex": 13613
},
{
"endIndex": 13615,
"paragraph": {
"elements": [
{
"endIndex": 13615,
"startIndex": 13614,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13614
},
{
"endIndex": 13617,
"paragraph": {
"elements": [
{
"endIndex": 13616,
"pageBreak": {
"textStyle": {}
},
"startIndex": 13615
},
{
"endIndex": 13617,
"startIndex": 13616,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.gy2vrltmxc7b",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 13615
},
{
"endIndex": 13639,
"paragraph": {
"elements": [
{
"endIndex": 13639,
"startIndex": 13617,
"textRun": {
"content": "Set up the Play Store\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.jqrw9w6jbek",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 13617
},
{
"endIndex": 13640,
"paragraph": {
"elements": [
{
"endIndex": 13640,
"startIndex": 13639,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13639
},
{
"endIndex": 13768,
"paragraph": {
"elements": [
{
"endIndex": 13747,
"startIndex": 13640,
"textRun": {
"content": "As with the App Store, youβll also need a developer account for the Play Store. If you donβt have one yet, ",
"textStyle": {}
}
},
{
"endIndex": 13766,
"startIndex": 13747,
"textRun": {
"content": "register an account",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://support.google.com/googleplay/android-developer/answer/6112435#zippy=%2Cstep-sign-up-for-a-google-play-developer-account"
},
"underline": true
}
}
},
{
"endIndex": 13768,
"startIndex": 13766,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13640
},
{
"endIndex": 13769,
"paragraph": {
"elements": [
{
"endIndex": 13769,
"startIndex": 13768,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13768
},
{
"endIndex": 13786,
"paragraph": {
"elements": [
{
"endIndex": 13786,
"startIndex": 13769,
"textRun": {
"content": "Create a new app\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.o1u6soa0az1q",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 13769
},
{
"endIndex": 13787,
"paragraph": {
"elements": [
{
"endIndex": 13787,
"startIndex": 13786,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13786
},
{
"endIndex": 13832,
"paragraph": {
"elements": [
{
"endIndex": 13832,
"startIndex": 13787,
"textRun": {
"content": "Create a new app in the Google Play Console:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13787
},
{
"endIndex": 13833,
"paragraph": {
"elements": [
{
"endIndex": 13833,
"startIndex": 13832,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13832
},
{
"endIndex": 13856,
"paragraph": {
"bullet": {
"listId": "kix.l6dfwvhprcyp",
"textStyle": {}
},
"elements": [
{
"endIndex": 13842,
"startIndex": 13833,
"textRun": {
"content": "Open the ",
"textStyle": {}
}
},
{
"endIndex": 13854,
"startIndex": 13842,
"textRun": {
"content": "Play Console",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://play.google.com/console"
},
"underline": true
}
}
},
{
"endIndex": 13856,
"startIndex": 13854,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13833
},
{
"endIndex": 13886,
"paragraph": {
"bullet": {
"listId": "kix.l6dfwvhprcyp",
"textStyle": {}
},
"elements": [
{
"endIndex": 13863,
"startIndex": 13856,
"textRun": {
"content": "Select ",
"textStyle": {}
}
},
{
"endIndex": 13886,
"startIndex": 13863,
"textRun": {
"content": "All apps > Create app.\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13856
},
{
"endIndex": 14040,
"paragraph": {
"bullet": {
"listId": "kix.l6dfwvhprcyp",
"textStyle": {}
},
"elements": [
{
"endIndex": 14040,
"startIndex": 13886,
"textRun": {
"content": "Select a default language and add a title for your app. Type the name of your app as you want it to appear on Google Play. You can change the name later.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 13886
},
{
"endIndex": 14108,
"paragraph": {
"bullet": {
"listId": "kix.l6dfwvhprcyp",
"textStyle": {}
},
"elements": [
{
"endIndex": 14108,
"startIndex": 14040,
"textRun": {
"content": "Specify that your application is a game. You can change this later.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14040
},
{
"endIndex": 14158,
"paragraph": {
"bullet": {
"listId": "kix.l6dfwvhprcyp",
"textStyle": {}
},
"elements": [
{
"endIndex": 14158,
"startIndex": 14108,
"textRun": {
"content": "Specify whether your application is free or paid.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14108
},
{
"endIndex": 14248,
"paragraph": {
"bullet": {
"listId": "kix.l6dfwvhprcyp",
"textStyle": {}
},
"elements": [
{
"endIndex": 14248,
"startIndex": 14158,
"textRun": {
"content": "Add an email address that Play Store users can use to contact you about this application.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14158
},
{
"endIndex": 14313,
"paragraph": {
"bullet": {
"listId": "kix.l6dfwvhprcyp",
"textStyle": {}
},
"elements": [
{
"endIndex": 14313,
"startIndex": 14248,
"textRun": {
"content": "Complete the Content guidelines and US export laws declarations.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14248
},
{
"endIndex": 14332,
"paragraph": {
"bullet": {
"listId": "kix.l6dfwvhprcyp",
"textStyle": {}
},
"elements": [
{
"endIndex": 14320,
"startIndex": 14313,
"textRun": {
"content": "Select ",
"textStyle": {}
}
},
{
"endIndex": 14330,
"startIndex": 14320,
"textRun": {
"content": "Create app",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 14332,
"startIndex": 14330,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14313
},
{
"endIndex": 14333,
"paragraph": {
"elements": [
{
"endIndex": 14333,
"startIndex": 14332,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14332
},
{
"endIndex": 14533,
"paragraph": {
"elements": [
{
"endIndex": 14415,
"startIndex": 14333,
"textRun": {
"content": "After your app is created, go to the dashboard, and complete all the tasks in the ",
"textStyle": {}
}
},
{
"endIndex": 14430,
"startIndex": 14415,
"textRun": {
"content": "Set up your app",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 14531,
"startIndex": 14430,
"textRun": {
"content": " section. Here, you provide some information about your app, such as content ratings and screenshots.",
"textStyle": {}
}
},
{
"endIndex": 14532,
"inlineObjectElement": {
"inlineObjectId": "kix.lkvls8vsrau2",
"textStyle": {}
},
"startIndex": 14531
},
{
"endIndex": 14533,
"startIndex": 14532,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14333
},
{
"endIndex": 14554,
"paragraph": {
"elements": [
{
"endIndex": 14554,
"startIndex": 14533,
"textRun": {
"content": "Sign the application\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.z8iwhe2sn61w",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 14533
},
{
"endIndex": 14555,
"paragraph": {
"elements": [
{
"endIndex": 14555,
"startIndex": 14554,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14554
},
{
"endIndex": 14645,
"paragraph": {
"elements": [
{
"endIndex": 14645,
"startIndex": 14555,
"textRun": {
"content": "To be able to test in-app purchases, you need at least one build uploaded to Google Play.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14555
},
{
"endIndex": 14738,
"paragraph": {
"elements": [
{
"endIndex": 14738,
"startIndex": 14645,
"textRun": {
"content": "For this, you need your release build to be signed with something other than the debug keys.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14645
},
{
"endIndex": 14756,
"paragraph": {
"elements": [
{
"endIndex": 14756,
"startIndex": 14738,
"textRun": {
"content": "Create a keystore\n",
"textStyle": {
"bold": false,
"fontSize": {
"magnitude": 13.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.2901961,
"green": 0.2901961,
"red": 0.2901961
}
}
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.rmmd9ixc2pz4",
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 120.00001,
"namedStyleType": "HEADING_3",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 14.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 4.0,
"unit": "PT"
}
}
},
"startIndex": 14738
},
{
"endIndex": 14878,
"paragraph": {
"elements": [
{
"endIndex": 14878,
"startIndex": 14756,
"textRun": {
"content": "If you have an existing keystore, skip to the next step. If not, create one by running the following at the command line.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14756
},
{
"endIndex": 14879,
"paragraph": {
"elements": [
{
"endIndex": 14879,
"startIndex": 14878,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14878
},
{
"endIndex": 14920,
"paragraph": {
"elements": [
{
"endIndex": 14920,
"startIndex": 14879,
"textRun": {
"content": "On Mac/Linux, use the following command:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14879
},
{
"endIndex": 15016,
"startIndex": 14920,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 15015,
"startIndex": 14921,
"tableCells": [
{
"content": [
{
"endIndex": 15015,
"paragraph": {
"elements": [
{
"endIndex": 15015,
"startIndex": 14923,
"textRun": {
"content": "keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 14923
}
],
"endIndex": 15015,
"startIndex": 14922,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 15056,
"paragraph": {
"elements": [
{
"endIndex": 15056,
"startIndex": 15016,
"textRun": {
"content": "\u000bOn Windows, use the following command:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 15016
},
{
"endIndex": 15184,
"startIndex": 15056,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 15183,
"startIndex": 15057,
"tableCells": [
{
"content": [
{
"endIndex": 15183,
"paragraph": {
"elements": [
{
"endIndex": 15183,
"startIndex": 15059,
"textRun": {
"content": "keytool -genkey -v -keystore c:\\Users\\USER_NAME\\key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias key\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 15059
}
],
"endIndex": 15183,
"startIndex": 15058,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 15185,
"paragraph": {
"elements": [
{
"endIndex": 15185,
"startIndex": 15184,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 15184
},
{
"endIndex": 15424,
"paragraph": {
"elements": [
{
"endIndex": 15209,
"startIndex": 15185,
"textRun": {
"content": "This command stores the ",
"textStyle": {}
}
},
{
"endIndex": 15216,
"startIndex": 15209,
"textRun": {
"content": "key.jks",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 15328,
"startIndex": 15216,
"textRun": {
"content": " file in your home directory. If you want to store the file elsewhere, then change the argument you pass to the ",
"textStyle": {}
}
},
{
"endIndex": 15337,
"startIndex": 15328,
"textRun": {
"content": "-keystore",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 15349,
"startIndex": 15337,
"textRun": {
"content": " parameter. ",
"textStyle": {}
}
},
{
"endIndex": 15358,
"startIndex": 15349,
"textRun": {
"content": "Keep the ",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 15366,
"startIndex": 15358,
"textRun": {
"content": "keystore",
"textStyle": {
"bold": true,
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 15424,
"startIndex": 15366,
"textRun": {
"content": " file private; donβt check it into public source control!\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 15185
},
{
"endIndex": 15425,
"paragraph": {
"elements": [
{
"endIndex": 15425,
"startIndex": 15424,
"textRun": {
"content": "\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 15424
},
{
"endIndex": 16050,
"startIndex": 15425,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 16049,
"startIndex": 15426,
"tableCells": [
{
"content": [
{
"endIndex": 15434,
"paragraph": {
"elements": [
{
"endIndex": 15434,
"startIndex": 15428,
"textRun": {
"content": "Note:\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
}
}
},
"startIndex": 15428
},
{
"endIndex": 15924,
"paragraph": {
"bullet": {
"listId": "kix.ai6cqz99fg9d",
"textStyle": {}
},
"elements": [
{
"endIndex": 15438,
"startIndex": 15434,
"textRun": {
"content": "The ",
"textStyle": {}
}
},
{
"endIndex": 15445,
"startIndex": 15438,
"textRun": {
"content": "keytool",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 15572,
"startIndex": 15445,
"textRun": {
"content": " command might not be in your pathβitβs part of Java, which is installed as part of Android Studio. For the concrete path, run ",
"textStyle": {}
}
},
{
"endIndex": 15590,
"startIndex": 15572,
"textRun": {
"content": "flutter doctor -v,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 15691,
"startIndex": 15590,
"textRun": {
"content": " and locate the path printed after βJava binary at:β. Then, use that fully qualified path, replacing ",
"textStyle": {}
}
},
{
"endIndex": 15695,
"startIndex": 15691,
"textRun": {
"content": "java",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 15714,
"startIndex": 15695,
"textRun": {
"content": " (at the end) with ",
"textStyle": {}
}
},
{
"endIndex": 15721,
"startIndex": 15714,
"textRun": {
"content": "keytool",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 15776,
"startIndex": 15721,
"textRun": {
"content": ". If your path includes space-separated names, such as ",
"textStyle": {}
}
},
{
"endIndex": 15789,
"startIndex": 15776,
"textRun": {
"content": "Program Files",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 15871,
"startIndex": 15789,
"textRun": {
"content": ", use platform-appropriate notation for the names. For example, on Mac/Linux, use ",
"textStyle": {}
}
},
{
"endIndex": 15885,
"startIndex": 15871,
"textRun": {
"content": "Program\\ Files",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 15906,
"startIndex": 15885,
"textRun": {
"content": ", and on Windows use ",
"textStyle": {}
}
},
{
"endIndex": 15921,
"startIndex": 15906,
"textRun": {
"content": "\"Program Files\"",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 15924,
"startIndex": 15921,
"textRun": {
"content": ".\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 15434
},
{
"endIndex": 16049,
"paragraph": {
"bullet": {
"listId": "kix.3knqjs5j3c0a",
"textStyle": {}
},
"elements": [
{
"endIndex": 15928,
"startIndex": 15924,
"textRun": {
"content": "The ",
"textStyle": {}
}
},
{
"endIndex": 15942,
"startIndex": 15928,
"textRun": {
"content": "-storetype JKS",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 16049,
"startIndex": 15942,
"textRun": {
"content": " tag is only required for Java 9 or later. As of the Java 9 release, the keystore type defaults to PKCS12.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 15924
}
],
"endIndex": 16049,
"startIndex": 15427,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.827451,
"green": 0.91764706,
"red": 0.8509804
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"magnitude": 143.59082031249997,
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 16086,
"paragraph": {
"elements": [
{
"endIndex": 16086,
"startIndex": 16050,
"textRun": {
"content": "Reference the keystore from the app\n",
"textStyle": {
"bold": false,
"fontSize": {
"magnitude": 13.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.2901961,
"green": 0.2901961,
"red": 0.2901961
}
}
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.n6xp5o4jc4k9",
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 120.00001,
"namedStyleType": "HEADING_3",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 14.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 4.0,
"unit": "PT"
}
}
},
"startIndex": 16050
},
{
"endIndex": 16188,
"paragraph": {
"elements": [
{
"endIndex": 16106,
"startIndex": 16086,
"textRun": {
"content": "Create a file named ",
"textStyle": {}
}
},
{
"endIndex": 16143,
"startIndex": 16106,
"textRun": {
"content": "<your app dir>/android/key.properties",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 16188,
"startIndex": 16143,
"textRun": {
"content": " that contains a reference to your keystore:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 16086
},
{
"endIndex": 16370,
"startIndex": 16188,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 16369,
"startIndex": 16189,
"tableCells": [
{
"content": [
{
"endIndex": 16235,
"paragraph": {
"elements": [
{
"endIndex": 16235,
"startIndex": 16191,
"textRun": {
"content": "storePassword=<password from previous step>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16191
},
{
"endIndex": 16277,
"paragraph": {
"elements": [
{
"endIndex": 16277,
"startIndex": 16235,
"textRun": {
"content": "keyPassword=<password from previous step>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16235
},
{
"endIndex": 16290,
"paragraph": {
"elements": [
{
"endIndex": 16290,
"startIndex": 16277,
"textRun": {
"content": "keyAlias=key\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16277
},
{
"endIndex": 16369,
"paragraph": {
"elements": [
{
"endIndex": 16369,
"startIndex": 16290,
"textRun": {
"content": "storeFile=<location of the key store file, such as /Users/<user name>/key.jks>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16290
}
],
"endIndex": 16369,
"startIndex": 16190,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 16371,
"paragraph": {
"elements": [
{
"endIndex": 16371,
"startIndex": 16370,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 16370
},
{
"endIndex": 16466,
"startIndex": 16371,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 16465,
"startIndex": 16372,
"tableCells": [
{
"content": [
{
"endIndex": 16465,
"paragraph": {
"elements": [
{
"endIndex": 16382,
"startIndex": 16374,
"textRun": {
"content": " Warning",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 16393,
"startIndex": 16382,
"textRun": {
"content": ": Keep the ",
"textStyle": {}
}
},
{
"endIndex": 16407,
"startIndex": 16393,
"textRun": {
"content": "key.properties",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 16465,
"startIndex": 16407,
"textRun": {
"content": " file private; donβt check it into public source control.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16374
}
],
"endIndex": 16465,
"startIndex": 16373,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.8039216,
"green": 0.8980392,
"red": 0.9882353
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 16494,
"paragraph": {
"elements": [
{
"endIndex": 16494,
"startIndex": 16466,
"textRun": {
"content": "Configure signing in Gradle\n",
"textStyle": {
"bold": false,
"fontSize": {
"magnitude": 13.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.2901961,
"green": 0.2901961,
"red": 0.2901961
}
}
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.2vb42m8xb3no",
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 120.00001,
"namedStyleType": "HEADING_3",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 14.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 4.0,
"unit": "PT"
}
}
},
"startIndex": 16466
},
{
"endIndex": 16586,
"paragraph": {
"elements": [
{
"endIndex": 16540,
"startIndex": 16494,
"textRun": {
"content": "Configure signing for your app by editing the ",
"textStyle": {}
}
},
{
"endIndex": 16579,
"startIndex": 16540,
"textRun": {
"content": "<your app dir>/android/app/build.gradle",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 16586,
"startIndex": 16579,
"textRun": {
"content": " file.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 16494
},
{
"endIndex": 16587,
"paragraph": {
"elements": [
{
"endIndex": 16587,
"startIndex": 16586,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 16586
},
{
"endIndex": 16668,
"paragraph": {
"elements": [
{
"endIndex": 16653,
"startIndex": 16587,
"textRun": {
"content": "Add the keystore information from your properties file before the ",
"textStyle": {}
}
},
{
"endIndex": 16660,
"startIndex": 16653,
"textRun": {
"content": "android",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 16668,
"startIndex": 16660,
"textRun": {
"content": " block:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 16587
},
{
"endIndex": 16669,
"paragraph": {
"elements": [
{
"endIndex": 16669,
"startIndex": 16668,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 16668
},
{
"endIndex": 16947,
"startIndex": 16669,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 16946,
"startIndex": 16670,
"tableCells": [
{
"content": [
{
"endIndex": 16717,
"paragraph": {
"elements": [
{
"endIndex": 16717,
"startIndex": 16672,
"textRun": {
"content": " def keystoreProperties = new Properties()\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16672
},
{
"endIndex": 16784,
"paragraph": {
"elements": [
{
"endIndex": 16784,
"startIndex": 16717,
"textRun": {
"content": " def keystorePropertiesFile = rootProject.file('key.properties')\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16717
},
{
"endIndex": 16826,
"paragraph": {
"elements": [
{
"endIndex": 16826,
"startIndex": 16784,
"textRun": {
"content": " if (keystorePropertiesFile.exists()) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16784
},
{
"endIndex": 16902,
"paragraph": {
"elements": [
{
"endIndex": 16902,
"startIndex": 16826,
"textRun": {
"content": " keystoreProperties.load(new FileInputStream(keystorePropertiesFile))\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16826
},
{
"endIndex": 16907,
"paragraph": {
"elements": [
{
"endIndex": 16907,
"startIndex": 16902,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16902
},
{
"endIndex": 16908,
"paragraph": {
"elements": [
{
"endIndex": 16908,
"startIndex": 16907,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16907
},
{
"endIndex": 16921,
"paragraph": {
"elements": [
{
"endIndex": 16921,
"startIndex": 16908,
"textRun": {
"content": " android {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16908
},
{
"endIndex": 16941,
"paragraph": {
"elements": [
{
"endIndex": 16941,
"startIndex": 16921,
"textRun": {
"content": " // omitted\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16921
},
{
"endIndex": 16946,
"paragraph": {
"elements": [
{
"endIndex": 16945,
"startIndex": 16941,
"textRun": {
"content": " }",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 16946,
"startIndex": 16945,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 16941
}
],
"endIndex": 16946,
"startIndex": 16671,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 16948,
"paragraph": {
"elements": [
{
"endIndex": 16948,
"startIndex": 16947,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 16947
},
{
"endIndex": 17013,
"paragraph": {
"elements": [
{
"endIndex": 16957,
"startIndex": 16948,
"textRun": {
"content": "Load the ",
"textStyle": {}
}
},
{
"endIndex": 16971,
"startIndex": 16957,
"textRun": {
"content": "key.properties",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 16986,
"startIndex": 16971,
"textRun": {
"content": " file into the ",
"textStyle": {}
}
},
{
"endIndex": 17004,
"startIndex": 16986,
"textRun": {
"content": "keystoreProperties",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 17013,
"startIndex": 17004,
"textRun": {
"content": " object.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 16948
},
{
"endIndex": 17014,
"paragraph": {
"elements": [
{
"endIndex": 17014,
"startIndex": 17013,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 17013
},
{
"endIndex": 17067,
"paragraph": {
"elements": [
{
"endIndex": 17049,
"startIndex": 17014,
"textRun": {
"content": "Add the following code before the ",
"textStyle": {}
}
},
{
"endIndex": 17059,
"startIndex": 17049,
"textRun": {
"content": "buildTypes",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 17067,
"startIndex": 17059,
"textRun": {
"content": " block:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 17014
},
{
"endIndex": 17068,
"paragraph": {
"elements": [
{
"endIndex": 17068,
"startIndex": 17067,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 17067
},
{
"endIndex": 17335,
"startIndex": 17068,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 17334,
"startIndex": 17069,
"tableCells": [
{
"content": [
{
"endIndex": 17087,
"paragraph": {
"elements": [
{
"endIndex": 17087,
"startIndex": 17071,
"textRun": {
"content": " buildTypes {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17071
},
{
"endIndex": 17104,
"paragraph": {
"elements": [
{
"endIndex": 17104,
"startIndex": 17087,
"textRun": {
"content": " release {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17087
},
{
"endIndex": 17175,
"paragraph": {
"elements": [
{
"endIndex": 17175,
"startIndex": 17104,
"textRun": {
"content": " // TODO: Add your own signing config for the release build.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17104
},
{
"endIndex": 17226,
"paragraph": {
"elements": [
{
"endIndex": 17226,
"startIndex": 17175,
"textRun": {
"content": " // Signing with the debug keys for now,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17175
},
{
"endIndex": 17274,
"paragraph": {
"elements": [
{
"endIndex": 17274,
"startIndex": 17226,
"textRun": {
"content": " // so `flutter run --release` works.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17226
},
{
"endIndex": 17320,
"paragraph": {
"elements": [
{
"endIndex": 17320,
"startIndex": 17274,
"textRun": {
"content": " signingConfig signingConfigs.debug\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17274
},
{
"endIndex": 17329,
"paragraph": {
"elements": [
{
"endIndex": 17329,
"startIndex": 17320,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17320
},
{
"endIndex": 17334,
"paragraph": {
"elements": [
{
"endIndex": 17333,
"startIndex": 17329,
"textRun": {
"content": " }",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 17334,
"startIndex": 17333,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17329
}
],
"endIndex": 17334,
"startIndex": 17070,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 17336,
"paragraph": {
"elements": [
{
"endIndex": 17336,
"startIndex": 17335,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 17335
},
{
"endIndex": 17450,
"paragraph": {
"elements": [
{
"endIndex": 17350,
"startIndex": 17336,
"textRun": {
"content": "Configure the ",
"textStyle": {}
}
},
{
"endIndex": 17364,
"startIndex": 17350,
"textRun": {
"content": "signingConfigs",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 17388,
"startIndex": 17364,
"textRun": {
"content": " block in your moduleβs ",
"textStyle": {}
}
},
{
"endIndex": 17400,
"startIndex": 17388,
"textRun": {
"content": "build.gradle",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 17450,
"startIndex": 17400,
"textRun": {
"content": " file with the signing configuration information:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 17336
},
{
"endIndex": 17451,
"paragraph": {
"elements": [
{
"endIndex": 17451,
"startIndex": 17450,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 17450
},
{
"endIndex": 17870,
"startIndex": 17451,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 17869,
"startIndex": 17452,
"tableCells": [
{
"content": [
{
"endIndex": 17474,
"paragraph": {
"elements": [
{
"endIndex": 17474,
"startIndex": 17454,
"textRun": {
"content": " signingConfigs {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17454
},
{
"endIndex": 17491,
"paragraph": {
"elements": [
{
"endIndex": 17491,
"startIndex": 17474,
"textRun": {
"content": " release {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17474
},
{
"endIndex": 17542,
"paragraph": {
"elements": [
{
"endIndex": 17542,
"startIndex": 17491,
"textRun": {
"content": " keyAlias keystoreProperties['keyAlias']\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17491
},
{
"endIndex": 17599,
"paragraph": {
"elements": [
{
"endIndex": 17599,
"startIndex": 17542,
"textRun": {
"content": " keyPassword keystoreProperties['keyPassword']\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17542
},
{
"endIndex": 17699,
"paragraph": {
"elements": [
{
"endIndex": 17699,
"startIndex": 17599,
"textRun": {
"content": " storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17599
},
{
"endIndex": 17760,
"paragraph": {
"elements": [
{
"endIndex": 17760,
"startIndex": 17699,
"textRun": {
"content": " storePassword keystoreProperties['storePassword']\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17699
},
{
"endIndex": 17769,
"paragraph": {
"elements": [
{
"endIndex": 17769,
"startIndex": 17760,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17760
},
{
"endIndex": 17774,
"paragraph": {
"elements": [
{
"endIndex": 17774,
"startIndex": 17769,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17769
},
{
"endIndex": 17790,
"paragraph": {
"elements": [
{
"endIndex": 17790,
"startIndex": 17774,
"textRun": {
"content": " buildTypes {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17774
},
{
"endIndex": 17807,
"paragraph": {
"elements": [
{
"endIndex": 17807,
"startIndex": 17790,
"textRun": {
"content": " release {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17790
},
{
"endIndex": 17855,
"paragraph": {
"elements": [
{
"endIndex": 17855,
"startIndex": 17807,
"textRun": {
"content": " signingConfig signingConfigs.release\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17807
},
{
"endIndex": 17864,
"paragraph": {
"elements": [
{
"endIndex": 17864,
"startIndex": 17855,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17855
},
{
"endIndex": 17869,
"paragraph": {
"elements": [
{
"endIndex": 17868,
"startIndex": 17864,
"textRun": {
"content": " }",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 17869,
"startIndex": 17868,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17864
}
],
"endIndex": 17869,
"startIndex": 17453,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 17871,
"paragraph": {
"elements": [
{
"endIndex": 17871,
"startIndex": 17870,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 17870
},
{
"endIndex": 17932,
"paragraph": {
"elements": [
{
"endIndex": 17932,
"startIndex": 17871,
"textRun": {
"content": "Release builds of your app will now be signed automatically.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 17871
},
{
"endIndex": 18074,
"startIndex": 17932,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 18073,
"startIndex": 17933,
"tableCells": [
{
"content": [
{
"endIndex": 18073,
"paragraph": {
"elements": [
{
"endIndex": 17940,
"startIndex": 17935,
"textRun": {
"content": "Note:",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 17963,
"startIndex": 17940,
"textRun": {
"content": " You might need to run ",
"textStyle": {}
}
},
{
"endIndex": 17976,
"startIndex": 17963,
"textRun": {
"content": "flutter clean",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 18073,
"startIndex": 17976,
"textRun": {
"content": " after changing the Gradle file. This prevents cached builds from affecting the signing process.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 17935
}
],
"endIndex": 18073,
"startIndex": 17934,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.827451,
"green": 0.91764706,
"red": 0.8509804
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 18163,
"paragraph": {
"elements": [
{
"endIndex": 18123,
"startIndex": 18074,
"textRun": {
"content": "For more information about signing your app, see ",
"textStyle": {}
}
},
{
"endIndex": 18136,
"startIndex": 18123,
"textRun": {
"content": "Sign your app",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://developer.android.com/studio/publish/app-signing.html#generate-key"
},
"underline": true
}
}
},
{
"endIndex": 18140,
"startIndex": 18136,
"textRun": {
"content": " on ",
"textStyle": {}
}
},
{
"endIndex": 18161,
"startIndex": 18140,
"textRun": {
"content": "developer.android.com",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "http://developer.android.com"
},
"underline": true
}
}
},
{
"endIndex": 18163,
"startIndex": 18161,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18074
},
{
"endIndex": 18187,
"paragraph": {
"elements": [
{
"endIndex": 18187,
"startIndex": 18163,
"textRun": {
"content": "Upload your first build\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ni22dsnb3wge",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 18163
},
{
"endIndex": 18286,
"paragraph": {
"elements": [
{
"endIndex": 18286,
"startIndex": 18187,
"textRun": {
"content": "After your app is configured for signing, you should be able to build your application by running:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18187
},
{
"endIndex": 18314,
"startIndex": 18286,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 18313,
"startIndex": 18287,
"tableCells": [
{
"content": [
{
"endIndex": 18313,
"paragraph": {
"elements": [
{
"endIndex": 18313,
"startIndex": 18289,
"textRun": {
"content": "flutter build appbundle\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 18289
}
],
"endIndex": 18313,
"startIndex": 18288,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 18315,
"paragraph": {
"elements": [
{
"endIndex": 18315,
"startIndex": 18314,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18314
},
{
"endIndex": 18446,
"paragraph": {
"elements": [
{
"endIndex": 18396,
"startIndex": 18315,
"textRun": {
"content": "This command generates a release build by default and the output can be found at ",
"textStyle": {}
}
},
{
"endIndex": 18444,
"startIndex": 18396,
"textRun": {
"content": "<your app dir>/build/app/outputs/bundle/release/",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 18446,
"startIndex": 18444,
"textRun": {
"content": " \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18315
},
{
"endIndex": 18447,
"paragraph": {
"elements": [
{
"endIndex": 18447,
"startIndex": 18446,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18446
},
{
"endIndex": 18579,
"paragraph": {
"elements": [
{
"endIndex": 18500,
"startIndex": 18447,
"textRun": {
"content": "From the dashboard in the Google Play Console, go to ",
"textStyle": {}
}
},
{
"endIndex": 18535,
"startIndex": 18500,
"textRun": {
"content": "Release > Testing > Closed testing,",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 18579,
"startIndex": 18535,
"textRun": {
"content": " and create a new, closed testing release. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18447
},
{
"endIndex": 18580,
"paragraph": {
"elements": [
{
"endIndex": 18580,
"startIndex": 18579,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 18579
},
{
"endIndex": 18758,
"startIndex": 18580,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 18757,
"startIndex": 18581,
"tableCells": [
{
"content": [
{
"endIndex": 18757,
"paragraph": {
"elements": [
{
"endIndex": 18588,
"startIndex": 18583,
"textRun": {
"content": "Note:",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 18757,
"startIndex": 18588,
"textRun": {
"content": " You first need to release on the closed testing track as this results in a code review from Google. This is a requirement to be able to access any play store products.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 18583
}
],
"endIndex": 18757,
"startIndex": 18582,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.827451,
"green": 0.91764706,
"red": 0.8509804
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 18759,
"paragraph": {
"elements": [
{
"endIndex": 18759,
"startIndex": 18758,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18758
},
{
"endIndex": 18882,
"paragraph": {
"elements": [
{
"endIndex": 18839,
"startIndex": 18759,
"textRun": {
"content": "For this codelab, youβll stick to Google signing the app, so go ahead and press ",
"textStyle": {}
}
},
{
"endIndex": 18847,
"startIndex": 18839,
"textRun": {
"content": "Continue",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 18854,
"startIndex": 18847,
"textRun": {
"content": " under ",
"textStyle": {}
}
},
{
"endIndex": 18870,
"startIndex": 18854,
"textRun": {
"content": "Play App Signing",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 18882,
"startIndex": 18870,
"textRun": {
"content": " to opt in.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18759
},
{
"endIndex": 18883,
"paragraph": {
"elements": [
{
"endIndex": 18883,
"startIndex": 18882,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18882
},
{
"endIndex": 18884,
"paragraph": {
"elements": [
{
"endIndex": 18884,
"startIndex": 18883,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18883
},
{
"endIndex": 18886,
"paragraph": {
"elements": [
{
"endIndex": 18885,
"inlineObjectElement": {
"inlineObjectId": "kix.gmjri93sum2k",
"textStyle": {}
},
"startIndex": 18884
},
{
"endIndex": 18886,
"startIndex": 18885,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18884
},
{
"endIndex": 18971,
"paragraph": {
"elements": [
{
"endIndex": 18903,
"startIndex": 18886,
"textRun": {
"content": "Next, upload the ",
"textStyle": {}
}
},
{
"endIndex": 18918,
"startIndex": 18903,
"textRun": {
"content": "app-release.aab",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 18971,
"startIndex": 18918,
"textRun": {
"content": " app bundle that was generated by the build command.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18886
},
{
"endIndex": 18972,
"paragraph": {
"elements": [
{
"endIndex": 18972,
"startIndex": 18971,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18971
},
{
"endIndex": 19106,
"paragraph": {
"elements": [
{
"endIndex": 18978,
"startIndex": 18972,
"textRun": {
"content": "Click ",
"textStyle": {}
}
},
{
"endIndex": 18983,
"startIndex": 18978,
"textRun": {
"content": "Save ",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 18997,
"startIndex": 18983,
"textRun": {
"content": "and then click",
"textStyle": {}
}
},
{
"endIndex": 18998,
"startIndex": 18997,
"textRun": {
"content": " ",
"textStyle": {}
}
},
{
"endIndex": 19015,
"startIndex": 18998,
"textRun": {
"content": "Review release.\u000b\u000b",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 19030,
"startIndex": 19015,
"textRun": {
"content": "Finally, click ",
"textStyle": {}
}
},
{
"endIndex": 19063,
"startIndex": 19030,
"textRun": {
"content": "Start rollout to Internal testing",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 19106,
"startIndex": 19063,
"textRun": {
"content": " to activate the internal testing release.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 18972
},
{
"endIndex": 19124,
"paragraph": {
"elements": [
{
"endIndex": 19124,
"startIndex": 19106,
"textRun": {
"content": "Set up test users\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.2u0491vkcfde",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 19106
},
{
"endIndex": 19125,
"paragraph": {
"elements": [
{
"endIndex": 19125,
"startIndex": 19124,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19124
},
{
"endIndex": 19253,
"paragraph": {
"elements": [
{
"endIndex": 19253,
"startIndex": 19125,
"textRun": {
"content": "To be able to test in-app purchases, Google accounts of your testers must be added in the Google Play console in two locations:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19125
},
{
"endIndex": 19254,
"paragraph": {
"elements": [
{
"endIndex": 19254,
"startIndex": 19253,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19253
},
{
"endIndex": 19300,
"paragraph": {
"bullet": {
"listId": "kix.7lxk6cj2wia5",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 19300,
"startIndex": 19254,
"textRun": {
"content": "To the specific test track (Internal testing)\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19254
},
{
"endIndex": 19320,
"paragraph": {
"bullet": {
"listId": "kix.7lxk6cj2wia5",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 19320,
"startIndex": 19300,
"textRun": {
"content": "As a license tester\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19300
},
{
"endIndex": 19321,
"paragraph": {
"elements": [
{
"endIndex": 19321,
"startIndex": 19320,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19320
},
{
"endIndex": 19463,
"paragraph": {
"elements": [
{
"endIndex": 19399,
"startIndex": 19321,
"textRun": {
"content": "First, start with adding the tester to the internal testing track. Go back to ",
"textStyle": {}
}
},
{
"endIndex": 19435,
"startIndex": 19399,
"textRun": {
"content": "Release > Testing > Internal testing",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 19450,
"startIndex": 19435,
"textRun": {
"content": " and click the ",
"textStyle": {}
}
},
{
"endIndex": 19457,
"startIndex": 19450,
"textRun": {
"content": "Testers",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 19463,
"startIndex": 19457,
"textRun": {
"content": " tab.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19321
},
{
"endIndex": 19465,
"paragraph": {
"elements": [
{
"endIndex": 19464,
"inlineObjectElement": {
"inlineObjectId": "kix.icspy8xsx7cc",
"textStyle": {}
},
"startIndex": 19463
},
{
"endIndex": 19465,
"startIndex": 19464,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19463
},
{
"endIndex": 19639,
"paragraph": {
"elements": [
{
"endIndex": 19501,
"startIndex": 19465,
"textRun": {
"content": "Create a new email list by clicking ",
"textStyle": {}
}
},
{
"endIndex": 19518,
"startIndex": 19501,
"textRun": {
"content": "Create email list",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 19639,
"startIndex": 19518,
"textRun": {
"content": ". Give the list a name, and add the email addresses of the Google accounts that need access to testing in-app purchases.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19465
},
{
"endIndex": 19640,
"paragraph": {
"elements": [
{
"endIndex": 19640,
"startIndex": 19639,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19639
},
{
"endIndex": 19704,
"paragraph": {
"elements": [
{
"endIndex": 19690,
"startIndex": 19640,
"textRun": {
"content": "Next, select the checkbox for the list, and click ",
"textStyle": {}
}
},
{
"endIndex": 19702,
"startIndex": 19690,
"textRun": {
"content": "Save changes",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 19704,
"startIndex": 19702,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19640
},
{
"endIndex": 19705,
"paragraph": {
"elements": [
{
"endIndex": 19705,
"startIndex": 19704,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19704
},
{
"endIndex": 19737,
"paragraph": {
"elements": [
{
"endIndex": 19737,
"startIndex": 19705,
"textRun": {
"content": "Then, add the license testers: \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19705
},
{
"endIndex": 19794,
"paragraph": {
"bullet": {
"listId": "kix.x6zo8jl3cnpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 19752,
"startIndex": 19737,
"textRun": {
"content": "Go back to the ",
"textStyle": {}
}
},
{
"endIndex": 19760,
"startIndex": 19752,
"textRun": {
"content": "All apps",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 19794,
"startIndex": 19760,
"textRun": {
"content": " view of the Google Play Console.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 19737
},
{
"endIndex": 19829,
"paragraph": {
"bullet": {
"listId": "kix.x6zo8jl3cnpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 19800,
"startIndex": 19794,
"textRun": {
"content": "Go to ",
"textStyle": {}
}
},
{
"endIndex": 19826,
"startIndex": 19800,
"textRun": {
"content": "Settings > License testing",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 19829,
"startIndex": 19826,
"textRun": {
"content": ". \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 19794
},
{
"endIndex": 19920,
"paragraph": {
"bullet": {
"listId": "kix.x6zo8jl3cnpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 19920,
"startIndex": 19829,
"textRun": {
"content": "Add the same email addresses of the testers who need to be able to test in-app purchases. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 19829
},
{
"endIndex": 19962,
"paragraph": {
"bullet": {
"listId": "kix.x6zo8jl3cnpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 19924,
"startIndex": 19920,
"textRun": {
"content": "Set ",
"textStyle": {}
}
},
{
"endIndex": 19940,
"startIndex": 19924,
"textRun": {
"content": "License response",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 19944,
"startIndex": 19940,
"textRun": {
"content": " to ",
"textStyle": {}
}
},
{
"endIndex": 19960,
"startIndex": 19944,
"textRun": {
"content": "RESPOND_NORMALLY",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 19962,
"startIndex": 19960,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 19920
},
{
"endIndex": 19982,
"paragraph": {
"bullet": {
"listId": "kix.x6zo8jl3cnpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 19968,
"startIndex": 19962,
"textRun": {
"content": "Click ",
"textStyle": {}
}
},
{
"endIndex": 19981,
"startIndex": 19968,
"textRun": {
"content": "Save changes.",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 19982,
"startIndex": 19981,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 19962
},
{
"endIndex": 19985,
"paragraph": {
"elements": [
{
"endIndex": 19983,
"startIndex": 19982,
"textRun": {
"content": "\u000b",
"textStyle": {}
}
},
{
"endIndex": 19984,
"inlineObjectElement": {
"inlineObjectId": "kix.4nqtsh4zysec",
"textStyle": {}
},
"startIndex": 19983
},
{
"endIndex": 19985,
"startIndex": 19984,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 19982
},
{
"endIndex": 20019,
"paragraph": {
"elements": [
{
"endIndex": 20019,
"startIndex": 19985,
"textRun": {
"content": "Configuring your in-app purchases\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.7kkxkz4gyhhc",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 19985
},
{
"endIndex": 20088,
"paragraph": {
"elements": [
{
"endIndex": 20088,
"startIndex": 20019,
"textRun": {
"content": "Now youβll configure the items that are purchasable within the app. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 20019
},
{
"endIndex": 20162,
"paragraph": {
"elements": [
{
"endIndex": 20162,
"startIndex": 20088,
"textRun": {
"content": "Just like in the App Store, you have to define three different purchases:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 20088
},
{
"endIndex": 20163,
"paragraph": {
"elements": [
{
"endIndex": 20163,
"startIndex": 20162,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 20162
},
{
"endIndex": 20314,
"paragraph": {
"bullet": {
"listId": "kix.y1airoxi6fpx",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 20181,
"startIndex": 20163,
"textRun": {
"content": "dash_consumable_2k",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 20314,
"startIndex": 20181,
"textRun": {
"content": ": A consumable purchase that can be purchased many times over, which grants the user 2000 Dashes (the in-app currency) per purchase.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 20163
},
{
"endIndex": 20461,
"paragraph": {
"bullet": {
"listId": "kix.y1airoxi6fpx",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 20329,
"startIndex": 20314,
"textRun": {
"content": "dash_upgrade_3d",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 20461,
"startIndex": 20329,
"textRun": {
"content": ": A non-consumable βupgradeβ purchase that can only be purchased once, which gives the user a cosmetically different Dash to click.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 20314
},
{
"endIndex": 20593,
"paragraph": {
"bullet": {
"listId": "kix.y1airoxi6fpx",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 20486,
"startIndex": 20461,
"textRun": {
"content": "dash_subscription_doubler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 20593,
"startIndex": 20486,
"textRun": {
"content": ": A subscription that grants the user twice as many Dashes per click for the duration of the subscription.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 20461
},
{
"endIndex": 20594,
"paragraph": {
"elements": [
{
"endIndex": 20594,
"startIndex": 20593,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 20593
},
{
"endIndex": 20640,
"paragraph": {
"elements": [
{
"endIndex": 20640,
"startIndex": 20594,
"textRun": {
"content": "First, add the consumable and non-consumable.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 20594
},
{
"endIndex": 20700,
"paragraph": {
"bullet": {
"listId": "kix.8ez3h4yz39jw",
"textStyle": {}
},
"elements": [
{
"endIndex": 20700,
"startIndex": 20640,
"textRun": {
"content": "Go to the Google Play Console, and select your application.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 20640
},
{
"endIndex": 20745,
"paragraph": {
"bullet": {
"listId": "kix.8ez3h4yz39jw",
"textStyle": {}
},
"elements": [
{
"endIndex": 20706,
"startIndex": 20700,
"textRun": {
"content": "Go to ",
"textStyle": {}
}
},
{
"endIndex": 20743,
"startIndex": 20706,
"textRun": {
"content": "Monetize > Products > In-app products",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 20745,
"startIndex": 20743,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 20700
},
{
"endIndex": 20768,
"paragraph": {
"bullet": {
"listId": "kix.8ez3h4yz39jw",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 20751,
"startIndex": 20745,
"textRun": {
"content": "Click ",
"textStyle": {}
}
},
{
"endIndex": 20765,
"startIndex": 20751,
"textRun": {
"content": "Create product",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 20766,
"startIndex": 20765,
"textRun": {
"content": "\u000b",
"textStyle": {}
}
},
{
"endIndex": 20767,
"inlineObjectElement": {
"inlineObjectId": "kix.ybkauijvqfm",
"textStyle": {}
},
"startIndex": 20766
},
{
"endIndex": 20768,
"startIndex": 20767,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 20745
},
{
"endIndex": 20893,
"paragraph": {
"bullet": {
"listId": "kix.8ez3h4yz39jw",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 20893,
"startIndex": 20768,
"textRun": {
"content": "Enter all the required information for your product. Make sure the product ID matches the ID that you intend to use exactly.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 20768
},
{
"endIndex": 20905,
"paragraph": {
"bullet": {
"listId": "kix.8ez3h4yz39jw",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 20899,
"startIndex": 20893,
"textRun": {
"content": "Click ",
"textStyle": {}
}
},
{
"endIndex": 20905,
"startIndex": 20899,
"textRun": {
"content": "Save.\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 20893
},
{
"endIndex": 20921,
"paragraph": {
"bullet": {
"listId": "kix.8ez3h4yz39jw",
"textStyle": {}
},
"elements": [
{
"endIndex": 20911,
"startIndex": 20905,
"textRun": {
"content": "Click ",
"textStyle": {}
}
},
{
"endIndex": 20919,
"startIndex": 20911,
"textRun": {
"content": "Activate",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 20920,
"startIndex": 20919,
"textRun": {
"content": ".",
"textStyle": {}
}
},
{
"endIndex": 20921,
"startIndex": 20920,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 20905
},
{
"endIndex": 20983,
"paragraph": {
"bullet": {
"listId": "kix.8ez3h4yz39jw",
"textStyle": {}
},
"elements": [
{
"endIndex": 20983,
"startIndex": 20921,
"textRun": {
"content": "Repeat the process for the non-consumable βupgradeβ purchase.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 20921
},
{
"endIndex": 20984,
"paragraph": {
"elements": [
{
"endIndex": 20984,
"startIndex": 20983,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 20983
},
{
"endIndex": 21012,
"paragraph": {
"elements": [
{
"endIndex": 21012,
"startIndex": 20984,
"textRun": {
"content": "Next, add the subscription:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 20984
},
{
"endIndex": 21072,
"paragraph": {
"bullet": {
"listId": "kix.m6p9bvttqrj7",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 21072,
"startIndex": 21012,
"textRun": {
"content": "Go to the Google Play Console, and select your application.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 21012
},
{
"endIndex": 21115,
"paragraph": {
"bullet": {
"listId": "kix.m6p9bvttqrj7",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 21078,
"startIndex": 21072,
"textRun": {
"content": "Go to ",
"textStyle": {}
}
},
{
"endIndex": 21113,
"startIndex": 21078,
"textRun": {
"content": "Monetize > Products > Subscriptions",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 21115,
"startIndex": 21113,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 21072
},
{
"endIndex": 21143,
"paragraph": {
"bullet": {
"listId": "kix.m6p9bvttqrj7",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 21121,
"startIndex": 21115,
"textRun": {
"content": "Click ",
"textStyle": {}
}
},
{
"endIndex": 21141,
"startIndex": 21121,
"textRun": {
"content": "Create subscription\u000b",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 21142,
"inlineObjectElement": {
"inlineObjectId": "kix.5fekoxtber2j",
"textStyle": {}
},
"startIndex": 21141
},
{
"endIndex": 21143,
"startIndex": 21142,
"textRun": {
"content": "\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 21115
},
{
"endIndex": 21268,
"paragraph": {
"bullet": {
"listId": "kix.m6p9bvttqrj7",
"textStyle": {}
},
"elements": [
{
"endIndex": 21268,
"startIndex": 21143,
"textRun": {
"content": "Enter all the required information for your subscription. Make sure the product ID matches the ID you intend to use exactly.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 21143
},
{
"endIndex": 21279,
"paragraph": {
"bullet": {
"listId": "kix.m6p9bvttqrj7",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 21274,
"startIndex": 21268,
"textRun": {
"content": "Click ",
"textStyle": {}
}
},
{
"endIndex": 21278,
"startIndex": 21274,
"textRun": {
"content": "Save",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 21279,
"startIndex": 21278,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 21268
},
{
"endIndex": 21280,
"paragraph": {
"elements": [
{
"endIndex": 21280,
"startIndex": 21279,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 21279
},
{
"endIndex": 21337,
"paragraph": {
"elements": [
{
"endIndex": 21337,
"startIndex": 21280,
"textRun": {
"content": "Your purchases should now be set up in the Play Console.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 21280
},
{
"endIndex": 21339,
"paragraph": {
"elements": [
{
"endIndex": 21338,
"pageBreak": {
"textStyle": {}
},
"startIndex": 21337
},
{
"endIndex": 21339,
"startIndex": 21338,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.soqnhmiu1i0d",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 21337
},
{
"endIndex": 21355,
"paragraph": {
"elements": [
{
"endIndex": 21355,
"startIndex": 21339,
"textRun": {
"content": "Set up Firebase\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ejv8vgshgjc1",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 21339
},
{
"endIndex": 21440,
"paragraph": {
"elements": [
{
"endIndex": 21440,
"startIndex": 21355,
"textRun": {
"content": "In this codelab, youβll use a backend service to verify and track usersβ purchases. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 21355
},
{
"endIndex": 21486,
"paragraph": {
"elements": [
{
"endIndex": 21486,
"startIndex": 21440,
"textRun": {
"content": "Using a backend service has several benefits:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 21440
},
{
"endIndex": 21487,
"paragraph": {
"elements": [
{
"endIndex": 21487,
"startIndex": 21486,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 21486
},
{
"endIndex": 21525,
"paragraph": {
"bullet": {
"listId": "kix.6o706gv3wzlk",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 21525,
"startIndex": 21487,
"textRun": {
"content": "You can securely verify transactions.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 21487
},
{
"endIndex": 21578,
"paragraph": {
"bullet": {
"listId": "kix.6o706gv3wzlk",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 21578,
"startIndex": 21525,
"textRun": {
"content": "You can react to billing events from the app stores.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 21525
},
{
"endIndex": 21629,
"paragraph": {
"bullet": {
"listId": "kix.6o706gv3wzlk",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 21629,
"startIndex": 21578,
"textRun": {
"content": "You can keep track of the purchases in a database.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 21578
},
{
"endIndex": 21731,
"paragraph": {
"bullet": {
"listId": "kix.6o706gv3wzlk",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 21731,
"startIndex": 21629,
"textRun": {
"content": "Users wonβt be able to fool your app into providing premium features by rewinding their system clock.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 21629
},
{
"endIndex": 21732,
"paragraph": {
"elements": [
{
"endIndex": 21732,
"startIndex": 21731,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 21731
},
{
"endIndex": 22247,
"paragraph": {
"elements": [
{
"endIndex": 22247,
"startIndex": 21732,
"textRun": {
"content": "While there are many ways to set up a backend service, youβll do this using cloud functions and Firestore, using Googleβs own Firebase. \u000b\u000bWriting the backend is considered out of scope for this codelab, so the starter code already includes a Firebase project that handles basic purchases to get you started. \u000b\u000bFirebase plugins are also included with the starter app.\u000b\u000bWhatβs left for you to do is to create your own Firebase project, configure both the app and backend for Firebase, and finally deploy the backend.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 21732
},
{
"endIndex": 22273,
"paragraph": {
"elements": [
{
"endIndex": 22273,
"startIndex": 22247,
"textRun": {
"content": "Create a Firebase project\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.whi67zwuhucz",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 22247
},
{
"endIndex": 22274,
"paragraph": {
"elements": [
{
"endIndex": 22274,
"startIndex": 22273,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 22273
},
{
"endIndex": 22387,
"paragraph": {
"elements": [
{
"endIndex": 22284,
"startIndex": 22274,
"textRun": {
"content": "Go to the ",
"textStyle": {}
}
},
{
"endIndex": 22300,
"startIndex": 22284,
"textRun": {
"content": "Firebase console",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://firebase.google.com/"
},
"underline": true
}
}
},
{
"endIndex": 22387,
"startIndex": 22300,
"textRun": {
"content": ", and create a new Firebase project. For this example, call the project Dash Clicker. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 22274
},
{
"endIndex": 22388,
"paragraph": {
"elements": [
{
"endIndex": 22388,
"startIndex": 22387,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 22387
},
{
"endIndex": 22556,
"paragraph": {
"elements": [
{
"endIndex": 22556,
"startIndex": 22388,
"textRun": {
"content": "In the backend app, you tie purchases to a specific user, therefore, you need authentication. For this, leverage Firebaseβs authentication module with Google sign-in. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 22388
},
{
"endIndex": 22557,
"paragraph": {
"elements": [
{
"endIndex": 22557,
"startIndex": 22556,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 22556
},
{
"endIndex": 22633,
"paragraph": {
"bullet": {
"listId": "kix.48iczhtzcs3b",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 22592,
"startIndex": 22557,
"textRun": {
"content": "From the Firebase dashboard, go to ",
"textStyle": {}
}
},
{
"endIndex": 22606,
"startIndex": 22592,
"textRun": {
"content": "Authentication",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 22633,
"startIndex": 22606,
"textRun": {
"content": " and enable it, if needed.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 22557
},
{
"endIndex": 22703,
"paragraph": {
"bullet": {
"listId": "kix.48iczhtzcs3b",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 22643,
"startIndex": 22633,
"textRun": {
"content": "Go to the ",
"textStyle": {}
}
},
{
"endIndex": 22657,
"startIndex": 22643,
"textRun": {
"content": "Sign-in method",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 22678,
"startIndex": 22657,
"textRun": {
"content": " tab, and enable the ",
"textStyle": {}
}
},
{
"endIndex": 22684,
"startIndex": 22678,
"textRun": {
"content": "Google",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 22703,
"startIndex": 22684,
"textRun": {
"content": " sign-in provider.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 22633
},
{
"endIndex": 22705,
"paragraph": {
"elements": [
{
"endIndex": 22704,
"inlineObjectElement": {
"inlineObjectId": "kix.qdwextc6ysh",
"textStyle": {}
},
"startIndex": 22703
},
{
"endIndex": 22705,
"startIndex": 22704,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "CENTER",
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 22703
},
{
"endIndex": 22706,
"paragraph": {
"elements": [
{
"endIndex": 22706,
"startIndex": 22705,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 22705
},
{
"endIndex": 22779,
"paragraph": {
"elements": [
{
"endIndex": 22779,
"startIndex": 22706,
"textRun": {
"content": "Because youβll also use Firebasesβs Firestore database, enable this too.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 22706
},
{
"endIndex": 22780,
"paragraph": {
"elements": [
{
"endIndex": 22780,
"startIndex": 22779,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 22779
},
{
"endIndex": 22782,
"paragraph": {
"elements": [
{
"endIndex": 22781,
"inlineObjectElement": {
"inlineObjectId": "kix.pji8h4xda4e1",
"textStyle": {}
},
"startIndex": 22780
},
{
"endIndex": 22782,
"startIndex": 22781,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "CENTER",
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 22780
},
{
"endIndex": 22783,
"paragraph": {
"elements": [
{
"endIndex": 22783,
"startIndex": 22782,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 22782
},
{
"endIndex": 22820,
"paragraph": {
"elements": [
{
"endIndex": 22820,
"startIndex": 22783,
"textRun": {
"content": "Set Cloud Firestore rules like this:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 22783
},
{
"endIndex": 22821,
"paragraph": {
"elements": [
{
"endIndex": 22821,
"startIndex": 22820,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 22820
},
{
"endIndex": 23048,
"startIndex": 22821,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 23047,
"startIndex": 22822,
"tableCells": [
{
"content": [
{
"endIndex": 22845,
"paragraph": {
"elements": [
{
"endIndex": 22845,
"startIndex": 22824,
"textRun": {
"content": "rules_version = '2';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 22824
},
{
"endIndex": 22871,
"paragraph": {
"elements": [
{
"endIndex": 22871,
"startIndex": 22845,
"textRun": {
"content": "service cloud.firestore {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 22845
},
{
"endIndex": 22913,
"paragraph": {
"elements": [
{
"endIndex": 22913,
"startIndex": 22871,
"textRun": {
"content": " match /databases/{database}/documents {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 22871
},
{
"endIndex": 22949,
"paragraph": {
"elements": [
{
"endIndex": 22949,
"startIndex": 22913,
"textRun": {
"content": " match /purchases/{purchaseId} {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 22913
},
{
"endIndex": 23035,
"paragraph": {
"elements": [
{
"endIndex": 23035,
"startIndex": 22949,
"textRun": {
"content": " allow read: if request.auth != null && request.auth.uid == resource.data.userId\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 22949
},
{
"endIndex": 23041,
"paragraph": {
"elements": [
{
"endIndex": 23041,
"startIndex": 23035,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 23035
},
{
"endIndex": 23045,
"paragraph": {
"elements": [
{
"endIndex": 23045,
"startIndex": 23041,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 23041
},
{
"endIndex": 23047,
"paragraph": {
"elements": [
{
"endIndex": 23047,
"startIndex": 23045,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 23045
}
],
"endIndex": 23047,
"startIndex": 22823,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 23049,
"paragraph": {
"elements": [
{
"endIndex": 23049,
"startIndex": 23048,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "START",
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 23048
},
{
"endIndex": 23078,
"paragraph": {
"elements": [
{
"endIndex": 23078,
"startIndex": 23049,
"textRun": {
"content": "Set up Firebase for Flutter\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.1ccdp4w5qlnf",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 23049
},
{
"endIndex": 23224,
"paragraph": {
"elements": [
{
"endIndex": 23212,
"startIndex": 23078,
"textRun": {
"content": "The recommended way to install Firebase on the Flutter app is to use the FlutterFire CLI. Follow the instructions as explained in the ",
"textStyle": {}
}
},
{
"endIndex": 23222,
"startIndex": 23212,
"textRun": {
"content": "setup page",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://firebase.google.com/docs/flutter/setup"
},
"underline": true
}
}
},
{
"endIndex": 23224,
"startIndex": 23222,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 23078
},
{
"endIndex": 23225,
"paragraph": {
"elements": [
{
"endIndex": 23225,
"startIndex": 23224,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 23224
},
{
"endIndex": 23319,
"paragraph": {
"elements": [
{
"endIndex": 23319,
"startIndex": 23225,
"textRun": {
"content": "When running flutterfire configure, select the project you just created in the previous step.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 23225
},
{
"endIndex": 23320,
"paragraph": {
"elements": [
{
"endIndex": 23320,
"startIndex": 23319,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 23319
},
{
"endIndex": 24338,
"startIndex": 23320,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 24337,
"startIndex": 23321,
"tableCells": [
{
"content": [
{
"endIndex": 23347,
"paragraph": {
"elements": [
{
"endIndex": 23347,
"startIndex": 23323,
"textRun": {
"content": "$ flutterfire configure\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 23323
},
{
"endIndex": 23348,
"paragraph": {
"elements": [
{
"endIndex": 23348,
"startIndex": 23347,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 23347
},
{
"endIndex": 23475,
"paragraph": {
"elements": [
{
"endIndex": 23475,
"startIndex": 23348,
"textRun": {
"content": "i Found 5 Firebase projects. \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 23348
},
{
"endIndex": 23602,
"paragraph": {
"elements": [
{
"endIndex": 23602,
"startIndex": 23475,
"textRun": {
"content": "? Select a Firebase project to configure your Flutter application with βΊ \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 23475
},
{
"endIndex": 23723,
"paragraph": {
"elements": [
{
"endIndex": 23723,
"startIndex": 23602,
"textRun": {
"content": "β― in-app-purchases-1234 (in-app-purchases-1234) \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 23602
},
{
"endIndex": 23850,
"paragraph": {
"elements": [
{
"endIndex": 23850,
"startIndex": 23723,
"textRun": {
"content": " other-flutter-codelab-1 (other-flutter-codelab-1) \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 23723
},
{
"endIndex": 23972,
"paragraph": {
"elements": [
{
"endIndex": 23972,
"startIndex": 23850,
"textRun": {
"content": " other-flutter-codelab-2 (other-flutter-codelab-2) \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 23850
},
{
"endIndex": 24099,
"paragraph": {
"elements": [
{
"endIndex": 24099,
"startIndex": 23972,
"textRun": {
"content": " other-flutter-codelab-3 (other-flutter-codelab-3) \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 23972
},
{
"endIndex": 24310,
"paragraph": {
"elements": [
{
"endIndex": 24310,
"startIndex": 24099,
"textRun": {
"content": " other-flutter-codelab-4 (other-flutter-codelab-4) \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 24099
},
{
"endIndex": 24337,
"paragraph": {
"elements": [
{
"endIndex": 24337,
"startIndex": 24310,
"textRun": {
"content": " <create a new project> \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 24310
}
],
"endIndex": 24337,
"startIndex": 23322,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 24339,
"paragraph": {
"elements": [
{
"endIndex": 24339,
"startIndex": 24338,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 24338
},
{
"endIndex": 24400,
"paragraph": {
"elements": [
{
"endIndex": 24352,
"startIndex": 24339,
"textRun": {
"content": "Next, enable ",
"textStyle": {}
}
},
{
"endIndex": 24355,
"startIndex": 24352,
"textRun": {
"content": "iOS",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 24360,
"startIndex": 24355,
"textRun": {
"content": " and ",
"textStyle": {}
}
},
{
"endIndex": 24367,
"startIndex": 24360,
"textRun": {
"content": "Android",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 24400,
"startIndex": 24367,
"textRun": {
"content": " by selecting the two platforms.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 24339
},
{
"endIndex": 24401,
"paragraph": {
"elements": [
{
"endIndex": 24401,
"startIndex": 24400,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 24400
},
{
"endIndex": 25041,
"startIndex": 24401,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 25040,
"startIndex": 24402,
"tableCells": [
{
"content": [
{
"endIndex": 24531,
"paragraph": {
"elements": [
{
"endIndex": 24531,
"startIndex": 24404,
"textRun": {
"content": "? Which platforms should your configuration support (use arrow keys & space to select)? βΊ \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 24404
},
{
"endIndex": 24658,
"paragraph": {
"elements": [
{
"endIndex": 24658,
"startIndex": 24531,
"textRun": {
"content": "β android \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 24531
},
{
"endIndex": 24785,
"paragraph": {
"elements": [
{
"endIndex": 24785,
"startIndex": 24658,
"textRun": {
"content": "β ios \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 24658
},
{
"endIndex": 24912,
"paragraph": {
"elements": [
{
"endIndex": 24912,
"startIndex": 24785,
"textRun": {
"content": " macos \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 24785
},
{
"endIndex": 25040,
"paragraph": {
"elements": [
{
"endIndex": 25040,
"startIndex": 24912,
"textRun": {
"content": " web \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 24912
}
],
"endIndex": 25040,
"startIndex": 24403,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 25042,
"paragraph": {
"elements": [
{
"endIndex": 25042,
"startIndex": 25041,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 25041
},
{
"endIndex": 25108,
"paragraph": {
"elements": [
{
"endIndex": 25108,
"startIndex": 25042,
"textRun": {
"content": "When prompted about overriding firebase_options.dart, select yes.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 25042
},
{
"endIndex": 25109,
"paragraph": {
"elements": [
{
"endIndex": 25109,
"startIndex": 25108,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 25108
},
{
"endIndex": 25349,
"startIndex": 25109,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 25348,
"startIndex": 25110,
"tableCells": [
{
"content": [
{
"endIndex": 25348,
"paragraph": {
"elements": [
{
"endIndex": 25348,
"startIndex": 25112,
"textRun": {
"content": "? Generated FirebaseOptions file lib/firebase_options.dart already exists, do you want to override it? (y/n) βΊ yes \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 25112
}
],
"endIndex": 25348,
"startIndex": 25111,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 25350,
"paragraph": {
"elements": [
{
"endIndex": 25350,
"startIndex": 25349,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 25349
},
{
"endIndex": 25351,
"paragraph": {
"elements": [
{
"endIndex": 25351,
"startIndex": 25350,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 25350
},
{
"endIndex": 25394,
"paragraph": {
"elements": [
{
"endIndex": 25394,
"startIndex": 25351,
"textRun": {
"content": "Set up Firebase for Android: Further steps\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.rb9iczfwcj61",
"namedStyleType": "HEADING_2"
}
},
"startIndex": 25351
},
{
"endIndex": 25395,
"paragraph": {
"elements": [
{
"endIndex": 25395,
"startIndex": 25394,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 25394
},
{
"endIndex": 25492,
"paragraph": {
"elements": [
{
"endIndex": 25430,
"startIndex": 25395,
"textRun": {
"content": "From the Firebase dashboard, go to ",
"textStyle": {}
}
},
{
"endIndex": 25447,
"startIndex": 25430,
"textRun": {
"content": "Project Overview,",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 25455,
"startIndex": 25447,
"textRun": {
"content": " choose ",
"textStyle": {}
}
},
{
"endIndex": 25463,
"startIndex": 25455,
"textRun": {
"content": "Settings",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 25479,
"startIndex": 25463,
"textRun": {
"content": " and select the ",
"textStyle": {}
}
},
{
"endIndex": 25486,
"startIndex": 25479,
"textRun": {
"content": "General",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 25492,
"startIndex": 25486,
"textRun": {
"content": " tab.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 25395
},
{
"endIndex": 25493,
"paragraph": {
"elements": [
{
"endIndex": 25493,
"startIndex": 25492,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 25492
},
{
"endIndex": 25561,
"paragraph": {
"elements": [
{
"endIndex": 25508,
"startIndex": 25493,
"textRun": {
"content": "Scroll down to ",
"textStyle": {}
}
},
{
"endIndex": 25517,
"startIndex": 25508,
"textRun": {
"content": "Your apps",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 25534,
"startIndex": 25517,
"textRun": {
"content": ", and select the ",
"textStyle": {}
}
},
{
"endIndex": 25555,
"startIndex": 25534,
"textRun": {
"content": "dashclicker (android)",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 25561,
"startIndex": 25555,
"textRun": {
"content": " app.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 25493
},
{
"endIndex": 25562,
"paragraph": {
"elements": [
{
"endIndex": 25562,
"startIndex": 25561,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 25561
},
{
"endIndex": 25565,
"paragraph": {
"elements": [
{
"endIndex": 25563,
"inlineObjectElement": {
"inlineObjectId": "kix.xhbjqrseo000",
"textStyle": {}
},
"startIndex": 25562
},
{
"endIndex": 25565,
"startIndex": 25563,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 25562
},
{
"endIndex": 25675,
"paragraph": {
"elements": [
{
"endIndex": 25675,
"startIndex": 25565,
"textRun": {
"content": "To allow Google sign-in in debug mode, you must provide the SHA-1 hash fingerprint of your debug certificate.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 25565
},
{
"endIndex": 25715,
"paragraph": {
"elements": [
{
"endIndex": 25715,
"startIndex": 25675,
"textRun": {
"content": "Get your debug signing certificate hash\n",
"textStyle": {
"bold": false,
"fontSize": {
"magnitude": 13.0,
"unit": "PT"
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.hl575bgcxaxg",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 25675
},
{
"endIndex": 25716,
"paragraph": {
"elements": [
{
"endIndex": 25716,
"startIndex": 25715,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 25715
},
{
"endIndex": 25830,
"paragraph": {
"elements": [
{
"endIndex": 25781,
"startIndex": 25716,
"textRun": {
"content": "In the root of your Flutter app project, change directory to the ",
"textStyle": {}
}
},
{
"endIndex": 25789,
"startIndex": 25781,
"textRun": {
"content": "android/",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 25830,
"startIndex": 25789,
"textRun": {
"content": " folder then generate a signing report.\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 25716
},
{
"endIndex": 25965,
"startIndex": 25830,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 25964,
"startIndex": 25831,
"tableCells": [
{
"content": [
{
"endIndex": 25964,
"paragraph": {
"elements": [
{
"endIndex": 25837,
"startIndex": 25833,
"textRun": {
"content": "Note",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 25865,
"startIndex": 25837,
"textRun": {
"content": ": changing the directory to ",
"textStyle": {}
}
},
{
"endIndex": 25873,
"startIndex": 25865,
"textRun": {
"content": "android/",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 25898,
"startIndex": 25873,
"textRun": {
"content": " is crucial as otherwise ",
"textStyle": {}
}
},
{
"endIndex": 25902,
"startIndex": 25898,
"textRun": {
"content": "java",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 25933,
"startIndex": 25902,
"textRun": {
"content": " will not be able to find your ",
"textStyle": {}
}
},
{
"endIndex": 25937,
"startIndex": 25933,
"textRun": {
"content": ":app",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 25964,
"startIndex": 25937,
"textRun": {
"content": " project in the next step.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 25833
}
],
"endIndex": 25964,
"startIndex": 25832,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.8039216,
"green": 0.8980392,
"red": 0.9882353
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 25966,
"paragraph": {
"elements": [
{
"endIndex": 25966,
"startIndex": 25965,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 25965
},
{
"endIndex": 26010,
"startIndex": 25966,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 26009,
"startIndex": 25967,
"tableCells": [
{
"content": [
{
"endIndex": 25980,
"paragraph": {
"elements": [
{
"endIndex": 25980,
"startIndex": 25969,
"textRun": {
"content": "cd android\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 25969
},
{
"endIndex": 26009,
"paragraph": {
"elements": [
{
"endIndex": 26008,
"startIndex": 25980,
"textRun": {
"content": "./gradlew :app:signingReport",
"textStyle": {
"italic": true,
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
},
{
"endIndex": 26009,
"startIndex": 26008,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Consolas",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 25980
}
],
"endIndex": 26009,
"startIndex": 25968,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 26011,
"paragraph": {
"elements": [
{
"endIndex": 26011,
"startIndex": 26010,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 26010
},
{
"endIndex": 26171,
"startIndex": 26011,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 26170,
"startIndex": 26012,
"tableCells": [
{
"content": [
{
"endIndex": 26170,
"paragraph": {
"elements": [
{
"endIndex": 26018,
"startIndex": 26014,
"textRun": {
"content": "Note",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 26145,
"startIndex": 26018,
"textRun": {
"content": ": In case the gradle wrapper file is not present, you can generate it by building your application for Android once by running ",
"textStyle": {}
}
},
{
"endIndex": 26168,
"startIndex": 26145,
"textRun": {
"content": "flutter build appbundle",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 26170,
"startIndex": 26168,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 26014
}
],
"endIndex": 26170,
"startIndex": 26013,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.8039216,
"green": 0.8980392,
"red": 0.9882353
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 26172,
"paragraph": {
"elements": [
{
"endIndex": 26172,
"startIndex": 26171,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.rf4eo4kaj85s",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 26171
},
{
"endIndex": 26454,
"paragraph": {
"elements": [
{
"endIndex": 26324,
"startIndex": 26172,
"textRun": {
"content": "Youβll be presented with a large list of signing keys. Because youβre looking for the hash for the debug certificate, look for the certificate with the ",
"textStyle": {}
}
},
{
"endIndex": 26331,
"startIndex": 26324,
"textRun": {
"content": "Variant",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 26336,
"startIndex": 26331,
"textRun": {
"content": " and ",
"textStyle": {}
}
},
{
"endIndex": 26342,
"startIndex": 26336,
"textRun": {
"content": "Config",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 26361,
"startIndex": 26342,
"textRun": {
"content": " properties set to ",
"textStyle": {}
}
},
{
"endIndex": 26366,
"startIndex": 26361,
"textRun": {
"content": "debug",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 26429,
"startIndex": 26366,
"textRun": {
"content": ". Itβs likely for the keystore to be in your home folder under ",
"textStyle": {}
}
},
{
"endIndex": 26452,
"startIndex": 26429,
"textRun": {
"content": ".android/debug.keystore",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 26454,
"startIndex": 26452,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 26172
},
{
"endIndex": 26455,
"paragraph": {
"elements": [
{
"endIndex": 26455,
"startIndex": 26454,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 26454
},
{
"endIndex": 26851,
"startIndex": 26455,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 26850,
"startIndex": 26456,
"tableCells": [
{
"content": [
{
"endIndex": 26484,
"paragraph": {
"elements": [
{
"endIndex": 26484,
"startIndex": 26458,
"textRun": {
"content": "> Task :app:signingReport\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 26458
},
{
"endIndex": 26499,
"paragraph": {
"elements": [
{
"endIndex": 26499,
"startIndex": 26484,
"textRun": {
"content": "Variant: debug\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 26484
},
{
"endIndex": 26513,
"paragraph": {
"elements": [
{
"endIndex": 26513,
"startIndex": 26499,
"textRun": {
"content": "Config: debug\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 26499
},
{
"endIndex": 26564,
"paragraph": {
"elements": [
{
"endIndex": 26564,
"startIndex": 26513,
"textRun": {
"content": "Store: /<USER_HOME_FOLDER>/.android/debug.keystore\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 26513
},
{
"endIndex": 26587,
"paragraph": {
"elements": [
{
"endIndex": 26587,
"startIndex": 26564,
"textRun": {
"content": "Alias: AndroidDebugKey\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 26564
},
{
"endIndex": 26640,
"paragraph": {
"elements": [
{
"endIndex": 26640,
"startIndex": 26587,
"textRun": {
"content": "MD5: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 26587
},
{
"endIndex": 26706,
"paragraph": {
"elements": [
{
"endIndex": 26706,
"startIndex": 26640,
"textRun": {
"content": "SHA1: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX\n",
"textStyle": {
"bold": true,
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 26640
},
{
"endIndex": 26811,
"paragraph": {
"elements": [
{
"endIndex": 26811,
"startIndex": 26706,
"textRun": {
"content": "SHA-256: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 26706
},
{
"endIndex": 26850,
"paragraph": {
"elements": [
{
"endIndex": 26850,
"startIndex": 26811,
"textRun": {
"content": "Valid until: Tuesday, January 19, 2038\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 26811
}
],
"endIndex": 26850,
"startIndex": 26457,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 26852,
"paragraph": {
"elements": [
{
"endIndex": 26852,
"startIndex": 26851,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 26851
},
{
"endIndex": 26936,
"paragraph": {
"elements": [
{
"endIndex": 26936,
"startIndex": 26852,
"textRun": {
"content": "Copy the SHA-1 hash, and fill in the last field in the app submission modal dialog.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 26852
},
{
"endIndex": 26975,
"paragraph": {
"elements": [
{
"endIndex": 26975,
"startIndex": 26936,
"textRun": {
"content": "Set up Firebase for iOS: Further steps\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.p0owkml37qhm",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 26936
},
{
"endIndex": 26976,
"paragraph": {
"elements": [
{
"endIndex": 26976,
"startIndex": 26975,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 26975
},
{
"endIndex": 27050,
"paragraph": {
"elements": [
{
"endIndex": 26977,
"startIndex": 26976,
"textRun": {
"content": "O",
"textStyle": {}
}
},
{
"endIndex": 26985,
"startIndex": 26977,
"textRun": {
"content": "pen the ",
"textStyle": {}
}
},
{
"endIndex": 27008,
"startIndex": 26985,
"textRun": {
"content": "ios/Runnder.xcworkspace",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27014,
"startIndex": 27008,
"textRun": {
"content": " with ",
"textStyle": {}
}
},
{
"endIndex": 27019,
"startIndex": 27014,
"textRun": {
"content": "Xcode",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27050,
"startIndex": 27019,
"textRun": {
"content": ". Or with your IDE of choice. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 26976
},
{
"endIndex": 27051,
"paragraph": {
"elements": [
{
"endIndex": 27051,
"startIndex": 27050,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 27050
},
{
"endIndex": 27116,
"paragraph": {
"elements": [
{
"endIndex": 27080,
"startIndex": 27051,
"textRun": {
"content": "On VSCode right click on the ",
"textStyle": {}
}
},
{
"endIndex": 27084,
"startIndex": 27080,
"textRun": {
"content": "ios/",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27101,
"startIndex": 27084,
"textRun": {
"content": " folder and then ",
"textStyle": {}
}
},
{
"endIndex": 27114,
"startIndex": 27101,
"textRun": {
"content": "open in xcode",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27115,
"startIndex": 27114,
"textRun": {
"content": ".",
"textStyle": {}
}
},
{
"endIndex": 27116,
"startIndex": 27115,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 27051
},
{
"endIndex": 27117,
"paragraph": {
"elements": [
{
"endIndex": 27117,
"startIndex": 27116,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 27116
},
{
"endIndex": 27237,
"paragraph": {
"elements": [
{
"endIndex": 27154,
"startIndex": 27117,
"textRun": {
"content": "On Android Studio right click on the ",
"textStyle": {}
}
},
{
"endIndex": 27158,
"startIndex": 27154,
"textRun": {
"content": "ios/",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27180,
"startIndex": 27158,
"textRun": {
"content": " folder then click on ",
"textStyle": {}
}
},
{
"endIndex": 27187,
"startIndex": 27180,
"textRun": {
"content": "flutter",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27204,
"startIndex": 27187,
"textRun": {
"content": " followed by the ",
"textStyle": {}
}
},
{
"endIndex": 27228,
"startIndex": 27204,
"textRun": {
"content": "open iOS module in Xcode",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27235,
"startIndex": 27228,
"textRun": {
"content": " option",
"textStyle": {}
}
},
{
"endIndex": 27237,
"startIndex": 27235,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 27117
},
{
"endIndex": 27238,
"paragraph": {
"elements": [
{
"endIndex": 27238,
"startIndex": 27237,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 27237
},
{
"endIndex": 27500,
"paragraph": {
"elements": [
{
"endIndex": 27282,
"startIndex": 27238,
"textRun": {
"content": "To allow for Google sign-in on iOS, add the ",
"textStyle": {}
}
},
{
"endIndex": 27298,
"startIndex": 27282,
"textRun": {
"content": "CFBundleURLTypes",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27334,
"startIndex": 27298,
"textRun": {
"content": " configuration option to your build ",
"textStyle": {}
}
},
{
"endIndex": 27339,
"startIndex": 27334,
"textRun": {
"content": "plist",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27358,
"startIndex": 27339,
"textRun": {
"content": " files. (Check the ",
"textStyle": {}
}
},
{
"endIndex": 27372,
"startIndex": 27358,
"textRun": {
"content": "google_sign_in",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://pub.dev/packages/google_sign_in#ios-integration"
},
"underline": true,
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27380,
"startIndex": 27372,
"textRun": {
"content": " package",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://pub.dev/packages/google_sign_in#ios-integration"
},
"underline": true
}
}
},
{
"endIndex": 27385,
"startIndex": 27380,
"textRun": {
"content": " docs",
"textStyle": {}
}
},
{
"endIndex": 27437,
"startIndex": 27385,
"textRun": {
"content": " for more information.)\u000bIn this case, the files are ",
"textStyle": {}
}
},
{
"endIndex": 27464,
"startIndex": 27437,
"textRun": {
"content": "ios/Runner/Info-Debug.plist",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27469,
"startIndex": 27464,
"textRun": {
"content": " and ",
"textStyle": {}
}
},
{
"endIndex": 27498,
"startIndex": 27469,
"textRun": {
"content": "ios/Runner/Info-Release.plist",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27500,
"startIndex": 27498,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 27238
},
{
"endIndex": 27501,
"paragraph": {
"elements": [
{
"endIndex": 27501,
"startIndex": 27500,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 27500
},
{
"endIndex": 27574,
"paragraph": {
"elements": [
{
"endIndex": 27574,
"startIndex": 27501,
"textRun": {
"content": "The key-value pair was already added, but their values must be replaced:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 27501
},
{
"endIndex": 27575,
"paragraph": {
"elements": [
{
"endIndex": 27575,
"startIndex": 27574,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 27574
},
{
"endIndex": 27708,
"paragraph": {
"bullet": {
"listId": "kix.m7b3lhbn68t8",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 27593,
"startIndex": 27575,
"textRun": {
"content": "Get the value for ",
"textStyle": {}
}
},
{
"endIndex": 27611,
"startIndex": 27593,
"textRun": {
"content": "REVERSED_CLIENT_ID",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27621,
"startIndex": 27611,
"textRun": {
"content": " from the ",
"textStyle": {}
}
},
{
"endIndex": 27645,
"startIndex": 27621,
"textRun": {
"content": "GoogleService-Info.plist",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27664,
"startIndex": 27645,
"textRun": {
"content": " file, without the ",
"textStyle": {}
}
},
{
"endIndex": 27683,
"startIndex": 27664,
"textRun": {
"content": "<string>..</string>",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27708,
"startIndex": 27683,
"textRun": {
"content": " element surrounding it.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 27575
},
{
"endIndex": 27839,
"paragraph": {
"bullet": {
"listId": "kix.m7b3lhbn68t8",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 27739,
"startIndex": 27708,
"textRun": {
"content": "Replace the value in both your ",
"textStyle": {}
}
},
{
"endIndex": 27766,
"startIndex": 27739,
"textRun": {
"content": "ios/Runner/Info-Debug.plist",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27771,
"startIndex": 27766,
"textRun": {
"content": " and ",
"textStyle": {}
}
},
{
"endIndex": 27800,
"startIndex": 27771,
"textRun": {
"content": "ios/Runner/Info-Release.plist",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27817,
"startIndex": 27800,
"textRun": {
"content": " files under the ",
"textStyle": {}
}
},
{
"endIndex": 27833,
"startIndex": 27817,
"textRun": {
"content": "CFBundleURLTypes",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 27839,
"startIndex": 27833,
"textRun": {
"content": " key.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 27708
},
{
"endIndex": 27840,
"paragraph": {
"elements": [
{
"endIndex": 27840,
"startIndex": 27839,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 27839
},
{
"endIndex": 28243,
"startIndex": 27840,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 28242,
"startIndex": 27841,
"tableCells": [
{
"content": [
{
"endIndex": 27871,
"paragraph": {
"elements": [
{
"endIndex": 27871,
"startIndex": 27843,
"textRun": {
"content": "<key>CFBundleURLTypes</key>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 27843
},
{
"endIndex": 27879,
"paragraph": {
"elements": [
{
"endIndex": 27879,
"startIndex": 27871,
"textRun": {
"content": "<array>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 27871
},
{
"endIndex": 27890,
"paragraph": {
"elements": [
{
"endIndex": 27890,
"startIndex": 27879,
"textRun": {
"content": " <dict>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 27879
},
{
"endIndex": 27926,
"paragraph": {
"elements": [
{
"endIndex": 27926,
"startIndex": 27890,
"textRun": {
"content": " <key>CFBundleTypeRole</key>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 27890
},
{
"endIndex": 27958,
"paragraph": {
"elements": [
{
"endIndex": 27958,
"startIndex": 27926,
"textRun": {
"content": " <string>Editor</string>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 27926
},
{
"endIndex": 27996,
"paragraph": {
"elements": [
{
"endIndex": 27996,
"startIndex": 27958,
"textRun": {
"content": " <key>CFBundleURLSchemes</key>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 27958
},
{
"endIndex": 28012,
"paragraph": {
"elements": [
{
"endIndex": 28012,
"startIndex": 27996,
"textRun": {
"content": " <array>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 27996
},
{
"endIndex": 28058,
"paragraph": {
"elements": [
{
"endIndex": 28058,
"startIndex": 28012,
"textRun": {
"content": " <!-- TODO Replace this value: -->\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 28012
},
{
"endIndex": 28139,
"paragraph": {
"elements": [
{
"endIndex": 28139,
"startIndex": 28058,
"textRun": {
"content": " <!-- Copied from GoogleService-Info.plist key REVERSED_CLIENT_ID -->\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 28058
},
{
"endIndex": 28204,
"paragraph": {
"elements": [
{
"endIndex": 28204,
"startIndex": 28139,
"textRun": {
"content": " <string>com.googleusercontent.apps.REDACTED</string>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 28139
},
{
"endIndex": 28221,
"paragraph": {
"elements": [
{
"endIndex": 28221,
"startIndex": 28204,
"textRun": {
"content": " </array>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 28204
},
{
"endIndex": 28233,
"paragraph": {
"elements": [
{
"endIndex": 28233,
"startIndex": 28221,
"textRun": {
"content": " </dict>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 28221
},
{
"endIndex": 28242,
"paragraph": {
"elements": [
{
"endIndex": 28242,
"startIndex": 28233,
"textRun": {
"content": "</array>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 28233
}
],
"endIndex": 28242,
"startIndex": 27842,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 28244,
"paragraph": {
"elements": [
{
"endIndex": 28244,
"startIndex": 28243,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 28243
},
{
"endIndex": 28286,
"paragraph": {
"elements": [
{
"endIndex": 28286,
"startIndex": 28244,
"textRun": {
"content": "You are now done with the Firebase setup.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 28244
},
{
"endIndex": 28288,
"paragraph": {
"elements": [
{
"endIndex": 28287,
"pageBreak": {
"textStyle": {}
},
"startIndex": 28286
},
{
"endIndex": 28288,
"startIndex": 28287,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.u6c3ytk6uvlf",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 28286
},
{
"endIndex": 28315,
"paragraph": {
"elements": [
{
"endIndex": 28315,
"startIndex": 28288,
"textRun": {
"content": "Listen to purchase updates\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.mcahbl9vdrpn",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 28288
},
{
"endIndex": 28316,
"paragraph": {
"elements": [
{
"endIndex": 28316,
"startIndex": 28315,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 28315
},
{
"endIndex": 28481,
"paragraph": {
"elements": [
{
"endIndex": 28481,
"startIndex": 28316,
"textRun": {
"content": "In this part of the codelab youβll prepare the app for purchasing the products. This process includes listening to purchase updates and errors after the app starts.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 28316
},
{
"endIndex": 28482,
"paragraph": {
"elements": [
{
"endIndex": 28482,
"startIndex": 28481,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 28481
},
{
"endIndex": 28509,
"paragraph": {
"elements": [
{
"endIndex": 28509,
"startIndex": 28482,
"textRun": {
"content": "Listen to purchase updates\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.fcw6hzds1nq",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 28482
},
{
"endIndex": 28510,
"paragraph": {
"elements": [
{
"endIndex": 28510,
"startIndex": 28509,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 28509
},
{
"endIndex": 28886,
"paragraph": {
"elements": [
{
"endIndex": 28513,
"startIndex": 28510,
"textRun": {
"content": "In ",
"textStyle": {}
}
},
{
"endIndex": 28523,
"startIndex": 28513,
"textRun": {
"content": "main.dart,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 28540,
"startIndex": 28523,
"textRun": {
"content": " find the widget ",
"textStyle": {}
}
},
{
"endIndex": 28550,
"startIndex": 28540,
"textRun": {
"content": "MyHomePage",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 28562,
"startIndex": 28550,
"textRun": {
"content": " that has a ",
"textStyle": {}
}
},
{
"endIndex": 28570,
"startIndex": 28562,
"textRun": {
"content": "Scaffold",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 28578,
"startIndex": 28570,
"textRun": {
"content": " with a ",
"textStyle": {}
}
},
{
"endIndex": 28597,
"startIndex": 28578,
"textRun": {
"content": "BottomNavigationBar",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 28649,
"startIndex": 28597,
"textRun": {
"content": " containing two pages. This page also creates three ",
"textStyle": {}
}
},
{
"endIndex": 28657,
"startIndex": 28649,
"textRun": {
"content": "Provider",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 28663,
"startIndex": 28657,
"textRun": {
"content": "s for ",
"textStyle": {}
}
},
{
"endIndex": 28674,
"startIndex": 28663,
"textRun": {
"content": "DashCounter",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 28676,
"startIndex": 28674,
"textRun": {
"content": ", ",
"textStyle": {}
}
},
{
"endIndex": 28689,
"startIndex": 28676,
"textRun": {
"content": "DashUpgrades,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 28694,
"startIndex": 28689,
"textRun": {
"content": " and ",
"textStyle": {}
}
},
{
"endIndex": 28707,
"startIndex": 28694,
"textRun": {
"content": "DashPurchases",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 28709,
"startIndex": 28707,
"textRun": {
"content": ". ",
"textStyle": {}
}
},
{
"endIndex": 28720,
"startIndex": 28709,
"textRun": {
"content": "DashCounter",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 28760,
"startIndex": 28720,
"textRun": {
"content": " tracks the current count of Dashes and ",
"textStyle": {}
}
},
{
"endIndex": 28764,
"startIndex": 28760,
"textRun": {
"content": "auto",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
},
{
"endIndex": 28782,
"startIndex": 28764,
"textRun": {
"content": " increments them. ",
"textStyle": {}
}
},
{
"endIndex": 28794,
"startIndex": 28782,
"textRun": {
"content": "DashUpgrades",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 28870,
"startIndex": 28794,
"textRun": {
"content": " manages the upgrades that you can buy with Dashes. This codelab focuses on ",
"textStyle": {}
}
},
{
"endIndex": 28883,
"startIndex": 28870,
"textRun": {
"content": "DashPurchases",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 28886,
"startIndex": 28883,
"textRun": {
"content": ". \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 28510
},
{
"endIndex": 28887,
"paragraph": {
"elements": [
{
"endIndex": 28887,
"startIndex": 28886,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 28886
},
{
"endIndex": 29099,
"paragraph": {
"elements": [
{
"endIndex": 29086,
"startIndex": 28887,
"textRun": {
"content": "By default, the object of a provider is defined when that object is first requested. This object listens to purchase updates directly when the app starts, so disable lazy loading on this object with ",
"textStyle": {}
}
},
{
"endIndex": 29097,
"startIndex": 29086,
"textRun": {
"content": "lazy: false",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 29099,
"startIndex": 29097,
"textRun": {
"content": ":\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 28887
},
{
"endIndex": 29113,
"paragraph": {
"elements": [
{
"endIndex": 29112,
"startIndex": 29099,
"textRun": {
"content": "lib/main.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_07/app/lib/main.dart#L79-L84"
},
"underline": true
}
}
},
{
"endIndex": 29113,
"startIndex": 29112,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.jk048wxvrjkx",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 29099
},
{
"endIndex": 29250,
"startIndex": 29113,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 29249,
"startIndex": 29114,
"tableCells": [
{
"content": [
{
"endIndex": 29155,
"paragraph": {
"elements": [
{
"endIndex": 29155,
"startIndex": 29116,
"textRun": {
"content": "ChangeNotifierProvider<DashPurchases>(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29116
},
{
"endIndex": 29193,
"paragraph": {
"elements": [
{
"endIndex": 29193,
"startIndex": 29155,
"textRun": {
"content": " create: (context) => DashPurchases(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29155
},
{
"endIndex": 29226,
"paragraph": {
"elements": [
{
"endIndex": 29226,
"startIndex": 29193,
"textRun": {
"content": " context.read<DashCounter>(),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29193
},
{
"endIndex": 29231,
"paragraph": {
"elements": [
{
"endIndex": 29231,
"startIndex": 29226,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29226
},
{
"endIndex": 29246,
"paragraph": {
"elements": [
{
"endIndex": 29246,
"startIndex": 29231,
"textRun": {
"content": " lazy: false,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29231
},
{
"endIndex": 29249,
"paragraph": {
"elements": [
{
"endIndex": 29249,
"startIndex": 29246,
"textRun": {
"content": "),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29246
}
],
"endIndex": 29249,
"startIndex": 29115,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 29251,
"paragraph": {
"elements": [
{
"endIndex": 29251,
"startIndex": 29250,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 29250
},
{
"endIndex": 29252,
"paragraph": {
"elements": [
{
"endIndex": 29252,
"startIndex": 29251,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 29251
},
{
"endIndex": 29485,
"paragraph": {
"elements": [
{
"endIndex": 29285,
"startIndex": 29252,
"textRun": {
"content": "You also need an instance of the ",
"textStyle": {}
}
},
{
"endIndex": 29308,
"startIndex": 29285,
"textRun": {
"content": "InAppPurchaseConnection",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 29474,
"startIndex": 29308,
"textRun": {
"content": ". However, to keep the app testable you need some way to mock the connection. To do this, create an instance method that can be overridden in the test, and add it to ",
"textStyle": {}
}
},
{
"endIndex": 29483,
"startIndex": 29474,
"textRun": {
"content": "main.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 29485,
"startIndex": 29483,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 29252
},
{
"endIndex": 29499,
"paragraph": {
"elements": [
{
"endIndex": 29498,
"startIndex": 29485,
"textRun": {
"content": "lib/main.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_07/app/lib/main.dart#L12-L24"
},
"underline": true
}
}
},
{
"endIndex": 29499,
"startIndex": 29498,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.o3vvyif9w0v",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 29485
},
{
"endIndex": 29784,
"startIndex": 29499,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 29783,
"startIndex": 29500,
"tableCells": [
{
"content": [
{
"endIndex": 29544,
"paragraph": {
"elements": [
{
"endIndex": 29544,
"startIndex": 29502,
"textRun": {
"content": "// Gives the option to override in tests.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29502
},
{
"endIndex": 29566,
"paragraph": {
"elements": [
{
"endIndex": 29566,
"startIndex": 29544,
"textRun": {
"content": "class IAPConnection {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29544
},
{
"endIndex": 29601,
"paragraph": {
"elements": [
{
"endIndex": 29601,
"startIndex": 29566,
"textRun": {
"content": " static InAppPurchase? _instance;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29566
},
{
"endIndex": 29646,
"paragraph": {
"elements": [
{
"endIndex": 29646,
"startIndex": 29601,
"textRun": {
"content": " static set instance(InAppPurchase value) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29601
},
{
"endIndex": 29669,
"paragraph": {
"elements": [
{
"endIndex": 29669,
"startIndex": 29646,
"textRun": {
"content": " _instance = value;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29646
},
{
"endIndex": 29673,
"paragraph": {
"elements": [
{
"endIndex": 29673,
"startIndex": 29669,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29669
},
{
"endIndex": 29674,
"paragraph": {
"elements": [
{
"endIndex": 29674,
"startIndex": 29673,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29673
},
{
"endIndex": 29712,
"paragraph": {
"elements": [
{
"endIndex": 29712,
"startIndex": 29674,
"textRun": {
"content": " static InAppPurchase get instance {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29674
},
{
"endIndex": 29754,
"paragraph": {
"elements": [
{
"endIndex": 29754,
"startIndex": 29712,
"textRun": {
"content": " _instance ??= InAppPurchase.instance;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29712
},
{
"endIndex": 29777,
"paragraph": {
"elements": [
{
"endIndex": 29777,
"startIndex": 29754,
"textRun": {
"content": " return _instance!;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29754
},
{
"endIndex": 29781,
"paragraph": {
"elements": [
{
"endIndex": 29781,
"startIndex": 29777,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29777
},
{
"endIndex": 29783,
"paragraph": {
"elements": [
{
"endIndex": 29783,
"startIndex": 29781,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29781
}
],
"endIndex": 29783,
"startIndex": 29501,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 29785,
"paragraph": {
"elements": [
{
"endIndex": 29785,
"startIndex": 29784,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 29784
},
{
"endIndex": 29932,
"paragraph": {
"elements": [
{
"endIndex": 29863,
"startIndex": 29785,
"textRun": {
"content": "You must slightly update the test if you want the test to keep working. Check ",
"textStyle": {}
}
},
{
"endIndex": 29879,
"startIndex": 29863,
"textRun": {
"content": "widget_test.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_07/app/test/widget_test.dart"
},
"underline": true
}
}
},
{
"endIndex": 29913,
"startIndex": 29879,
"textRun": {
"content": " on GitHub for the full code for ",
"textStyle": {}
}
},
{
"endIndex": 29930,
"startIndex": 29913,
"textRun": {
"content": "TestIAPConnection",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 29932,
"startIndex": 29930,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 29785
},
{
"endIndex": 29954,
"paragraph": {
"elements": [
{
"endIndex": 29953,
"startIndex": 29932,
"textRun": {
"content": "test/widget_test.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_07/app/test/widget_test.dart#L7-L13"
},
"underline": true
}
}
},
{
"endIndex": 29954,
"startIndex": 29953,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.iq06bszch0h4",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 29932
},
{
"endIndex": 30185,
"startIndex": 29954,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 30184,
"startIndex": 29955,
"tableCells": [
{
"content": [
{
"endIndex": 29971,
"paragraph": {
"elements": [
{
"endIndex": 29971,
"startIndex": 29957,
"textRun": {
"content": "void main() {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29957
},
{
"endIndex": 30029,
"paragraph": {
"elements": [
{
"endIndex": 30029,
"startIndex": 29971,
"textRun": {
"content": " testWidgets('App starts', (WidgetTester tester) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 29971
},
{
"endIndex": 30079,
"paragraph": {
"elements": [
{
"endIndex": 30079,
"startIndex": 30029,
"textRun": {
"content": " IAPConnection.instance = TestIAPConnection();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30029
},
{
"endIndex": 30123,
"paragraph": {
"elements": [
{
"endIndex": 30123,
"startIndex": 30079,
"textRun": {
"content": " await tester.pumpWidget(const MyApp());\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30079
},
{
"endIndex": 30176,
"paragraph": {
"elements": [
{
"endIndex": 30176,
"startIndex": 30123,
"textRun": {
"content": " expect(find.text('Tim Sneath'), findsOneWidget);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30123
},
{
"endIndex": 30182,
"paragraph": {
"elements": [
{
"endIndex": 30182,
"startIndex": 30176,
"textRun": {
"content": " });\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30176
},
{
"endIndex": 30184,
"paragraph": {
"elements": [
{
"endIndex": 30184,
"startIndex": 30182,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30182
}
],
"endIndex": 30184,
"startIndex": 29956,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 30186,
"paragraph": {
"elements": [
{
"endIndex": 30186,
"startIndex": 30185,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 30185
},
{
"endIndex": 30187,
"paragraph": {
"elements": [
{
"endIndex": 30187,
"startIndex": 30186,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 30186
},
{
"endIndex": 30352,
"paragraph": {
"elements": [
{
"endIndex": 30190,
"startIndex": 30187,
"textRun": {
"content": "In ",
"textStyle": {}
}
},
{
"endIndex": 30219,
"startIndex": 30190,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 30223,
"startIndex": 30219,
"textRun": {
"content": ", go",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
},
{
"endIndex": 30240,
"startIndex": 30223,
"textRun": {
"content": " to the code for ",
"textStyle": {}
}
},
{
"endIndex": 30268,
"startIndex": 30240,
"textRun": {
"content": "DashPurchases ChangeNotifier",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 30297,
"startIndex": 30268,
"textRun": {
"content": ". Currently, there is only a ",
"textStyle": {}
}
},
{
"endIndex": 30308,
"startIndex": 30297,
"textRun": {
"content": "DashCounter",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 30352,
"startIndex": 30308,
"textRun": {
"content": " that you can add to your purchased Dashes.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 30187
},
{
"endIndex": 30353,
"paragraph": {
"elements": [
{
"endIndex": 30353,
"startIndex": 30352,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 30352
},
{
"endIndex": 30559,
"paragraph": {
"elements": [
{
"endIndex": 30389,
"startIndex": 30353,
"textRun": {
"content": "Add a stream subscription property, ",
"textStyle": {}
}
},
{
"endIndex": 30402,
"startIndex": 30389,
"textRun": {
"content": "_subscription",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 30412,
"startIndex": 30402,
"textRun": {
"content": " (of type ",
"textStyle": {}
}
},
{
"endIndex": 30468,
"startIndex": 30412,
"textRun": {
"content": "StreamSubscription<List<PurchaseDetails>> _subscription;",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 30475,
"startIndex": 30468,
"textRun": {
"content": "), the ",
"textStyle": {}
}
},
{
"endIndex": 30498,
"startIndex": 30475,
"textRun": {
"content": "IAPConnection.instance,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 30559,
"startIndex": 30498,
"textRun": {
"content": " and the imports. The resulting code should look at follows:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 30353
},
{
"endIndex": 30589,
"paragraph": {
"elements": [
{
"endIndex": 30588,
"startIndex": 30559,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_07/app/lib/logic/dash_purchases.dart#L14"
},
"underline": true
}
}
},
{
"endIndex": 30589,
"startIndex": 30588,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.80zn0qqce5ar",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 30559
},
{
"endIndex": 30840,
"startIndex": 30589,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 30839,
"startIndex": 30590,
"tableCells": [
{
"content": [
{
"endIndex": 30647,
"paragraph": {
"elements": [
{
"endIndex": 30647,
"startIndex": 30592,
"textRun": {
"content": "import 'package:in_app_purchase/in_app_purchase.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30592
},
{
"endIndex": 30648,
"paragraph": {
"elements": [
{
"endIndex": 30648,
"startIndex": 30647,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30647
},
{
"endIndex": 30693,
"paragraph": {
"elements": [
{
"endIndex": 30693,
"startIndex": 30648,
"textRun": {
"content": "class DashPurchases extends ChangeNotifier {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30648
},
{
"endIndex": 30757,
"paragraph": {
"elements": [
{
"endIndex": 30757,
"startIndex": 30693,
"textRun": {
"content": " late StreamSubscription<List<PurchaseDetails>> _subscription;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30693
},
{
"endIndex": 30805,
"paragraph": {
"elements": [
{
"endIndex": 30805,
"startIndex": 30757,
"textRun": {
"content": " final iapConnection = IAPConnection.instance;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30757
},
{
"endIndex": 30806,
"paragraph": {
"elements": [
{
"endIndex": 30806,
"startIndex": 30805,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30805
},
{
"endIndex": 30837,
"paragraph": {
"elements": [
{
"endIndex": 30837,
"startIndex": 30806,
"textRun": {
"content": " DashPurchases(this.counter);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30806
},
{
"endIndex": 30839,
"paragraph": {
"elements": [
{
"endIndex": 30839,
"startIndex": 30837,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 30837
}
],
"endIndex": 30839,
"startIndex": 30591,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 30841,
"paragraph": {
"elements": [
{
"endIndex": 30841,
"startIndex": 30840,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 30840
},
{
"endIndex": 31147,
"paragraph": {
"elements": [
{
"endIndex": 30845,
"startIndex": 30841,
"textRun": {
"content": "The ",
"textStyle": {}
}
},
{
"endIndex": 30849,
"startIndex": 30845,
"textRun": {
"content": "late",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 30870,
"startIndex": 30849,
"textRun": {
"content": " keyword is added to ",
"textStyle": {}
}
},
{
"endIndex": 30883,
"startIndex": 30870,
"textRun": {
"content": "_subscription",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 30896,
"startIndex": 30883,
"textRun": {
"content": " because the ",
"textStyle": {}
}
},
{
"endIndex": 30909,
"startIndex": 30896,
"textRun": {
"content": "_subscription",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 30924,
"startIndex": 30909,
"textRun": {
"content": " is initialized",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
},
{
"endIndex": 31096,
"startIndex": 30924,
"textRun": {
"content": " in the constructor. This project is set up to be non-nullable by default (NNBD), which means that properties that arenβt declared nullable must have a non-null value. The ",
"textStyle": {}
}
},
{
"endIndex": 31100,
"startIndex": 31096,
"textRun": {
"content": "late",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 31147,
"startIndex": 31100,
"textRun": {
"content": " qualifier lets you delay defining this value.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 30841
},
{
"endIndex": 31148,
"paragraph": {
"elements": [
{
"endIndex": 31148,
"startIndex": 31147,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 31147
},
{
"endIndex": 31290,
"paragraph": {
"elements": [
{
"endIndex": 31176,
"startIndex": 31148,
"textRun": {
"content": "In the constructor, get the ",
"textStyle": {}
}
},
{
"endIndex": 31197,
"startIndex": 31176,
"textRun": {
"content": "purchaseUpdatedStream",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 31240,
"startIndex": 31197,
"textRun": {
"content": " and start listening to the stream. In the ",
"textStyle": {}
}
},
{
"endIndex": 31249,
"startIndex": 31240,
"textRun": {
"content": "dispose()",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 31290,
"startIndex": 31249,
"textRun": {
"content": " method, cancel the stream subscription.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 31148
},
{
"endIndex": 31320,
"paragraph": {
"elements": [
{
"endIndex": 31319,
"startIndex": 31290,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_07/app/lib/logic/dash_purchases.dart#L31-L69"
},
"underline": true
}
}
},
{
"endIndex": 31320,
"startIndex": 31319,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.jo3s1whrc6q6",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 31290
},
{
"endIndex": 32159,
"startIndex": 31320,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 32158,
"startIndex": 31321,
"tableCells": [
{
"content": [
{
"endIndex": 31368,
"paragraph": {
"elements": [
{
"endIndex": 31368,
"startIndex": 31323,
"textRun": {
"content": "class DashPurchases extends ChangeNotifier {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31323
},
{
"endIndex": 31391,
"paragraph": {
"elements": [
{
"endIndex": 31391,
"startIndex": 31368,
"textRun": {
"content": " DashCounter counter;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31368
},
{
"endIndex": 31455,
"paragraph": {
"elements": [
{
"endIndex": 31455,
"startIndex": 31391,
"textRun": {
"content": " late StreamSubscription<List<PurchaseDetails>> _subscription;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31391
},
{
"endIndex": 31503,
"paragraph": {
"elements": [
{
"endIndex": 31503,
"startIndex": 31455,
"textRun": {
"content": " final iapConnection = IAPConnection.instance;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31455
},
{
"endIndex": 31504,
"paragraph": {
"elements": [
{
"endIndex": 31504,
"startIndex": 31503,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31503
},
{
"endIndex": 31536,
"paragraph": {
"elements": [
{
"endIndex": 31536,
"startIndex": 31504,
"textRun": {
"content": " DashPurchases(this.counter) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31504
},
{
"endIndex": 31564,
"paragraph": {
"elements": [
{
"endIndex": 31564,
"startIndex": 31536,
"textRun": {
"content": " final purchaseUpdated =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31536
},
{
"endIndex": 31602,
"paragraph": {
"elements": [
{
"endIndex": 31602,
"startIndex": 31564,
"textRun": {
"content": " iapConnection.purchaseStream;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31564
},
{
"endIndex": 31646,
"paragraph": {
"elements": [
{
"endIndex": 31646,
"startIndex": 31602,
"textRun": {
"content": " _subscription = purchaseUpdated.listen(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31602
},
{
"endIndex": 31671,
"paragraph": {
"elements": [
{
"endIndex": 31671,
"startIndex": 31646,
"textRun": {
"content": " _onPurchaseUpdate,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31646
},
{
"endIndex": 31706,
"paragraph": {
"elements": [
{
"endIndex": 31706,
"startIndex": 31671,
"textRun": {
"content": " onDone: _updateStreamOnDone,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31671
},
{
"endIndex": 31743,
"paragraph": {
"elements": [
{
"endIndex": 31743,
"startIndex": 31706,
"textRun": {
"content": " onError: _updateStreamOnError,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31706
},
{
"endIndex": 31750,
"paragraph": {
"elements": [
{
"endIndex": 31750,
"startIndex": 31743,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31743
},
{
"endIndex": 31754,
"paragraph": {
"elements": [
{
"endIndex": 31754,
"startIndex": 31750,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31750
},
{
"endIndex": 31755,
"paragraph": {
"elements": [
{
"endIndex": 31755,
"startIndex": 31754,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31754
},
{
"endIndex": 31767,
"paragraph": {
"elements": [
{
"endIndex": 31767,
"startIndex": 31755,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31755
},
{
"endIndex": 31786,
"paragraph": {
"elements": [
{
"endIndex": 31786,
"startIndex": 31767,
"textRun": {
"content": " void dispose() {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31767
},
{
"endIndex": 31814,
"paragraph": {
"elements": [
{
"endIndex": 31814,
"startIndex": 31786,
"textRun": {
"content": " _subscription.cancel();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31786
},
{
"endIndex": 31835,
"paragraph": {
"elements": [
{
"endIndex": 31835,
"startIndex": 31814,
"textRun": {
"content": " super.dispose();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31814
},
{
"endIndex": 31839,
"paragraph": {
"elements": [
{
"endIndex": 31839,
"startIndex": 31835,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31835
},
{
"endIndex": 31840,
"paragraph": {
"elements": [
{
"endIndex": 31840,
"startIndex": 31839,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31839
},
{
"endIndex": 31895,
"paragraph": {
"elements": [
{
"endIndex": 31895,
"startIndex": 31840,
"textRun": {
"content": " Future<void> buy(PurchasableProduct product) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31840
},
{
"endIndex": 31910,
"paragraph": {
"elements": [
{
"endIndex": 31910,
"startIndex": 31895,
"textRun": {
"content": " // omitted\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31895
},
{
"endIndex": 31914,
"paragraph": {
"elements": [
{
"endIndex": 31914,
"startIndex": 31910,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31910
},
{
"endIndex": 31915,
"paragraph": {
"elements": [
{
"endIndex": 31915,
"startIndex": 31914,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31914
},
{
"endIndex": 31985,
"paragraph": {
"elements": [
{
"endIndex": 31985,
"startIndex": 31915,
"textRun": {
"content": " void _onPurchaseUpdate(List<PurchaseDetails> purchaseDetailsList) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31915
},
{
"endIndex": 32014,
"paragraph": {
"elements": [
{
"endIndex": 32014,
"startIndex": 31985,
"textRun": {
"content": " // Handle purchases here\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 31985
},
{
"endIndex": 32018,
"paragraph": {
"elements": [
{
"endIndex": 32018,
"startIndex": 32014,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32014
},
{
"endIndex": 32019,
"paragraph": {
"elements": [
{
"endIndex": 32019,
"startIndex": 32018,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32018
},
{
"endIndex": 32050,
"paragraph": {
"elements": [
{
"endIndex": 32050,
"startIndex": 32019,
"textRun": {
"content": " void _updateStreamOnDone() {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32019
},
{
"endIndex": 32078,
"paragraph": {
"elements": [
{
"endIndex": 32078,
"startIndex": 32050,
"textRun": {
"content": " _subscription.cancel();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32050
},
{
"endIndex": 32082,
"paragraph": {
"elements": [
{
"endIndex": 32082,
"startIndex": 32078,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32078
},
{
"endIndex": 32083,
"paragraph": {
"elements": [
{
"endIndex": 32083,
"startIndex": 32082,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32082
},
{
"endIndex": 32128,
"paragraph": {
"elements": [
{
"endIndex": 32128,
"startIndex": 32083,
"textRun": {
"content": " void _updateStreamOnError(dynamic error) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32083
},
{
"endIndex": 32152,
"paragraph": {
"elements": [
{
"endIndex": 32152,
"startIndex": 32128,
"textRun": {
"content": " //Handle error here\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32128
},
{
"endIndex": 32156,
"paragraph": {
"elements": [
{
"endIndex": 32156,
"startIndex": 32152,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32152
},
{
"endIndex": 32158,
"paragraph": {
"elements": [
{
"endIndex": 32158,
"startIndex": 32156,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32156
}
],
"endIndex": 32158,
"startIndex": 31322,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 32160,
"paragraph": {
"elements": [
{
"endIndex": 32160,
"startIndex": 32159,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 32159
},
{
"endIndex": 32252,
"paragraph": {
"elements": [
{
"endIndex": 32252,
"startIndex": 32160,
"textRun": {
"content": "Now, the app receives the purchase updates so, in the next section, youβll make a purchase!\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 32160
},
{
"endIndex": 32253,
"paragraph": {
"elements": [
{
"endIndex": 32253,
"startIndex": 32252,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 32252
},
{
"endIndex": 32349,
"paragraph": {
"elements": [
{
"endIndex": 32293,
"startIndex": 32253,
"textRun": {
"content": "Before you proceed, run the tests with β",
"textStyle": {}
}
},
{
"endIndex": 32306,
"startIndex": 32293,
"textRun": {
"content": "flutter testβ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 32349,
"startIndex": 32306,
"textRun": {
"content": " to verify everything is set up correctly.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 32253
},
{
"endIndex": 32350,
"paragraph": {
"elements": [
{
"endIndex": 32350,
"startIndex": 32349,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 32349
},
{
"endIndex": 32481,
"startIndex": 32350,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 32480,
"startIndex": 32351,
"tableCells": [
{
"content": [
{
"endIndex": 32368,
"paragraph": {
"elements": [
{
"endIndex": 32368,
"startIndex": 32353,
"textRun": {
"content": "$ flutter test\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32353
},
{
"endIndex": 32369,
"paragraph": {
"elements": [
{
"endIndex": 32369,
"startIndex": 32368,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32368
},
{
"endIndex": 32480,
"paragraph": {
"elements": [
{
"endIndex": 32480,
"startIndex": 32369,
"textRun": {
"content": "00:01 +1: All tests passed! \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32369
}
],
"endIndex": 32480,
"startIndex": 32352,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 32483,
"paragraph": {
"elements": [
{
"endIndex": 32482,
"pageBreak": {
"textStyle": {}
},
"startIndex": 32481
},
{
"endIndex": 32483,
"startIndex": 32482,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.aota0lp76cf5",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 32481
},
{
"endIndex": 32498,
"paragraph": {
"elements": [
{
"endIndex": 32498,
"startIndex": 32483,
"textRun": {
"content": "Make purchases\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.sjju57tbpys9",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 32483
},
{
"endIndex": 32499,
"paragraph": {
"elements": [
{
"endIndex": 32499,
"startIndex": 32498,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 32498
},
{
"endIndex": 32716,
"paragraph": {
"elements": [
{
"endIndex": 32716,
"startIndex": 32499,
"textRun": {
"content": "In this part of the codelab, youβll replace the currently existing mock products with real purchasable products. These products are loaded from the stores, shown in a list, and are purchased when tapping the product.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 32499
},
{
"endIndex": 32741,
"paragraph": {
"elements": [
{
"endIndex": 32741,
"startIndex": 32716,
"textRun": {
"content": "Adapt PurchasableProduct\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.x906iqehvpr2",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 32716
},
{
"endIndex": 32913,
"paragraph": {
"elements": [
{
"endIndex": 32759,
"startIndex": 32741,
"textRun": {
"content": "PurchasableProduct",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 32835,
"startIndex": 32759,
"textRun": {
"content": " displays a mock product. Update it to show actual content by replacing the ",
"textStyle": {}
}
},
{
"endIndex": 32853,
"startIndex": 32835,
"textRun": {
"content": "PurchasableProduct",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 32863,
"startIndex": 32853,
"textRun": {
"content": " class in ",
"textStyle": {}
}
},
{
"endIndex": 32887,
"startIndex": 32863,
"textRun": {
"content": "purchasable_product.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 32913,
"startIndex": 32887,
"textRun": {
"content": " with the following code:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 32741
},
{
"endIndex": 32948,
"paragraph": {
"elements": [
{
"endIndex": 32947,
"startIndex": 32913,
"textRun": {
"content": "lib/model/purchasable_product.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_08/app/lib/model/purchasable_product.dart"
},
"underline": true
}
}
},
{
"endIndex": 32948,
"startIndex": 32947,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.rglablhgfq77",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 32913
},
{
"endIndex": 33420,
"startIndex": 32948,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 33419,
"startIndex": 32949,
"tableCells": [
{
"content": [
{
"endIndex": 33006,
"paragraph": {
"elements": [
{
"endIndex": 33006,
"startIndex": 32951,
"textRun": {
"content": "import 'package:in_app_purchase/in_app_purchase.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 32951
},
{
"endIndex": 33007,
"paragraph": {
"elements": [
{
"endIndex": 33007,
"startIndex": 33006,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33006
},
{
"endIndex": 33028,
"paragraph": {
"elements": [
{
"endIndex": 33028,
"startIndex": 33007,
"textRun": {
"content": "enum ProductStatus {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33007
},
{
"endIndex": 33043,
"paragraph": {
"elements": [
{
"endIndex": 33043,
"startIndex": 33028,
"textRun": {
"content": " purchasable,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33028
},
{
"endIndex": 33056,
"paragraph": {
"elements": [
{
"endIndex": 33056,
"startIndex": 33043,
"textRun": {
"content": " purchased,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33043
},
{
"endIndex": 33067,
"paragraph": {
"elements": [
{
"endIndex": 33067,
"startIndex": 33056,
"textRun": {
"content": " pending,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33056
},
{
"endIndex": 33069,
"paragraph": {
"elements": [
{
"endIndex": 33069,
"startIndex": 33067,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33067
},
{
"endIndex": 33070,
"paragraph": {
"elements": [
{
"endIndex": 33070,
"startIndex": 33069,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33069
},
{
"endIndex": 33097,
"paragraph": {
"elements": [
{
"endIndex": 33097,
"startIndex": 33070,
"textRun": {
"content": "class PurchasableProduct {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33070
},
{
"endIndex": 33135,
"paragraph": {
"elements": [
{
"endIndex": 33135,
"startIndex": 33097,
"textRun": {
"content": " String get id => productDetails.id;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33097
},
{
"endIndex": 33179,
"paragraph": {
"elements": [
{
"endIndex": 33179,
"startIndex": 33135,
"textRun": {
"content": " String get title => productDetails.title;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33135
},
{
"endIndex": 33235,
"paragraph": {
"elements": [
{
"endIndex": 33235,
"startIndex": 33179,
"textRun": {
"content": " String get description => productDetails.description;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33179
},
{
"endIndex": 33279,
"paragraph": {
"elements": [
{
"endIndex": 33279,
"startIndex": 33235,
"textRun": {
"content": " String get price => productDetails.price;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33235
},
{
"endIndex": 33303,
"paragraph": {
"elements": [
{
"endIndex": 33303,
"startIndex": 33279,
"textRun": {
"content": " ProductStatus status;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33279
},
{
"endIndex": 33336,
"paragraph": {
"elements": [
{
"endIndex": 33336,
"startIndex": 33303,
"textRun": {
"content": " ProductDetails productDetails;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33303
},
{
"endIndex": 33337,
"paragraph": {
"elements": [
{
"endIndex": 33337,
"startIndex": 33336,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33336
},
{
"endIndex": 33417,
"paragraph": {
"elements": [
{
"endIndex": 33417,
"startIndex": 33337,
"textRun": {
"content": " PurchasableProduct(this.productDetails) : status = ProductStatus.purchasable;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33337
},
{
"endIndex": 33419,
"paragraph": {
"elements": [
{
"endIndex": 33419,
"startIndex": 33417,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33417
}
],
"endIndex": 33419,
"startIndex": 32950,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 33421,
"paragraph": {
"elements": [
{
"endIndex": 33421,
"startIndex": 33420,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 33420
},
{
"endIndex": 33549,
"paragraph": {
"elements": [
{
"endIndex": 33424,
"startIndex": 33421,
"textRun": {
"content": "In ",
"textStyle": {}
}
},
{
"endIndex": 33444,
"startIndex": 33424,
"textRun": {
"content": "dash_purchases.dart,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 33509,
"startIndex": 33444,
"textRun": {
"content": " remove the dummy purchases and replace them with an empty list, ",
"textStyle": {}
}
},
{
"endIndex": 33548,
"startIndex": 33509,
"textRun": {
"content": "List<PurchasableProduct> products = [];",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 33549,
"startIndex": 33548,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 33421
},
{
"endIndex": 33574,
"paragraph": {
"elements": [
{
"endIndex": 33574,
"startIndex": 33549,
"textRun": {
"content": "Load available purchases\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.b00evudm79da",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 33549
},
{
"endIndex": 33575,
"paragraph": {
"elements": [
{
"endIndex": 33575,
"startIndex": 33574,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 33574
},
{
"endIndex": 33808,
"paragraph": {
"elements": [
{
"endIndex": 33742,
"startIndex": 33575,
"textRun": {
"content": "To give a user the ability to make a purchase, load the purchases from the store. First, check whether the store is available. When the store isnβt available, setting ",
"textStyle": {}
}
},
{
"endIndex": 33752,
"startIndex": 33742,
"textRun": {
"content": "storeState",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 33756,
"startIndex": 33752,
"textRun": {
"content": " to ",
"textStyle": {}
}
},
{
"endIndex": 33768,
"startIndex": 33756,
"textRun": {
"content": "notAvailable",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 33807,
"startIndex": 33768,
"textRun": {
"content": " displays an error message to the user.",
"textStyle": {}
}
},
{
"endIndex": 33808,
"startIndex": 33807,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 33575
},
{
"endIndex": 33838,
"paragraph": {
"elements": [
{
"endIndex": 33837,
"startIndex": 33808,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_08/app/lib/logic/dash_purchases.dart#L32-L38"
},
"underline": true
}
}
},
{
"endIndex": 33838,
"startIndex": 33837,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.mgrbbglmvoez",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 33808
},
{
"endIndex": 34053,
"startIndex": 33838,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 34052,
"startIndex": 33839,
"tableCells": [
{
"content": [
{
"endIndex": 33880,
"paragraph": {
"elements": [
{
"endIndex": 33880,
"startIndex": 33841,
"textRun": {
"content": " Future<void> loadPurchases() async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33841
},
{
"endIndex": 33937,
"paragraph": {
"elements": [
{
"endIndex": 33937,
"startIndex": 33880,
"textRun": {
"content": " final available = await iapConnection.isAvailable();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33880
},
{
"endIndex": 33959,
"paragraph": {
"elements": [
{
"endIndex": 33959,
"startIndex": 33937,
"textRun": {
"content": " if (!available) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33937
},
{
"endIndex": 34003,
"paragraph": {
"elements": [
{
"endIndex": 34003,
"startIndex": 33959,
"textRun": {
"content": " storeState = StoreState.notAvailable;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 33959
},
{
"endIndex": 34028,
"paragraph": {
"elements": [
{
"endIndex": 34028,
"startIndex": 34003,
"textRun": {
"content": " notifyListeners();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34003
},
{
"endIndex": 34042,
"paragraph": {
"elements": [
{
"endIndex": 34042,
"startIndex": 34028,
"textRun": {
"content": " return;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34028
},
{
"endIndex": 34048,
"paragraph": {
"elements": [
{
"endIndex": 34048,
"startIndex": 34042,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34042
},
{
"endIndex": 34052,
"paragraph": {
"elements": [
{
"endIndex": 34052,
"startIndex": 34048,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34048
}
],
"endIndex": 34052,
"startIndex": 33840,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 34054,
"paragraph": {
"elements": [
{
"endIndex": 34054,
"startIndex": 34053,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 34053
},
{
"endIndex": 34055,
"paragraph": {
"elements": [
{
"endIndex": 34055,
"startIndex": 34054,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 34054
},
{
"endIndex": 34370,
"paragraph": {
"elements": [
{
"endIndex": 34163,
"startIndex": 34055,
"textRun": {
"content": "When the store is available, load the available purchases. Given the previous Firebase setup, expect to see ",
"textStyle": {}
}
},
{
"endIndex": 34181,
"startIndex": 34163,
"textRun": {
"content": "storeKeyConsumable",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 34183,
"startIndex": 34181,
"textRun": {
"content": ", ",
"textStyle": {}
}
},
{
"endIndex": 34204,
"startIndex": 34183,
"textRun": {
"content": "storeKeySubscription,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 34209,
"startIndex": 34204,
"textRun": {
"content": " and ",
"textStyle": {}
}
},
{
"endIndex": 34224,
"startIndex": 34209,
"textRun": {
"content": "storeKeyUpgrade",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 34370,
"startIndex": 34224,
"textRun": {
"content": ". When an expected purchase isnβt available, print this information to the console; you might also want to send this info to the backend service.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 34055
},
{
"endIndex": 34371,
"paragraph": {
"elements": [
{
"endIndex": 34371,
"startIndex": 34370,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 34370
},
{
"endIndex": 34607,
"paragraph": {
"elements": [
{
"endIndex": 34375,
"startIndex": 34371,
"textRun": {
"content": "The ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
},
{
"endIndex": 34418,
"startIndex": 34375,
"textRun": {
"content": "await iapConnection.queryProductDetails(ids",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 34419,
"startIndex": 34418,
"textRun": {
"content": ")",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 34519,
"startIndex": 34419,
"textRun": {
"content": " method returns both the IDs that arenβt found and the purchasable products that are found. Use the ",
"textStyle": {}
}
},
{
"endIndex": 34533,
"startIndex": 34519,
"textRun": {
"content": "productDetails",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 34582,
"startIndex": 34533,
"textRun": {
"content": " from the response to update the UI, and set the ",
"textStyle": {}
}
},
{
"endIndex": 34592,
"startIndex": 34582,
"textRun": {
"content": "StoreState",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 34596,
"startIndex": 34592,
"textRun": {
"content": " to ",
"textStyle": {}
}
},
{
"endIndex": 34605,
"startIndex": 34596,
"textRun": {
"content": "available",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 34606,
"startIndex": 34605,
"textRun": {
"content": ".",
"textStyle": {}
}
},
{
"endIndex": 34607,
"startIndex": 34606,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 34371
},
{
"endIndex": 34637,
"paragraph": {
"elements": [
{
"endIndex": 34636,
"startIndex": 34607,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_08/app/lib/logic/dash_purchases.dart#L32-L52"
},
"underline": true
}
}
},
{
"endIndex": 34637,
"startIndex": 34636,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ucam5cd4fp6l",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 34607
},
{
"endIndex": 35306,
"startIndex": 34637,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 35305,
"startIndex": 34638,
"tableCells": [
{
"content": [
{
"endIndex": 34668,
"paragraph": {
"elements": [
{
"endIndex": 34668,
"startIndex": 34640,
"textRun": {
"content": "import '../constants.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34640
},
{
"endIndex": 34669,
"paragraph": {
"elements": [
{
"endIndex": 34669,
"startIndex": 34668,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34668
},
{
"endIndex": 34708,
"paragraph": {
"elements": [
{
"endIndex": 34708,
"startIndex": 34669,
"textRun": {
"content": " Future<void> loadPurchases() async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34669
},
{
"endIndex": 34765,
"paragraph": {
"elements": [
{
"endIndex": 34765,
"startIndex": 34708,
"textRun": {
"content": " final available = await iapConnection.isAvailable();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34708
},
{
"endIndex": 34787,
"paragraph": {
"elements": [
{
"endIndex": 34787,
"startIndex": 34765,
"textRun": {
"content": " if (!available) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34765
},
{
"endIndex": 34831,
"paragraph": {
"elements": [
{
"endIndex": 34831,
"startIndex": 34787,
"textRun": {
"content": " storeState = StoreState.notAvailable;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34787
},
{
"endIndex": 34856,
"paragraph": {
"elements": [
{
"endIndex": 34856,
"startIndex": 34831,
"textRun": {
"content": " notifyListeners();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34831
},
{
"endIndex": 34870,
"paragraph": {
"elements": [
{
"endIndex": 34870,
"startIndex": 34856,
"textRun": {
"content": " return;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34856
},
{
"endIndex": 34876,
"paragraph": {
"elements": [
{
"endIndex": 34876,
"startIndex": 34870,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34870
},
{
"endIndex": 34902,
"paragraph": {
"elements": [
{
"endIndex": 34902,
"startIndex": 34876,
"textRun": {
"content": " const ids = <String>{\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34876
},
{
"endIndex": 34928,
"paragraph": {
"elements": [
{
"endIndex": 34928,
"startIndex": 34902,
"textRun": {
"content": " storeKeyConsumable,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34902
},
{
"endIndex": 34956,
"paragraph": {
"elements": [
{
"endIndex": 34956,
"startIndex": 34928,
"textRun": {
"content": " storeKeySubscription,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34928
},
{
"endIndex": 34979,
"paragraph": {
"elements": [
{
"endIndex": 34979,
"startIndex": 34956,
"textRun": {
"content": " storeKeyUpgrade,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34956
},
{
"endIndex": 34986,
"paragraph": {
"elements": [
{
"endIndex": 34986,
"startIndex": 34979,
"textRun": {
"content": " };\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34979
},
{
"endIndex": 35053,
"paragraph": {
"elements": [
{
"endIndex": 35053,
"startIndex": 34986,
"textRun": {
"content": " final response = await iapConnection.queryProductDetails(ids);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 34986
},
{
"endIndex": 35101,
"paragraph": {
"elements": [
{
"endIndex": 35101,
"startIndex": 35053,
"textRun": {
"content": " for (var element in response.notFoundIDs) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35053
},
{
"endIndex": 35150,
"paragraph": {
"elements": [
{
"endIndex": 35150,
"startIndex": 35101,
"textRun": {
"content": " debugPrint('Purchase $element not found');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35101
},
{
"endIndex": 35156,
"paragraph": {
"elements": [
{
"endIndex": 35156,
"startIndex": 35150,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35150
},
{
"endIndex": 35239,
"paragraph": {
"elements": [
{
"endIndex": 35239,
"startIndex": 35156,
"textRun": {
"content": " products = response.productDetails.map((e) => PurchasableProduct(e)).toList();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35156
},
{
"endIndex": 35278,
"paragraph": {
"elements": [
{
"endIndex": 35278,
"startIndex": 35239,
"textRun": {
"content": " storeState = StoreState.available;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35239
},
{
"endIndex": 35301,
"paragraph": {
"elements": [
{
"endIndex": 35301,
"startIndex": 35278,
"textRun": {
"content": " notifyListeners();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35278
},
{
"endIndex": 35305,
"paragraph": {
"elements": [
{
"endIndex": 35305,
"startIndex": 35301,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35301
}
],
"endIndex": 35305,
"startIndex": 34639,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 35307,
"paragraph": {
"elements": [
{
"endIndex": 35307,
"startIndex": 35306,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 35306
},
{
"endIndex": 35361,
"paragraph": {
"elements": [
{
"endIndex": 35316,
"startIndex": 35307,
"textRun": {
"content": "Call the ",
"textStyle": {}
}
},
{
"endIndex": 35331,
"startIndex": 35316,
"textRun": {
"content": "loadPurchases()",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 35361,
"startIndex": 35331,
"textRun": {
"content": " function in the constructor:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 35307
},
{
"endIndex": 35391,
"paragraph": {
"elements": [
{
"endIndex": 35390,
"startIndex": 35361,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_08/app/lib/logic/dash_purchases.dart#L29"
},
"underline": true
}
}
},
{
"endIndex": 35391,
"startIndex": 35390,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.nfvpw72ufdo8",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 35361
},
{
"endIndex": 35658,
"startIndex": 35391,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 35657,
"startIndex": 35392,
"tableCells": [
{
"content": [
{
"endIndex": 35426,
"paragraph": {
"elements": [
{
"endIndex": 35426,
"startIndex": 35394,
"textRun": {
"content": " DashPurchases(this.counter) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35394
},
{
"endIndex": 35484,
"paragraph": {
"elements": [
{
"endIndex": 35484,
"startIndex": 35426,
"textRun": {
"content": " final purchaseUpdated = iapConnection.purchaseStream;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35426
},
{
"endIndex": 35528,
"paragraph": {
"elements": [
{
"endIndex": 35528,
"startIndex": 35484,
"textRun": {
"content": " _subscription = purchaseUpdated.listen(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35484
},
{
"endIndex": 35553,
"paragraph": {
"elements": [
{
"endIndex": 35553,
"startIndex": 35528,
"textRun": {
"content": " _onPurchaseUpdate,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35528
},
{
"endIndex": 35588,
"paragraph": {
"elements": [
{
"endIndex": 35588,
"startIndex": 35553,
"textRun": {
"content": " onDone: _updateStreamOnDone,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35553
},
{
"endIndex": 35625,
"paragraph": {
"elements": [
{
"endIndex": 35625,
"startIndex": 35588,
"textRun": {
"content": " onError: _updateStreamOnError,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35588
},
{
"endIndex": 35632,
"paragraph": {
"elements": [
{
"endIndex": 35632,
"startIndex": 35625,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35625
},
{
"endIndex": 35653,
"paragraph": {
"elements": [
{
"endIndex": 35653,
"startIndex": 35632,
"textRun": {
"content": " loadPurchases();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35632
},
{
"endIndex": 35657,
"paragraph": {
"elements": [
{
"endIndex": 35657,
"startIndex": 35653,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35653
}
],
"endIndex": 35657,
"startIndex": 35393,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 35659,
"paragraph": {
"elements": [
{
"endIndex": 35659,
"startIndex": 35658,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 35658
},
{
"endIndex": 35754,
"paragraph": {
"elements": [
{
"endIndex": 35688,
"startIndex": 35659,
"textRun": {
"content": "Finally, change the value of ",
"textStyle": {}
}
},
{
"endIndex": 35698,
"startIndex": 35688,
"textRun": {
"content": "storeState",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 35710,
"startIndex": 35698,
"textRun": {
"content": " field from ",
"textStyle": {}
}
},
{
"endIndex": 35730,
"startIndex": 35710,
"textRun": {
"content": "StoreState.available",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 35734,
"startIndex": 35730,
"textRun": {
"content": " to ",
"textStyle": {}
}
},
{
"endIndex": 35754,
"startIndex": 35734,
"textRun": {
"content": "StoreState.loading:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 35659
},
{
"endIndex": 35784,
"paragraph": {
"elements": [
{
"endIndex": 35783,
"startIndex": 35754,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_08/app/lib/logic/dash_purchases.dart#L14"
},
"underline": true
}
}
},
{
"endIndex": 35784,
"startIndex": 35783,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.jwn50inqxl6w",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 35754
},
{
"endIndex": 35832,
"startIndex": 35784,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 35831,
"startIndex": 35785,
"tableCells": [
{
"content": [
{
"endIndex": 35831,
"paragraph": {
"elements": [
{
"endIndex": 35831,
"startIndex": 35787,
"textRun": {
"content": "StoreState storeState = StoreState.loading;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 35787
}
],
"endIndex": 35831,
"startIndex": 35786,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 35833,
"paragraph": {
"elements": [
{
"endIndex": 35833,
"startIndex": 35832,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 35832
},
{
"endIndex": 35863,
"paragraph": {
"elements": [
{
"endIndex": 35863,
"startIndex": 35833,
"textRun": {
"content": "Show the purchasable products\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.a9894r9iopct",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 35833
},
{
"endIndex": 35864,
"paragraph": {
"elements": [
{
"endIndex": 35864,
"startIndex": 35863,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 35863
},
{
"endIndex": 36102,
"paragraph": {
"elements": [
{
"endIndex": 35872,
"startIndex": 35864,
"textRun": {
"content": "Consider",
"textStyle": {}
}
},
{
"endIndex": 35877,
"startIndex": 35872,
"textRun": {
"content": " the ",
"textStyle": {}
}
},
{
"endIndex": 35895,
"startIndex": 35877,
"textRun": {
"content": "purchase_page.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 35901,
"startIndex": 35895,
"textRun": {
"content": " file.",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
},
{
"endIndex": 35906,
"startIndex": 35901,
"textRun": {
"content": " The ",
"textStyle": {}
}
},
{
"endIndex": 35918,
"startIndex": 35906,
"textRun": {
"content": "PurchasePage",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 35932,
"startIndex": 35918,
"textRun": {
"content": " widget shows ",
"textStyle": {}
}
},
{
"endIndex": 35949,
"startIndex": 35932,
"textRun": {
"content": "_PurchasesLoading",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 35951,
"startIndex": 35949,
"textRun": {
"content": ", ",
"textStyle": {}
}
},
{
"endIndex": 35965,
"startIndex": 35951,
"textRun": {
"content": "_PurchaseList,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 35969,
"startIndex": 35965,
"textRun": {
"content": " or ",
"textStyle": {}
}
},
{
"endIndex": 35992,
"startIndex": 35969,
"textRun": {
"content": "_PurchasesNotAvailable,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 36010,
"startIndex": 35992,
"textRun": {
"content": " depending on the ",
"textStyle": {}
}
},
{
"endIndex": 36020,
"startIndex": 36010,
"textRun": {
"content": "StoreState",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 36102,
"startIndex": 36020,
"textRun": {
"content": ". The widget also shows the userβs past purchases which is used in the next step.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 35864
},
{
"endIndex": 36103,
"paragraph": {
"elements": [
{
"endIndex": 36103,
"startIndex": 36102,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 36102
},
{
"endIndex": 36220,
"paragraph": {
"elements": [
{
"endIndex": 36107,
"startIndex": 36103,
"textRun": {
"content": "The ",
"textStyle": {}
}
},
{
"endIndex": 36120,
"startIndex": 36107,
"textRun": {
"content": "_PurchaseList",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 36198,
"startIndex": 36120,
"textRun": {
"content": " widget shows the list of purchasable products and sends a buy request to the ",
"textStyle": {}
}
},
{
"endIndex": 36211,
"startIndex": 36198,
"textRun": {
"content": "DashPurchases",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 36220,
"startIndex": 36211,
"textRun": {
"content": " object.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 36103
},
{
"endIndex": 36249,
"paragraph": {
"elements": [
{
"endIndex": 36248,
"startIndex": 36220,
"textRun": {
"content": "lib/pages/purchase_page.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_08/app/lib/pages/purchase_page.dart#L53-L68"
},
"underline": true
}
}
},
{
"endIndex": 36249,
"startIndex": 36248,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.o7gdmx3ulp1v",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 36220
},
{
"endIndex": 36684,
"startIndex": 36249,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 36683,
"startIndex": 36250,
"tableCells": [
{
"content": [
{
"endIndex": 36298,
"paragraph": {
"elements": [
{
"endIndex": 36298,
"startIndex": 36252,
"textRun": {
"content": "class _PurchaseList extends StatelessWidget {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36252
},
{
"endIndex": 36310,
"paragraph": {
"elements": [
{
"endIndex": 36310,
"startIndex": 36298,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36298
},
{
"endIndex": 36349,
"paragraph": {
"elements": [
{
"endIndex": 36349,
"startIndex": 36310,
"textRun": {
"content": " Widget build(BuildContext context) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36310
},
{
"endIndex": 36401,
"paragraph": {
"elements": [
{
"endIndex": 36401,
"startIndex": 36349,
"textRun": {
"content": " var purchases = context.watch<DashPurchases>();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36349
},
{
"endIndex": 36440,
"paragraph": {
"elements": [
{
"endIndex": 36440,
"startIndex": 36401,
"textRun": {
"content": " var products = purchases.products;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36401
},
{
"endIndex": 36459,
"paragraph": {
"elements": [
{
"endIndex": 36459,
"startIndex": 36440,
"textRun": {
"content": " return Column(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36440
},
{
"endIndex": 36484,
"paragraph": {
"elements": [
{
"endIndex": 36484,
"startIndex": 36459,
"textRun": {
"content": " children: products\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36459
},
{
"endIndex": 36529,
"paragraph": {
"elements": [
{
"endIndex": 36529,
"startIndex": 36484,
"textRun": {
"content": " .map((product) => _PurchaseWidget(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36484
},
{
"endIndex": 36561,
"paragraph": {
"elements": [
{
"endIndex": 36561,
"startIndex": 36529,
"textRun": {
"content": " product: product,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36529
},
{
"endIndex": 36591,
"paragraph": {
"elements": [
{
"endIndex": 36591,
"startIndex": 36561,
"textRun": {
"content": " onPressed: () {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36561
},
{
"endIndex": 36631,
"paragraph": {
"elements": [
{
"endIndex": 36631,
"startIndex": 36591,
"textRun": {
"content": " purchases.buy(product);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36591
},
{
"endIndex": 36649,
"paragraph": {
"elements": [
{
"endIndex": 36649,
"startIndex": 36631,
"textRun": {
"content": " }))\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36631
},
{
"endIndex": 36670,
"paragraph": {
"elements": [
{
"endIndex": 36670,
"startIndex": 36649,
"textRun": {
"content": " .toList(),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36649
},
{
"endIndex": 36677,
"paragraph": {
"elements": [
{
"endIndex": 36677,
"startIndex": 36670,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36670
},
{
"endIndex": 36681,
"paragraph": {
"elements": [
{
"endIndex": 36681,
"startIndex": 36677,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36677
},
{
"endIndex": 36683,
"paragraph": {
"elements": [
{
"endIndex": 36683,
"startIndex": 36681,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 36681
}
],
"endIndex": 36683,
"startIndex": 36251,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 36685,
"paragraph": {
"elements": [
{
"endIndex": 36685,
"startIndex": 36684,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 36684
},
{
"endIndex": 36908,
"paragraph": {
"elements": [
{
"endIndex": 36908,
"startIndex": 36685,
"textRun": {
"content": "You should be able to see the available products on the Android and iOS stores if they are configured correctly. Note that it can take some time before the purchases are available when entered into the respective consoles.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 36685
},
{
"endIndex": 36910,
"paragraph": {
"elements": [
{
"endIndex": 36909,
"inlineObjectElement": {
"inlineObjectId": "kix.9qju374jwmgw",
"textStyle": {}
},
"startIndex": 36908
},
{
"endIndex": 36910,
"startIndex": 36909,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 36908
},
{
"endIndex": 36911,
"paragraph": {
"elements": [
{
"endIndex": 36911,
"startIndex": 36910,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 36910
},
{
"endIndex": 37119,
"paragraph": {
"elements": [
{
"endIndex": 36922,
"startIndex": 36911,
"textRun": {
"content": "Go back to ",
"textStyle": {}
}
},
{
"endIndex": 36941,
"startIndex": 36922,
"textRun": {
"content": "dash_purchases.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 36942,
"startIndex": 36941,
"textRun": {
"content": ",",
"textStyle": {}
}
},
{
"endIndex": 37119,
"startIndex": 36942,
"textRun": {
"content": " and implement the function to buy a product. You only need to separate the consumables from the non-consumables. The upgrade and the subscription products are non-consumables.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 36911
},
{
"endIndex": 37149,
"paragraph": {
"elements": [
{
"endIndex": 37148,
"startIndex": 37119,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_08/app/lib/logic/dash_purchases.dart#L60-L74"
},
"underline": true
}
}
},
{
"endIndex": 37149,
"startIndex": 37148,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.t2my6pr741wt",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 37119
},
{
"endIndex": 37723,
"startIndex": 37149,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 37722,
"startIndex": 37150,
"tableCells": [
{
"content": [
{
"endIndex": 37207,
"paragraph": {
"elements": [
{
"endIndex": 37207,
"startIndex": 37152,
"textRun": {
"content": " Future<void> buy(PurchasableProduct product) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37152
},
{
"endIndex": 37288,
"paragraph": {
"elements": [
{
"endIndex": 37288,
"startIndex": 37207,
"textRun": {
"content": " final purchaseParam = PurchaseParam(productDetails: product.productDetails);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37207
},
{
"endIndex": 37314,
"paragraph": {
"elements": [
{
"endIndex": 37314,
"startIndex": 37288,
"textRun": {
"content": " switch (product.id) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37288
},
{
"endIndex": 37345,
"paragraph": {
"elements": [
{
"endIndex": 37345,
"startIndex": 37314,
"textRun": {
"content": " case storeKeyConsumable:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37314
},
{
"endIndex": 37418,
"paragraph": {
"elements": [
{
"endIndex": 37418,
"startIndex": 37345,
"textRun": {
"content": " await iapConnection.buyConsumable(purchaseParam: purchaseParam);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37345
},
{
"endIndex": 37433,
"paragraph": {
"elements": [
{
"endIndex": 37433,
"startIndex": 37418,
"textRun": {
"content": " break;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37418
},
{
"endIndex": 37466,
"paragraph": {
"elements": [
{
"endIndex": 37466,
"startIndex": 37433,
"textRun": {
"content": " case storeKeySubscription:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37433
},
{
"endIndex": 37494,
"paragraph": {
"elements": [
{
"endIndex": 37494,
"startIndex": 37466,
"textRun": {
"content": " case storeKeyUpgrade:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37466
},
{
"endIndex": 37570,
"paragraph": {
"elements": [
{
"endIndex": 37570,
"startIndex": 37494,
"textRun": {
"content": " await iapConnection.buyNonConsumable(purchaseParam: purchaseParam);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37494
},
{
"endIndex": 37585,
"paragraph": {
"elements": [
{
"endIndex": 37585,
"startIndex": 37570,
"textRun": {
"content": " break;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37570
},
{
"endIndex": 37600,
"paragraph": {
"elements": [
{
"endIndex": 37600,
"startIndex": 37585,
"textRun": {
"content": " default:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37585
},
{
"endIndex": 37635,
"paragraph": {
"elements": [
{
"endIndex": 37635,
"startIndex": 37600,
"textRun": {
"content": " throw ArgumentError.value(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37600
},
{
"endIndex": 37712,
"paragraph": {
"elements": [
{
"endIndex": 37712,
"startIndex": 37635,
"textRun": {
"content": " product.productDetails, '${product.id} is not a known product');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37635
},
{
"endIndex": 37718,
"paragraph": {
"elements": [
{
"endIndex": 37718,
"startIndex": 37712,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37712
},
{
"endIndex": 37722,
"paragraph": {
"elements": [
{
"endIndex": 37722,
"startIndex": 37718,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37718
}
],
"endIndex": 37722,
"startIndex": 37151,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 37724,
"paragraph": {
"elements": [
{
"endIndex": 37724,
"startIndex": 37723,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 37723
},
{
"endIndex": 37840,
"paragraph": {
"elements": [
{
"endIndex": 37763,
"startIndex": 37724,
"textRun": {
"content": "Before continuing, create the variable ",
"textStyle": {}
}
},
{
"endIndex": 37785,
"startIndex": 37763,
"textRun": {
"content": "_beautifiedDashUpgrade",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 37801,
"startIndex": 37785,
"textRun": {
"content": " and update the ",
"textStyle": {}
}
},
{
"endIndex": 37815,
"startIndex": 37801,
"textRun": {
"content": "beautifiedDash",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 37840,
"startIndex": 37815,
"textRun": {
"content": " getter to reference it.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 37724
},
{
"endIndex": 37870,
"paragraph": {
"elements": [
{
"endIndex": 37869,
"startIndex": 37840,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_08/app/lib/logic/dash_purchases.dart#L76-L99"
},
"underline": true
}
}
},
{
"endIndex": 37870,
"startIndex": 37869,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.4f58vfezgh60",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 37840
},
{
"endIndex": 37966,
"startIndex": 37870,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 37965,
"startIndex": 37871,
"tableCells": [
{
"content": [
{
"endIndex": 37926,
"paragraph": {
"elements": [
{
"endIndex": 37926,
"startIndex": 37873,
"textRun": {
"content": " bool get beautifiedDash => _beautifiedDashUpgrade;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37873
},
{
"endIndex": 37965,
"paragraph": {
"elements": [
{
"endIndex": 37965,
"startIndex": 37926,
"textRun": {
"content": " bool _beautifiedDashUpgrade = false;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 37926
}
],
"endIndex": 37965,
"startIndex": 37872,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 37967,
"paragraph": {
"elements": [
{
"endIndex": 37967,
"startIndex": 37966,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 37966
},
{
"endIndex": 38266,
"paragraph": {
"elements": [
{
"endIndex": 37971,
"startIndex": 37967,
"textRun": {
"content": "The ",
"textStyle": {}
}
},
{
"endIndex": 37988,
"startIndex": 37971,
"textRun": {
"content": "_onPurchaseUpdate",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 37995,
"startIndex": 37988,
"textRun": {
"content": " method",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
},
{
"endIndex": 38167,
"startIndex": 37995,
"textRun": {
"content": " receives the purchase updates, updates the status of the product that is shown in the purchase page, and applies the purchase to the counter logic. Itβs important to call ",
"textStyle": {}
}
},
{
"endIndex": 38183,
"startIndex": 38167,
"textRun": {
"content": "completePurchase",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 38266,
"startIndex": 38183,
"textRun": {
"content": " after handling the purchase so the store knows the purchase is handled correctly.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 37967
},
{
"endIndex": 38267,
"paragraph": {
"elements": [
{
"endIndex": 38267,
"startIndex": 38266,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 38266
},
{
"endIndex": 38387,
"startIndex": 38267,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 38386,
"startIndex": 38268,
"tableCells": [
{
"content": [
{
"endIndex": 38386,
"paragraph": {
"elements": [
{
"endIndex": 38277,
"startIndex": 38270,
"textRun": {
"content": "Warning",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 38386,
"startIndex": 38277,
"textRun": {
"content": ": If you do not complete the purchase for the Google Play Store within three days, the purchase is refunded.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38270
}
],
"endIndex": 38386,
"startIndex": 38269,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.8039216,
"green": 0.8980392,
"red": 0.9882353
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 38417,
"paragraph": {
"elements": [
{
"endIndex": 38416,
"startIndex": 38387,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_08/app/lib/logic/dash_purchases.dart#L76-L99"
},
"underline": true
}
}
},
{
"endIndex": 38417,
"startIndex": 38416,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.u1p10v9fz9mc",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 38387
},
{
"endIndex": 39234,
"startIndex": 38417,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 39233,
"startIndex": 38418,
"tableCells": [
{
"content": [
{
"endIndex": 38454,
"paragraph": {
"elements": [
{
"endIndex": 38454,
"startIndex": 38420,
"textRun": {
"content": " Future<void> _onPurchaseUpdate(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38420
},
{
"endIndex": 38511,
"paragraph": {
"elements": [
{
"endIndex": 38511,
"startIndex": 38454,
"textRun": {
"content": " List<PurchaseDetails> purchaseDetailsList) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38454
},
{
"endIndex": 38566,
"paragraph": {
"elements": [
{
"endIndex": 38566,
"startIndex": 38511,
"textRun": {
"content": " for (var purchaseDetails in purchaseDetailsList) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38511
},
{
"endIndex": 38612,
"paragraph": {
"elements": [
{
"endIndex": 38612,
"startIndex": 38566,
"textRun": {
"content": " await _handlePurchase(purchaseDetails);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38566
},
{
"endIndex": 38618,
"paragraph": {
"elements": [
{
"endIndex": 38618,
"startIndex": 38612,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38612
},
{
"endIndex": 38641,
"paragraph": {
"elements": [
{
"endIndex": 38641,
"startIndex": 38618,
"textRun": {
"content": " notifyListeners();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38618
},
{
"endIndex": 38645,
"paragraph": {
"elements": [
{
"endIndex": 38645,
"startIndex": 38641,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38641
},
{
"endIndex": 38646,
"paragraph": {
"elements": [
{
"endIndex": 38646,
"startIndex": 38645,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38645
},
{
"endIndex": 38718,
"paragraph": {
"elements": [
{
"endIndex": 38718,
"startIndex": 38646,
"textRun": {
"content": " Future<void> _handlePurchase(PurchaseDetails purchaseDetails) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38646
},
{
"endIndex": 38780,
"paragraph": {
"elements": [
{
"endIndex": 38780,
"startIndex": 38718,
"textRun": {
"content": " if (purchaseDetails.status == PurchaseStatus.purchased) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38718
},
{
"endIndex": 38823,
"paragraph": {
"elements": [
{
"endIndex": 38823,
"startIndex": 38780,
"textRun": {
"content": " switch (purchaseDetails.productID) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38780
},
{
"endIndex": 38858,
"paragraph": {
"elements": [
{
"endIndex": 38858,
"startIndex": 38823,
"textRun": {
"content": " case storeKeySubscription:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38823
},
{
"endIndex": 38899,
"paragraph": {
"elements": [
{
"endIndex": 38899,
"startIndex": 38858,
"textRun": {
"content": " counter.applyPaidMultiplier();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38858
},
{
"endIndex": 38916,
"paragraph": {
"elements": [
{
"endIndex": 38916,
"startIndex": 38899,
"textRun": {
"content": " break;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38899
},
{
"endIndex": 38949,
"paragraph": {
"elements": [
{
"endIndex": 38949,
"startIndex": 38916,
"textRun": {
"content": " case storeKeyConsumable:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38916
},
{
"endIndex": 38990,
"paragraph": {
"elements": [
{
"endIndex": 38990,
"startIndex": 38949,
"textRun": {
"content": " counter.addBoughtDashes(2000);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38949
},
{
"endIndex": 39007,
"paragraph": {
"elements": [
{
"endIndex": 39007,
"startIndex": 38990,
"textRun": {
"content": " break;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 38990
},
{
"endIndex": 39037,
"paragraph": {
"elements": [
{
"endIndex": 39037,
"startIndex": 39007,
"textRun": {
"content": " case storeKeyUpgrade:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39007
},
{
"endIndex": 39078,
"paragraph": {
"elements": [
{
"endIndex": 39078,
"startIndex": 39037,
"textRun": {
"content": " _beautifiedDashUpgrade = true;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39037
},
{
"endIndex": 39095,
"paragraph": {
"elements": [
{
"endIndex": 39095,
"startIndex": 39078,
"textRun": {
"content": " break;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39078
},
{
"endIndex": 39103,
"paragraph": {
"elements": [
{
"endIndex": 39103,
"startIndex": 39095,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39095
},
{
"endIndex": 39109,
"paragraph": {
"elements": [
{
"endIndex": 39109,
"startIndex": 39103,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39103
},
{
"endIndex": 39110,
"paragraph": {
"elements": [
{
"endIndex": 39110,
"startIndex": 39109,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39109
},
{
"endIndex": 39161,
"paragraph": {
"elements": [
{
"endIndex": 39161,
"startIndex": 39110,
"textRun": {
"content": " if (purchaseDetails.pendingCompletePurchase) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39110
},
{
"endIndex": 39222,
"paragraph": {
"elements": [
{
"endIndex": 39222,
"startIndex": 39161,
"textRun": {
"content": " await iapConnection.completePurchase(purchaseDetails);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39161
},
{
"endIndex": 39228,
"paragraph": {
"elements": [
{
"endIndex": 39228,
"startIndex": 39222,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39222
},
{
"endIndex": 39232,
"paragraph": {
"elements": [
{
"endIndex": 39232,
"startIndex": 39228,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39228
},
{
"endIndex": 39233,
"paragraph": {
"elements": [
{
"endIndex": 39233,
"startIndex": 39232,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39232
}
],
"endIndex": 39233,
"startIndex": 38419,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 39235,
"paragraph": {
"elements": [
{
"endIndex": 39235,
"startIndex": 39234,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 39234
},
{
"endIndex": 39236,
"paragraph": {
"elements": [
{
"endIndex": 39236,
"startIndex": 39235,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 39235
},
{
"endIndex": 39525,
"startIndex": 39236,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 39524,
"startIndex": 39237,
"tableCells": [
{
"content": [
{
"endIndex": 39524,
"paragraph": {
"elements": [
{
"endIndex": 39245,
"startIndex": 39239,
"textRun": {
"content": "Note: ",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 39258,
"startIndex": 39245,
"textRun": {
"content": "buyConsumable",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 39281,
"startIndex": 39258,
"textRun": {
"content": " has a named parameter ",
"textStyle": {}
}
},
{
"endIndex": 39292,
"startIndex": 39281,
"textRun": {
"content": "autoConsume",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 39301,
"startIndex": 39292,
"textRun": {
"content": " that is ",
"textStyle": {}
}
},
{
"endIndex": 39305,
"startIndex": 39301,
"textRun": {
"content": "true",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 39347,
"startIndex": 39305,
"textRun": {
"content": " by default. If you set this parameter to ",
"textStyle": {}
}
},
{
"endIndex": 39352,
"startIndex": 39347,
"textRun": {
"content": "false",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 39374,
"startIndex": 39352,
"textRun": {
"content": ", youβll have to call ",
"textStyle": {}
}
},
{
"endIndex": 39387,
"startIndex": 39374,
"textRun": {
"content": "iapConnection",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 39447,
"startIndex": 39387,
"textRun": {
"content": ".getPlatformAddition<InAppPurchaseAndroidPlatformAddition>()",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 39480,
"startIndex": 39447,
"textRun": {
"content": ".consumePurchase(purchaseDetails)",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 39524,
"startIndex": 39480,
"textRun": {
"content": " after you consume the purchase on Android.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39239
}
],
"endIndex": 39524,
"startIndex": 39238,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.827451,
"green": 0.91764706,
"red": 0.8509804
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 39526,
"paragraph": {
"elements": [
{
"endIndex": 39526,
"startIndex": 39525,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 39525
},
{
"endIndex": 39527,
"paragraph": {
"elements": [
{
"endIndex": 39527,
"startIndex": 39526,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 39526
},
{
"endIndex": 39529,
"paragraph": {
"elements": [
{
"endIndex": 39528,
"pageBreak": {
"textStyle": {}
},
"startIndex": 39527
},
{
"endIndex": 39529,
"startIndex": 39528,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.1v3dpqbwl5wu",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 39527
},
{
"endIndex": 39548,
"paragraph": {
"elements": [
{
"endIndex": 39548,
"startIndex": 39529,
"textRun": {
"content": "Set up the backend\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.8dbu8esps88",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 39529
},
{
"endIndex": 39549,
"paragraph": {
"elements": [
{
"endIndex": 39549,
"startIndex": 39548,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 39548
},
{
"endIndex": 39647,
"paragraph": {
"elements": [
{
"endIndex": 39647,
"startIndex": 39549,
"textRun": {
"content": "Before moving on to tracking and verifying purchases, set up a Dart backend to support doing so. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 39549
},
{
"endIndex": 39648,
"paragraph": {
"elements": [
{
"endIndex": 39648,
"startIndex": 39647,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 39647
},
{
"endIndex": 39991,
"startIndex": 39648,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 39990,
"startIndex": 39649,
"tableCells": [
{
"content": [
{
"endIndex": 39745,
"paragraph": {
"elements": [
{
"endIndex": 39657,
"startIndex": 39651,
"textRun": {
"content": "Note: ",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 39745,
"startIndex": 39657,
"textRun": {
"content": "Using a back-end is a best practice because, as stated before, it has several benefits:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39651
},
{
"endIndex": 39746,
"paragraph": {
"elements": [
{
"endIndex": 39746,
"startIndex": 39745,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 39745
},
{
"endIndex": 39784,
"paragraph": {
"bullet": {
"listId": "kix.6o706gv3wzlk",
"textStyle": {}
},
"elements": [
{
"endIndex": 39784,
"startIndex": 39746,
"textRun": {
"content": "You can securely verify transactions.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39746
},
{
"endIndex": 39837,
"paragraph": {
"bullet": {
"listId": "kix.6o706gv3wzlk",
"textStyle": {}
},
"elements": [
{
"endIndex": 39837,
"startIndex": 39784,
"textRun": {
"content": "You can react to billing events from the app stores.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39784
},
{
"endIndex": 39888,
"paragraph": {
"bullet": {
"listId": "kix.6o706gv3wzlk",
"textStyle": {}
},
"elements": [
{
"endIndex": 39888,
"startIndex": 39837,
"textRun": {
"content": "You can keep track of the purchases in a database.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39837
},
{
"endIndex": 39990,
"paragraph": {
"bullet": {
"listId": "kix.6o706gv3wzlk",
"textStyle": {}
},
"elements": [
{
"endIndex": 39989,
"startIndex": 39888,
"textRun": {
"content": "Users wonβt be able to fool your app into providing premium features by rewinding their system clock.",
"textStyle": {}
}
},
{
"endIndex": 39990,
"startIndex": 39989,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 39888
}
],
"endIndex": 39990,
"startIndex": 39650,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.827451,
"green": 0.91764706,
"red": 0.8509804
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 39992,
"paragraph": {
"elements": [
{
"endIndex": 39992,
"startIndex": 39991,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 39991
},
{
"endIndex": 40057,
"paragraph": {
"elements": [
{
"endIndex": 40023,
"startIndex": 39992,
"textRun": {
"content": "In this section, work from the ",
"textStyle": {}
}
},
{
"endIndex": 40036,
"startIndex": 40023,
"textRun": {
"content": "dart-backend/",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 40057,
"startIndex": 40036,
"textRun": {
"content": " folder as the root.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 39992
},
{
"endIndex": 40058,
"paragraph": {
"elements": [
{
"endIndex": 40058,
"startIndex": 40057,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 40057
},
{
"endIndex": 40113,
"paragraph": {
"elements": [
{
"endIndex": 40113,
"startIndex": 40058,
"textRun": {
"content": "Make sure that you have the following tools installed:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 40058
},
{
"endIndex": 40118,
"paragraph": {
"bullet": {
"listId": "kix.cchm97rrif4y",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 40117,
"startIndex": 40113,
"textRun": {
"content": "Dart",
"textStyle": {}
}
},
{
"endIndex": 40118,
"startIndex": 40117,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 40113
},
{
"endIndex": 40131,
"paragraph": {
"bullet": {
"listId": "kix.cchm97rrif4y",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 40130,
"startIndex": 40118,
"textRun": {
"content": "Firebase CLI",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://firebase.google.com/docs/cli#install_the_firebase_cli"
},
"underline": true
}
}
},
{
"endIndex": 40131,
"startIndex": 40130,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 40118
},
{
"endIndex": 40153,
"paragraph": {
"elements": [
{
"endIndex": 40153,
"startIndex": 40131,
"textRun": {
"content": "Base project overview\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.7obu2mgfnlz0",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 40131
},
{
"endIndex": 40154,
"paragraph": {
"elements": [
{
"endIndex": 40154,
"startIndex": 40153,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 40153
},
{
"endIndex": 40418,
"paragraph": {
"elements": [
{
"endIndex": 40418,
"startIndex": 40154,
"textRun": {
"content": "Because some parts of this project are considered out of scope for this codelab, they are included in the starter code. Itβs a good idea to go over what is already in the starter code before you get started, to get an idea of how youβre going to structure things.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 40154
},
{
"endIndex": 40419,
"paragraph": {
"elements": [
{
"endIndex": 40419,
"startIndex": 40418,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 40418
},
{
"endIndex": 40740,
"paragraph": {
"elements": [
{
"endIndex": 40740,
"startIndex": 40419,
"textRun": {
"content": "This backend code can run locally on your machine, you donβt need to deploy it to use it. However, you need to be able to connect from your development device (Android or iPhone) to the machine where the server will run. For that, they have to be in the same network, and you need to know the IP address of your machine.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 40419
},
{
"endIndex": 40741,
"paragraph": {
"elements": [
{
"endIndex": 40741,
"startIndex": 40740,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 40740
},
{
"endIndex": 40792,
"paragraph": {
"elements": [
{
"endIndex": 40792,
"startIndex": 40741,
"textRun": {
"content": "Try to run the server using the following command:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 40741
},
{
"endIndex": 40793,
"paragraph": {
"elements": [
{
"endIndex": 40793,
"startIndex": 40792,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 40792
},
{
"endIndex": 40854,
"startIndex": 40793,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 40853,
"startIndex": 40794,
"tableCells": [
{
"content": [
{
"endIndex": 40821,
"paragraph": {
"elements": [
{
"endIndex": 40821,
"startIndex": 40796,
"textRun": {
"content": "$ dart ./bin/server.dart\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 40796
},
{
"endIndex": 40822,
"paragraph": {
"elements": [
{
"endIndex": 40822,
"startIndex": 40821,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 40821
},
{
"endIndex": 40853,
"paragraph": {
"elements": [
{
"endIndex": 40853,
"startIndex": 40822,
"textRun": {
"content": "Serving at http://0.0.0.0:8080\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 40822
}
],
"endIndex": 40853,
"startIndex": 40795,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 40855,
"paragraph": {
"elements": [
{
"endIndex": 40855,
"startIndex": 40854,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 40854
},
{
"endIndex": 41053,
"paragraph": {
"elements": [
{
"endIndex": 40877,
"startIndex": 40855,
"textRun": {
"content": "The Dart backend uses ",
"textStyle": {}
}
},
{
"endIndex": 40882,
"startIndex": 40877,
"textRun": {
"content": "shelf",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://pub.dev/packages/shelf"
},
"underline": true,
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 40887,
"startIndex": 40882,
"textRun": {
"content": " and ",
"textStyle": {}
}
},
{
"endIndex": 40899,
"startIndex": 40887,
"textRun": {
"content": "shelf_router",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://pub.dev/packages/shelf_router"
},
"underline": true,
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 41053,
"startIndex": 40899,
"textRun": {
"content": " to serve API endpoints. By default, the server doesnβt provide any routes. Later on you will create a route to handle the purchase verification process.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 40855
},
{
"endIndex": 41054,
"paragraph": {
"elements": [
{
"endIndex": 41054,
"startIndex": 41053,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 41053
},
{
"endIndex": 41420,
"paragraph": {
"elements": [
{
"endIndex": 41115,
"startIndex": 41054,
"textRun": {
"content": "One part that is already included in the starter code is the ",
"textStyle": {}
}
},
{
"endIndex": 41128,
"startIndex": 41115,
"textRun": {
"content": "IapRepository",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 41132,
"startIndex": 41128,
"textRun": {
"content": " in ",
"textStyle": {}
}
},
{
"endIndex": 41155,
"startIndex": 41132,
"textRun": {
"content": "lib/iap_repository.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 41420,
"startIndex": 41155,
"textRun": {
"content": ". Because learning how to interact with Firestore, or databases in general, isnβt considered to be relevant to this codelab, the starter code contains functions for you to create or update purchases in the Firestore, as well as all the classes for those purchases.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41054
},
{
"endIndex": 41421,
"paragraph": {
"elements": [
{
"endIndex": 41421,
"startIndex": 41420,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41420
},
{
"endIndex": 41444,
"paragraph": {
"elements": [
{
"endIndex": 41444,
"startIndex": 41421,
"textRun": {
"content": "Set up Firebase access\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.dkookxd617q6",
"namedStyleType": "HEADING_2"
}
},
"startIndex": 41421
},
{
"endIndex": 41445,
"paragraph": {
"elements": [
{
"endIndex": 41445,
"startIndex": 41444,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41444
},
{
"endIndex": 41649,
"paragraph": {
"elements": [
{
"endIndex": 41585,
"startIndex": 41445,
"textRun": {
"content": "To access Firebase Firestore, you need a service account access key. Generate one opening the Firebase project settings and navigate to the ",
"textStyle": {}
}
},
{
"endIndex": 41601,
"startIndex": 41585,
"textRun": {
"content": "Service accounts",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 41623,
"startIndex": 41601,
"textRun": {
"content": " section, then select ",
"textStyle": {}
}
},
{
"endIndex": 41647,
"startIndex": 41623,
"textRun": {
"content": "Generate new private key",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 41649,
"startIndex": 41647,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41445
},
{
"endIndex": 41650,
"paragraph": {
"elements": [
{
"endIndex": 41650,
"startIndex": 41649,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41649
},
{
"endIndex": 41652,
"paragraph": {
"elements": [
{
"endIndex": 41651,
"inlineObjectElement": {
"inlineObjectId": "kix.8jh32bs85q1q",
"textStyle": {}
},
"startIndex": 41650
},
{
"endIndex": 41652,
"startIndex": 41651,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41650
},
{
"endIndex": 41653,
"paragraph": {
"elements": [
{
"endIndex": 41653,
"startIndex": 41652,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41652
},
{
"endIndex": 41754,
"paragraph": {
"elements": [
{
"endIndex": 41690,
"startIndex": 41653,
"textRun": {
"content": "Copy the downloaded JSON file to the ",
"textStyle": {}
}
},
{
"endIndex": 41697,
"startIndex": 41690,
"textRun": {
"content": "assets/",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 41723,
"startIndex": 41697,
"textRun": {
"content": " folder, and rename it to ",
"textStyle": {}
}
},
{
"endIndex": 41752,
"startIndex": 41723,
"textRun": {
"content": "service-account-firebase.json",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 41754,
"startIndex": 41752,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41653
},
{
"endIndex": 41755,
"paragraph": {
"elements": [
{
"endIndex": 41755,
"startIndex": 41754,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41754
},
{
"endIndex": 41756,
"paragraph": {
"elements": [
{
"endIndex": 41756,
"startIndex": 41755,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41755
},
{
"endIndex": 41757,
"paragraph": {
"elements": [
{
"endIndex": 41757,
"startIndex": 41756,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41756
},
{
"endIndex": 41758,
"paragraph": {
"elements": [
{
"endIndex": 41758,
"startIndex": 41757,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41757
},
{
"endIndex": 41759,
"paragraph": {
"elements": [
{
"endIndex": 41759,
"startIndex": 41758,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41758
},
{
"endIndex": 41785,
"paragraph": {
"elements": [
{
"endIndex": 41785,
"startIndex": 41759,
"textRun": {
"content": "Set up Google Play access\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.knv4xp21ktnt",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 41759
},
{
"endIndex": 41786,
"paragraph": {
"elements": [
{
"endIndex": 41786,
"startIndex": 41785,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41785
},
{
"endIndex": 41938,
"paragraph": {
"elements": [
{
"endIndex": 41938,
"startIndex": 41786,
"textRun": {
"content": "To access the Play Store for verifying purchases, you must generate a service account with these permissions, and download the JSON credentials for it.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 41786
},
{
"endIndex": 41939,
"paragraph": {
"elements": [
{
"endIndex": 41939,
"startIndex": 41938,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 41938
},
{
"endIndex": 42115,
"startIndex": 41939,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 42114,
"startIndex": 41940,
"tableCells": [
{
"content": [
{
"endIndex": 42114,
"paragraph": {
"elements": [
{
"endIndex": 41946,
"startIndex": 41942,
"textRun": {
"content": "Note",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 42113,
"startIndex": 41946,
"textRun": {
"content": ": Only the owner of the developer account can set this up. An invited user with admin credentials doesnβt have the necessary permissions to generate these credentials.",
"textStyle": {}
}
},
{
"endIndex": 42114,
"startIndex": 42113,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 41942
}
],
"endIndex": 42114,
"startIndex": 41941,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.8039216,
"green": 0.8980392,
"red": 0.9882353
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 42116,
"paragraph": {
"elements": [
{
"endIndex": 42116,
"startIndex": 42115,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 42115
},
{
"endIndex": 42117,
"paragraph": {
"elements": [
{
"endIndex": 42117,
"startIndex": 42116,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 42116
},
{
"endIndex": 42183,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 42167,
"startIndex": 42117,
"textRun": {
"content": "Go to the Google Play Console, and start from the ",
"textStyle": {}
}
},
{
"endIndex": 42175,
"startIndex": 42167,
"textRun": {
"content": "All apps",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 42183,
"startIndex": 42175,
"textRun": {
"content": " page.\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 42117
},
{
"endIndex": 42346,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 42189,
"startIndex": 42183,
"textRun": {
"content": "Go to ",
"textStyle": {}
}
},
{
"endIndex": 42207,
"startIndex": 42189,
"textRun": {
"content": "Setup > API access",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 42208,
"startIndex": 42207,
"textRun": {
"content": ".",
"textStyle": {}
}
},
{
"endIndex": 42209,
"startIndex": 42208,
"textRun": {
"content": "\u000b",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 42210,
"inlineObjectElement": {
"inlineObjectId": "kix.wwxo1r4c7v0g",
"textStyle": {}
},
"startIndex": 42209
},
{
"endIndex": 42211,
"startIndex": 42210,
"textRun": {
"content": "\u000b",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 42344,
"startIndex": 42211,
"textRun": {
"content": "In case the Google Play Console requests that you create or link to an existing project, do so first and then come back to this page.",
"textStyle": {}
}
},
{
"endIndex": 42346,
"startIndex": 42344,
"textRun": {
"content": "\u000b\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 42183
},
{
"endIndex": 42443,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {}
},
"elements": [
{
"endIndex": 42412,
"startIndex": 42346,
"textRun": {
"content": "Find the section where you can define service accounts, and click ",
"textStyle": {}
}
},
{
"endIndex": 42440,
"startIndex": 42412,
"textRun": {
"content": "Create new service account.\u000b",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 42441,
"inlineObjectElement": {
"inlineObjectId": "kix.2cd8z374al3f",
"textStyle": {}
},
"startIndex": 42440
},
{
"endIndex": 42442,
"startIndex": 42441,
"textRun": {
"content": "\u000b",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 42443,
"startIndex": 42442,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 42346
},
{
"endIndex": 42511,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {}
},
"elements": [
{
"endIndex": 42453,
"startIndex": 42443,
"textRun": {
"content": "Click the ",
"textStyle": {}
}
},
{
"endIndex": 42474,
"startIndex": 42453,
"textRun": {
"content": "Google Cloud Platform",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 42508,
"startIndex": 42474,
"textRun": {
"content": " link in the dialog that pops up.\u000b",
"textStyle": {}
}
},
{
"endIndex": 42509,
"inlineObjectElement": {
"inlineObjectId": "kix.k2jqdsuz2fno",
"textStyle": {}
},
"startIndex": 42508
},
{
"endIndex": 42511,
"startIndex": 42509,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 42443
},
{
"endIndex": 42670,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 42626,
"startIndex": 42511,
"textRun": {
"content": "Select your project. If you donβt see it, make sure that you are signed in to the correct Google account under the ",
"textStyle": {}
}
},
{
"endIndex": 42633,
"startIndex": 42626,
"textRun": {
"content": "Account",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 42667,
"startIndex": 42633,
"textRun": {
"content": " drop-down list in the top right.\u000b",
"textStyle": {}
}
},
{
"endIndex": 42668,
"inlineObjectElement": {
"inlineObjectId": "kix.vxc4y3subwbz",
"textStyle": {}
},
"startIndex": 42667
},
{
"endIndex": 42670,
"startIndex": 42668,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 42511
},
{
"endIndex": 42755,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 42706,
"startIndex": 42670,
"textRun": {
"content": "After selecting your project, click ",
"textStyle": {}
}
},
{
"endIndex": 42730,
"startIndex": 42706,
"textRun": {
"content": "+ Create Service Account",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 42752,
"startIndex": 42730,
"textRun": {
"content": " in the top menu bar.\u000b",
"textStyle": {}
}
},
{
"endIndex": 42753,
"inlineObjectElement": {
"inlineObjectId": "kix.9fz92ja09nmf",
"textStyle": {}
},
"startIndex": 42752
},
{
"endIndex": 42755,
"startIndex": 42753,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 42670
},
{
"endIndex": 42895,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 42892,
"startIndex": 42755,
"textRun": {
"content": "Provide a name for the service account, optionally provide a description so that youβll remember what itβs for, and go to the next step.\u000b",
"textStyle": {}
}
},
{
"endIndex": 42893,
"inlineObjectElement": {
"inlineObjectId": "kix.s4pnpsjksset",
"textStyle": {}
},
"startIndex": 42892
},
{
"endIndex": 42895,
"startIndex": 42893,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 42755
},
{
"endIndex": 42942,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 42926,
"startIndex": 42895,
"textRun": {
"content": "Assign the service account the ",
"textStyle": {}
}
},
{
"endIndex": 42932,
"startIndex": 42926,
"textRun": {
"content": "Editor",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 42939,
"startIndex": 42932,
"textRun": {
"content": " role.\u000b",
"textStyle": {}
}
},
{
"endIndex": 42940,
"inlineObjectElement": {
"inlineObjectId": "kix.esxpknacoi32",
"textStyle": {}
},
"startIndex": 42939
},
{
"endIndex": 42942,
"startIndex": 42940,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 42895
},
{
"endIndex": 43116,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 42976,
"startIndex": 42942,
"textRun": {
"content": "Finish the wizard, go back to the ",
"textStyle": {}
}
},
{
"endIndex": 42986,
"startIndex": 42976,
"textRun": {
"content": "API Access",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 43032,
"startIndex": 42986,
"textRun": {
"content": " page within the developer console, and click ",
"textStyle": {}
}
},
{
"endIndex": 43057,
"startIndex": 43032,
"textRun": {
"content": "Refresh service accounts.",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 43113,
"startIndex": 43057,
"textRun": {
"content": " You should see your newly created account in the list.\u000b",
"textStyle": {}
}
},
{
"endIndex": 43114,
"inlineObjectElement": {
"inlineObjectId": "kix.4lnpl4yh01t0",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 13.0,
"unit": "PT"
}
}
},
"startIndex": 43113
},
{
"endIndex": 43116,
"startIndex": 43114,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 42942
},
{
"endIndex": 43166,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 43122,
"startIndex": 43116,
"textRun": {
"content": "Click ",
"textStyle": {}
}
},
{
"endIndex": 43134,
"startIndex": 43122,
"textRun": {
"content": "Grant access",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 43166,
"startIndex": 43134,
"textRun": {
"content": " for your new service account.\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 43116
},
{
"endIndex": 43338,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 43200,
"startIndex": 43166,
"textRun": {
"content": "Scroll down the next page, to the ",
"textStyle": {}
}
},
{
"endIndex": 43214,
"startIndex": 43200,
"textRun": {
"content": "Financial data",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 43234,
"startIndex": 43214,
"textRun": {
"content": " block. Select both ",
"textStyle": {}
}
},
{
"endIndex": 43296,
"startIndex": 43234,
"textRun": {
"content": "View financial data, orders, and cancellation survey responses",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 43301,
"startIndex": 43296,
"textRun": {
"content": " and ",
"textStyle": {}
}
},
{
"endIndex": 43332,
"startIndex": 43301,
"textRun": {
"content": "Manage orders and subscriptions",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 43335,
"startIndex": 43332,
"textRun": {
"content": ". \u000b",
"textStyle": {}
}
},
{
"endIndex": 43336,
"inlineObjectElement": {
"inlineObjectId": "kix.i1nagngzzitk",
"textStyle": {}
},
"startIndex": 43335
},
{
"endIndex": 43338,
"startIndex": 43336,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 43166
},
{
"endIndex": 43360,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 43344,
"startIndex": 43338,
"textRun": {
"content": "Click ",
"textStyle": {}
}
},
{
"endIndex": 43355,
"startIndex": 43344,
"textRun": {
"content": "Invite user",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 43357,
"startIndex": 43355,
"textRun": {
"content": ".\u000b",
"textStyle": {}
}
},
{
"endIndex": 43358,
"inlineObjectElement": {
"inlineObjectId": "kix.3bd123g21oey",
"textStyle": {}
},
"startIndex": 43357
},
{
"endIndex": 43360,
"startIndex": 43358,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 43338
},
{
"endIndex": 43581,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 43564,
"startIndex": 43360,
"textRun": {
"content": "Now that the account is set up, you just need to generate some credentials. Back in the cloud console, find your service account in the list of service accounts, click the three vertical dots, and choose ",
"textStyle": {}
}
},
{
"endIndex": 43575,
"startIndex": 43564,
"textRun": {
"content": "Manage keys",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 43578,
"startIndex": 43575,
"textRun": {
"content": ". \u000b",
"textStyle": {}
}
},
{
"endIndex": 43579,
"inlineObjectElement": {
"inlineObjectId": "kix.2egsspufz1c8",
"textStyle": {}
},
"startIndex": 43578
},
{
"endIndex": 43581,
"startIndex": 43579,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 43360
},
{
"endIndex": 43625,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 43621,
"startIndex": 43581,
"textRun": {
"content": "Create a new JSON key and download it. \u000b",
"textStyle": {}
}
},
{
"endIndex": 43622,
"inlineObjectElement": {
"inlineObjectId": "kix.icoz7xengcze",
"textStyle": {}
},
"startIndex": 43621
},
{
"endIndex": 43623,
"inlineObjectElement": {
"inlineObjectId": "kix.3vn591ev65x6",
"textStyle": {}
},
"startIndex": 43622
},
{
"endIndex": 43625,
"startIndex": 43623,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 43581
},
{
"endIndex": 43730,
"paragraph": {
"bullet": {
"listId": "kix.273gbycvqbpv",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 43655,
"startIndex": 43625,
"textRun": {
"content": "Rename the downloaded file to ",
"textStyle": {}
}
},
{
"endIndex": 43688,
"startIndex": 43655,
"textRun": {
"content": "service-account-google-play.json,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 43710,
"startIndex": 43688,
"textRun": {
"content": " and move it into the ",
"textStyle": {}
}
},
{
"endIndex": 43717,
"startIndex": 43710,
"textRun": {
"content": "assets/",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 43730,
"startIndex": 43717,
"textRun": {
"content": " directory.\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 43625
},
{
"endIndex": 43886,
"paragraph": {
"elements": [
{
"endIndex": 43767,
"startIndex": 43730,
"textRun": {
"content": "One more thing we need to do is open ",
"textStyle": {}
}
},
{
"endIndex": 43786,
"startIndex": 43767,
"textRun": {
"content": "lib/constants.dart,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 43812,
"startIndex": 43786,
"textRun": {
"content": " and replace the value of ",
"textStyle": {}
}
},
{
"endIndex": 43828,
"startIndex": 43812,
"textRun": {
"content": "androidPackageId",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 43886,
"startIndex": 43828,
"textRun": {
"content": " with the package ID that you chose for your Android app.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 43730
},
{
"endIndex": 43887,
"paragraph": {
"elements": [
{
"endIndex": 43887,
"startIndex": 43886,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 43886
},
{
"endIndex": 44129,
"startIndex": 43887,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 44128,
"startIndex": 43888,
"tableCells": [
{
"content": [
{
"endIndex": 44128,
"paragraph": {
"elements": [
{
"endIndex": 43895,
"startIndex": 43890,
"textRun": {
"content": "Note:",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 44128,
"startIndex": 43895,
"textRun": {
"content": " It can take a while before the service account grants you access to the Android Publisher APIs. If you run into a situation where your API calls are being denied based on your permissions, try again in a few hours or the next day. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 43890
}
],
"endIndex": 44128,
"startIndex": 43889,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.8039216,
"green": 0.8980392,
"red": 0.9882353
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 44130,
"paragraph": {
"elements": [
{
"endIndex": 44130,
"startIndex": 44129,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44129
},
{
"endIndex": 44160,
"paragraph": {
"elements": [
{
"endIndex": 44160,
"startIndex": 44130,
"textRun": {
"content": "Set up Apple App Store access\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.g72vs8nlqhfu",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 44130
},
{
"endIndex": 44161,
"paragraph": {
"elements": [
{
"endIndex": 44161,
"startIndex": 44160,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44160
},
{
"endIndex": 44247,
"paragraph": {
"elements": [
{
"endIndex": 44247,
"startIndex": 44161,
"textRun": {
"content": "To access the App Store for verifying purchases, you have to set up a shared secret: \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44161
},
{
"endIndex": 44248,
"paragraph": {
"elements": [
{
"endIndex": 44248,
"startIndex": 44247,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44247
},
{
"endIndex": 44272,
"paragraph": {
"bullet": {
"listId": "kix.8vyn4hgvahf0",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 44253,
"startIndex": 44248,
"textRun": {
"content": "Open ",
"textStyle": {}
}
},
{
"endIndex": 44270,
"startIndex": 44253,
"textRun": {
"content": "App Store Connect",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://appstoreconnect.apple.com/"
},
"underline": true
}
}
},
{
"endIndex": 44272,
"startIndex": 44270,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 44248
},
{
"endIndex": 44308,
"paragraph": {
"bullet": {
"listId": "kix.8vyn4hgvahf0",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 44278,
"startIndex": 44272,
"textRun": {
"content": "Go to ",
"textStyle": {}
}
},
{
"endIndex": 44286,
"startIndex": 44278,
"textRun": {
"content": "My Apps,",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 44308,
"startIndex": 44286,
"textRun": {
"content": " and select your app.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 44272
},
{
"endIndex": 44368,
"paragraph": {
"bullet": {
"listId": "kix.8vyn4hgvahf0",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 44341,
"startIndex": 44308,
"textRun": {
"content": "In the sidebar navigation, go to ",
"textStyle": {}
}
},
{
"endIndex": 44366,
"startIndex": 44341,
"textRun": {
"content": "In-App Purchases > Manage",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 44368,
"startIndex": 44366,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 44308
},
{
"endIndex": 44433,
"paragraph": {
"bullet": {
"listId": "kix.8vyn4hgvahf0",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 44404,
"startIndex": 44368,
"textRun": {
"content": "At the top right of the list, click ",
"textStyle": {}
}
},
{
"endIndex": 44431,
"startIndex": 44404,
"textRun": {
"content": "App-Specific Shared Secret.",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 44433,
"startIndex": 44431,
"textRun": {
"content": " \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 44368
},
{
"endIndex": 44469,
"paragraph": {
"bullet": {
"listId": "kix.8vyn4hgvahf0",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 44469,
"startIndex": 44433,
"textRun": {
"content": "Generate a new secret, and copy it.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 44433
},
{
"endIndex": 44583,
"paragraph": {
"bullet": {
"listId": "kix.8vyn4hgvahf0",
"textStyle": {}
},
"elements": [
{
"endIndex": 44474,
"startIndex": 44469,
"textRun": {
"content": "Open ",
"textStyle": {}
}
},
{
"endIndex": 44493,
"startIndex": 44474,
"textRun": {
"content": "lib/constants.dart,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 44519,
"startIndex": 44493,
"textRun": {
"content": " and replace the value of ",
"textStyle": {}
}
},
{
"endIndex": 44539,
"startIndex": 44519,
"textRun": {
"content": "appStoreSharedSecret",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 44583,
"startIndex": 44539,
"textRun": {
"content": " with the shared secret you just generated.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44469
},
{
"endIndex": 44584,
"paragraph": {
"elements": [
{
"endIndex": 44584,
"startIndex": 44583,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44583
},
{
"endIndex": 44586,
"paragraph": {
"elements": [
{
"endIndex": 44585,
"inlineObjectElement": {
"inlineObjectId": "kix.16xo8udq7e3c",
"textStyle": {}
},
"startIndex": 44584
},
{
"endIndex": 44586,
"startIndex": 44585,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "CENTER",
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44584
},
{
"endIndex": 44588,
"paragraph": {
"elements": [
{
"endIndex": 44587,
"inlineObjectElement": {
"inlineObjectId": "kix.7ner1pebor2s",
"textStyle": {}
},
"startIndex": 44586
},
{
"endIndex": 44588,
"startIndex": 44587,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "CENTER",
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44586
},
{
"endIndex": 44618,
"paragraph": {
"elements": [
{
"endIndex": 44618,
"startIndex": 44588,
"textRun": {
"content": "\u000bConstants configuration file\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.aqc59yhf20q",
"namedStyleType": "HEADING_2"
}
},
"startIndex": 44588
},
{
"endIndex": 44619,
"paragraph": {
"elements": [
{
"endIndex": 44619,
"startIndex": 44618,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44618
},
{
"endIndex": 44724,
"paragraph": {
"elements": [
{
"endIndex": 44699,
"startIndex": 44619,
"textRun": {
"content": "Before proceeding, make sure that the following constants are configured in the ",
"textStyle": {}
}
},
{
"endIndex": 44717,
"startIndex": 44699,
"textRun": {
"content": "lib/constants.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 44724,
"startIndex": 44717,
"textRun": {
"content": " file:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44619
},
{
"endIndex": 44725,
"paragraph": {
"elements": [
{
"endIndex": 44725,
"startIndex": 44724,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44724
},
{
"endIndex": 44800,
"paragraph": {
"bullet": {
"listId": "kix.d576od65k8ms",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 44741,
"startIndex": 44725,
"textRun": {
"content": "androidPackageId",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 44776,
"startIndex": 44741,
"textRun": {
"content": ": Package ID used on Android. e.g. ",
"textStyle": {}
}
},
{
"endIndex": 44800,
"startIndex": 44776,
"textRun": {
"content": "com.example.dashclicker\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 44725
},
{
"endIndex": 44898,
"paragraph": {
"bullet": {
"listId": "kix.d576od65k8ms",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 44820,
"startIndex": 44800,
"textRun": {
"content": "appStoreSharedSecret",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 44898,
"startIndex": 44820,
"textRun": {
"content": ": Shared secret to access App Store Connect to perform purchase verification.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 44800
},
{
"endIndex": 44960,
"paragraph": {
"bullet": {
"listId": "kix.d576od65k8ms",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 44906,
"startIndex": 44898,
"textRun": {
"content": "bundleId",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 44935,
"startIndex": 44906,
"textRun": {
"content": ": Bundle ID used on iOS. e.g.",
"textStyle": {}
}
},
{
"endIndex": 44960,
"startIndex": 44935,
"textRun": {
"content": " com.example.dashclicker\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 44898
},
{
"endIndex": 44961,
"paragraph": {
"elements": [
{
"endIndex": 44961,
"startIndex": 44960,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44960
},
{
"endIndex": 45022,
"paragraph": {
"elements": [
{
"endIndex": 45022,
"startIndex": 44961,
"textRun": {
"content": "You can ignore the rest of the constants for the time being.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 44961
},
{
"endIndex": 45023,
"paragraph": {
"elements": [
{
"endIndex": 45023,
"startIndex": 45022,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45022
},
{
"endIndex": 45025,
"paragraph": {
"elements": [
{
"endIndex": 45024,
"pageBreak": {
"textStyle": {}
},
"startIndex": 45023
},
{
"endIndex": 45025,
"startIndex": 45024,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ndve8xf0xaa0",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 45023
},
{
"endIndex": 45042,
"paragraph": {
"elements": [
{
"endIndex": 45042,
"startIndex": 45025,
"textRun": {
"content": "Verify purchases\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.92eefa9xpwex",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 45025
},
{
"endIndex": 45115,
"paragraph": {
"elements": [
{
"endIndex": 45115,
"startIndex": 45042,
"textRun": {
"content": "The general flow for verifying purchases is similar for iOS and Android.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45042
},
{
"endIndex": 45116,
"paragraph": {
"elements": [
{
"endIndex": 45116,
"startIndex": 45115,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45115
},
{
"endIndex": 45192,
"paragraph": {
"elements": [
{
"endIndex": 45192,
"startIndex": 45116,
"textRun": {
"content": "For both stores, your application receives a token when a purchase is made.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45116
},
{
"endIndex": 45193,
"paragraph": {
"elements": [
{
"endIndex": 45193,
"startIndex": 45192,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45192
},
{
"endIndex": 45353,
"paragraph": {
"elements": [
{
"endIndex": 45353,
"startIndex": 45193,
"textRun": {
"content": "This token is sent by the app to your backend service, which then, in turn, verifies the purchase with the respective storeβs servers using the provided token.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45193
},
{
"endIndex": 45354,
"paragraph": {
"elements": [
{
"endIndex": 45354,
"startIndex": 45353,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45353
},
{
"endIndex": 45482,
"paragraph": {
"elements": [
{
"endIndex": 45482,
"startIndex": 45354,
"textRun": {
"content": "The backend service can then choose to store the purchase, and reply to the application whether the purchase was valid or not. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45354
},
{
"endIndex": 45483,
"paragraph": {
"elements": [
{
"endIndex": 45483,
"startIndex": 45482,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45482
},
{
"endIndex": 45713,
"paragraph": {
"elements": [
{
"endIndex": 45713,
"startIndex": 45483,
"textRun": {
"content": "By having the backend service do the validation with the stores rather than the application running on your userβs device, you can prevent the user gaining access to premium features by, for example, rewinding their system clock.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45483
},
{
"endIndex": 45714,
"paragraph": {
"elements": [
{
"endIndex": 45714,
"startIndex": 45713,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45713
},
{
"endIndex": 45738,
"paragraph": {
"elements": [
{
"endIndex": 45737,
"startIndex": 45714,
"textRun": {
"content": "Set up the Flutter side",
"textStyle": {}
}
},
{
"endIndex": 45738,
"startIndex": 45737,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.aoaadshh2reg",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 45714
},
{
"endIndex": 45760,
"paragraph": {
"elements": [
{
"endIndex": 45760,
"startIndex": 45738,
"textRun": {
"content": "Set up authentication\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.134djrxwtck0",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 45738
},
{
"endIndex": 46160,
"paragraph": {
"elements": [
{
"endIndex": 46010,
"startIndex": 45760,
"textRun": {
"content": "As you are going to send the purchases to your backend service, you want to make sure the user is authenticated while making a purchase. Most of the authentication logic is already added for you in the starter project, you just have to make sure the ",
"textStyle": {}
}
},
{
"endIndex": 46022,
"startIndex": 46010,
"textRun": {
"content": "PurchasePage",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 46145,
"startIndex": 46022,
"textRun": {
"content": " shows the login button when the user is not logged in yet. Add the following code to the beginning of the build method of ",
"textStyle": {}
}
},
{
"endIndex": 46157,
"startIndex": 46145,
"textRun": {
"content": "PurchasePage",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 46160,
"startIndex": 46157,
"textRun": {
"content": ": \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 45760
},
{
"endIndex": 46189,
"paragraph": {
"elements": [
{
"endIndex": 46188,
"startIndex": 46160,
"textRun": {
"content": "lib/pages/purchase_page.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/app/lib/pages/purchase_page.dart#L15-L27"
},
"underline": true
}
}
},
{
"endIndex": 46189,
"startIndex": 46188,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.bqda879f77zo",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 46160
},
{
"endIndex": 46815,
"startIndex": 46189,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 46814,
"startIndex": 46190,
"tableCells": [
{
"content": [
{
"endIndex": 46234,
"paragraph": {
"elements": [
{
"endIndex": 46234,
"startIndex": 46192,
"textRun": {
"content": "import '../logic/firebase_notifier.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46192
},
{
"endIndex": 46273,
"paragraph": {
"elements": [
{
"endIndex": 46273,
"startIndex": 46234,
"textRun": {
"content": "import '../model/firebase_state.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46234
},
{
"endIndex": 46299,
"paragraph": {
"elements": [
{
"endIndex": 46299,
"startIndex": 46273,
"textRun": {
"content": "import 'login_page.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46273
},
{
"endIndex": 46300,
"paragraph": {
"elements": [
{
"endIndex": 46300,
"startIndex": 46299,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46299
},
{
"endIndex": 46347,
"paragraph": {
"elements": [
{
"endIndex": 46347,
"startIndex": 46300,
"textRun": {
"content": "class PurchasePage extends StatelessWidget { \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46300
},
{
"endIndex": 46399,
"paragraph": {
"elements": [
{
"endIndex": 46399,
"startIndex": 46347,
"textRun": {
"content": " const PurchasePage({Key? key}) : super(key: key);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46347
},
{
"endIndex": 46400,
"paragraph": {
"elements": [
{
"endIndex": 46400,
"startIndex": 46399,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46399
},
{
"endIndex": 46412,
"paragraph": {
"elements": [
{
"endIndex": 46412,
"startIndex": 46400,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46400
},
{
"endIndex": 46451,
"paragraph": {
"elements": [
{
"endIndex": 46451,
"startIndex": 46412,
"textRun": {
"content": " Widget build(BuildContext context) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46412
},
{
"endIndex": 46513,
"paragraph": {
"elements": [
{
"endIndex": 46513,
"startIndex": 46451,
"textRun": {
"content": " var firebaseNotifier = context.watch<FirebaseNotifier>();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46451
},
{
"endIndex": 46572,
"paragraph": {
"elements": [
{
"endIndex": 46572,
"startIndex": 46513,
"textRun": {
"content": " if (firebaseNotifier.state == FirebaseState.loading) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46513
},
{
"endIndex": 46606,
"paragraph": {
"elements": [
{
"endIndex": 46606,
"startIndex": 46572,
"textRun": {
"content": " return _PurchasesLoading();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46572
},
{
"endIndex": 46677,
"paragraph": {
"elements": [
{
"endIndex": 46677,
"startIndex": 46606,
"textRun": {
"content": " } else if (firebaseNotifier.state == FirebaseState.notAvailable) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46606
},
{
"endIndex": 46716,
"paragraph": {
"elements": [
{
"endIndex": 46716,
"startIndex": 46677,
"textRun": {
"content": " return _PurchasesNotAvailable();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46677
},
{
"endIndex": 46722,
"paragraph": {
"elements": [
{
"endIndex": 46722,
"startIndex": 46716,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46716
},
{
"endIndex": 46723,
"paragraph": {
"elements": [
{
"endIndex": 46723,
"startIndex": 46722,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46722
},
{
"endIndex": 46761,
"paragraph": {
"elements": [
{
"endIndex": 46761,
"startIndex": 46723,
"textRun": {
"content": " if (!firebaseNotifier.loggedIn) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46723
},
{
"endIndex": 46793,
"paragraph": {
"elements": [
{
"endIndex": 46793,
"startIndex": 46761,
"textRun": {
"content": " return const LoginPage();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46761
},
{
"endIndex": 46799,
"paragraph": {
"elements": [
{
"endIndex": 46799,
"startIndex": 46793,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46793
},
{
"endIndex": 46814,
"paragraph": {
"elements": [
{
"endIndex": 46814,
"startIndex": 46799,
"textRun": {
"content": " // omitted\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 46799
}
],
"endIndex": 46814,
"startIndex": 46191,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 46816,
"paragraph": {
"elements": [
{
"endIndex": 46816,
"startIndex": 46815,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 46815
},
{
"endIndex": 46856,
"paragraph": {
"elements": [
{
"endIndex": 46856,
"startIndex": 46816,
"textRun": {
"content": "Call verification endpoint from the app\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.fpeghnmhyjw5",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 46816
},
{
"endIndex": 46857,
"paragraph": {
"elements": [
{
"endIndex": 46857,
"startIndex": 46856,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 46856
},
{
"endIndex": 47024,
"paragraph": {
"elements": [
{
"endIndex": 46880,
"startIndex": 46857,
"textRun": {
"content": "In the app, create the ",
"textStyle": {}
}
},
{
"endIndex": 46928,
"startIndex": 46880,
"textRun": {
"content": "_verifyPurchase(PurchaseDetails purchaseDetails)",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 46938,
"startIndex": 46928,
"textRun": {
"content": " function ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
},
{
"endIndex": 46953,
"startIndex": 46938,
"textRun": {
"content": "that calls the ",
"textStyle": {}
}
},
{
"endIndex": 46968,
"startIndex": 46953,
"textRun": {
"content": "/verifypurchase",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 47024,
"startIndex": 46968,
"textRun": {
"content": " endpoint on your Dart backend using an http post call.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 46857
},
{
"endIndex": 47025,
"paragraph": {
"elements": [
{
"endIndex": 47025,
"startIndex": 47024,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 47024
},
{
"endIndex": 47238,
"paragraph": {
"elements": [
{
"endIndex": 47050,
"startIndex": 47025,
"textRun": {
"content": "Send the selected store (",
"textStyle": {}
}
},
{
"endIndex": 47061,
"startIndex": 47050,
"textRun": {
"content": "google_play",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 47084,
"startIndex": 47061,
"textRun": {
"content": " for the Play Store or ",
"textStyle": {}
}
},
{
"endIndex": 47093,
"startIndex": 47084,
"textRun": {
"content": "app_store",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 47111,
"startIndex": 47093,
"textRun": {
"content": " for the App Store",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
},
{
"endIndex": 47118,
"startIndex": 47111,
"textRun": {
"content": "), the ",
"textStyle": {}
}
},
{
"endIndex": 47140,
"startIndex": 47118,
"textRun": {
"content": "serverVerificationData",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 47141,
"startIndex": 47140,
"textRun": {
"content": ",",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
},
{
"endIndex": 47150,
"startIndex": 47141,
"textRun": {
"content": " and the ",
"textStyle": {}
}
},
{
"endIndex": 47159,
"startIndex": 47150,
"textRun": {
"content": "productID",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 47238,
"startIndex": 47159,
"textRun": {
"content": ". The server returns status code indicating whether the purchase is verified. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 47025
},
{
"endIndex": 47239,
"paragraph": {
"elements": [
{
"endIndex": 47239,
"startIndex": 47238,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 47238
},
{
"endIndex": 47319,
"paragraph": {
"elements": [
{
"endIndex": 47319,
"startIndex": 47239,
"textRun": {
"content": "In the app constants, configure the server IP to your local machine IP address.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 47239
},
{
"endIndex": 47320,
"paragraph": {
"elements": [
{
"endIndex": 47320,
"startIndex": 47319,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 47319
},
{
"endIndex": 47350,
"paragraph": {
"elements": [
{
"endIndex": 47349,
"startIndex": 47320,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/app/lib/logic/dash_purchases.dart#L16-L25"
},
"underline": true
}
}
},
{
"endIndex": 47350,
"startIndex": 47349,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ambb17bea5eu",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 47320
},
{
"endIndex": 47466,
"startIndex": 47350,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 47465,
"startIndex": 47351,
"tableCells": [
{
"content": [
{
"endIndex": 47390,
"paragraph": {
"elements": [
{
"endIndex": 47390,
"startIndex": 47353,
"textRun": {
"content": " FirebaseNotifier firebaseNotifier;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47353
},
{
"endIndex": 47391,
"paragraph": {
"elements": [
{
"endIndex": 47391,
"startIndex": 47390,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47390
},
{
"endIndex": 47446,
"paragraph": {
"elements": [
{
"endIndex": 47446,
"startIndex": 47391,
"textRun": {
"content": " DashPurchases(this.counter, this.firebaseNotifier) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47391
},
{
"endIndex": 47461,
"paragraph": {
"elements": [
{
"endIndex": 47461,
"startIndex": 47446,
"textRun": {
"content": " // omitted\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47446
},
{
"endIndex": 47465,
"paragraph": {
"elements": [
{
"endIndex": 47465,
"startIndex": 47461,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47461
}
],
"endIndex": 47465,
"startIndex": 47352,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 47467,
"paragraph": {
"elements": [
{
"endIndex": 47467,
"startIndex": 47466,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 47466
},
{
"endIndex": 47541,
"paragraph": {
"elements": [
{
"endIndex": 47475,
"startIndex": 47467,
"textRun": {
"content": "Add the ",
"textStyle": {}
}
},
{
"endIndex": 47491,
"startIndex": 47475,
"textRun": {
"content": "firebaseNotifier",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 47513,
"startIndex": 47491,
"textRun": {
"content": " with the creation of ",
"textStyle": {}
}
},
{
"endIndex": 47526,
"startIndex": 47513,
"textRun": {
"content": "DashPurchases",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 47530,
"startIndex": 47526,
"textRun": {
"content": " in ",
"textStyle": {}
}
},
{
"endIndex": 47541,
"startIndex": 47530,
"textRun": {
"content": "main.dart:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 47467
},
{
"endIndex": 47555,
"paragraph": {
"elements": [
{
"endIndex": 47554,
"startIndex": 47541,
"textRun": {
"content": "lib/main.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/app/lib/main.dart#L79-L85"
},
"underline": true
}
}
},
{
"endIndex": 47555,
"startIndex": 47554,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.h3a9vrs8wpa6",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 47541
},
{
"endIndex": 47786,
"startIndex": 47555,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 47785,
"startIndex": 47556,
"tableCells": [
{
"content": [
{
"endIndex": 47605,
"paragraph": {
"elements": [
{
"endIndex": 47605,
"startIndex": 47558,
"textRun": {
"content": " ChangeNotifierProvider<DashPurchases>(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47558
},
{
"endIndex": 47651,
"paragraph": {
"elements": [
{
"endIndex": 47651,
"startIndex": 47605,
"textRun": {
"content": " create: (context) => DashPurchases(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47605
},
{
"endIndex": 47692,
"paragraph": {
"elements": [
{
"endIndex": 47692,
"startIndex": 47651,
"textRun": {
"content": " context.read<DashCounter>(),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47651
},
{
"endIndex": 47738,
"paragraph": {
"elements": [
{
"endIndex": 47738,
"startIndex": 47692,
"textRun": {
"content": " context.read<FirebaseNotifier>(),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47692
},
{
"endIndex": 47751,
"paragraph": {
"elements": [
{
"endIndex": 47751,
"startIndex": 47738,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47738
},
{
"endIndex": 47774,
"paragraph": {
"elements": [
{
"endIndex": 47774,
"startIndex": 47751,
"textRun": {
"content": " lazy: false,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47751
},
{
"endIndex": 47785,
"paragraph": {
"elements": [
{
"endIndex": 47785,
"startIndex": 47774,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47774
}
],
"endIndex": 47785,
"startIndex": 47557,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 47787,
"paragraph": {
"elements": [
{
"endIndex": 47787,
"startIndex": 47786,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 47786
},
{
"endIndex": 47899,
"paragraph": {
"elements": [
{
"endIndex": 47899,
"startIndex": 47787,
"textRun": {
"content": "Add a getter for the User in the FirebaseNotifier, so you can pass the user ID to the verify purchase function.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 47787
},
{
"endIndex": 47932,
"paragraph": {
"elements": [
{
"endIndex": 47931,
"startIndex": 47899,
"textRun": {
"content": "lib/logic/firebase_notifier.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/app/lib/logic/firebase_notifier.dart#L32-L33"
},
"underline": true
}
}
},
{
"endIndex": 47932,
"startIndex": 47931,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.w07tm7tj04kl",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 47899
},
{
"endIndex": 47991,
"startIndex": 47932,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 47990,
"startIndex": 47933,
"tableCells": [
{
"content": [
{
"endIndex": 47990,
"paragraph": {
"elements": [
{
"endIndex": 47990,
"startIndex": 47935,
"textRun": {
"content": " User? get user => FirebaseAuth.instance.currentUser;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 47935
}
],
"endIndex": 47990,
"startIndex": 47934,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 47992,
"paragraph": {
"elements": [
{
"endIndex": 47992,
"startIndex": 47991,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 47991
},
{
"endIndex": 47993,
"paragraph": {
"elements": [
{
"endIndex": 47993,
"startIndex": 47992,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 47992
},
{
"endIndex": 48138,
"paragraph": {
"elements": [
{
"endIndex": 48010,
"startIndex": 47993,
"textRun": {
"content": "Add the function ",
"textStyle": {}
}
},
{
"endIndex": 48025,
"startIndex": 48010,
"textRun": {
"content": "_verifyPurchase",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 48033,
"startIndex": 48025,
"textRun": {
"content": " to the ",
"textStyle": {}
}
},
{
"endIndex": 48046,
"startIndex": 48033,
"textRun": {
"content": "DashPurchases",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 48059,
"startIndex": 48046,
"textRun": {
"content": " class. This ",
"textStyle": {}
}
},
{
"endIndex": 48064,
"startIndex": 48059,
"textRun": {
"content": "async",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 48138,
"startIndex": 48064,
"textRun": {
"content": " function returns a boolean indicating whether the purchase is validated.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 47993
},
{
"endIndex": 48168,
"paragraph": {
"elements": [
{
"endIndex": 48167,
"startIndex": 48138,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/app/lib/logic/dash_purchases.dart#L119-L130"
},
"underline": true
}
}
},
{
"endIndex": 48168,
"startIndex": 48167,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ikjulurznqpp",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 48138
},
{
"endIndex": 49004,
"startIndex": 48168,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 49003,
"startIndex": 48169,
"tableCells": [
{
"content": [
{
"endIndex": 48243,
"paragraph": {
"elements": [
{
"endIndex": 48243,
"startIndex": 48171,
"textRun": {
"content": " Future<bool> _verifyPurchase(PurchaseDetails purchaseDetails) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48171
},
{
"endIndex": 48310,
"paragraph": {
"elements": [
{
"endIndex": 48310,
"startIndex": 48243,
"textRun": {
"content": " final url = Uri.parse('http://$serverIp:8080/verifypurchase');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48243
},
{
"endIndex": 48332,
"paragraph": {
"elements": [
{
"endIndex": 48332,
"startIndex": 48310,
"textRun": {
"content": " const headers = {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48310
},
{
"endIndex": 48374,
"paragraph": {
"elements": [
{
"endIndex": 48374,
"startIndex": 48332,
"textRun": {
"content": " 'Content-type': 'application/json',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48332
},
{
"endIndex": 48410,
"paragraph": {
"elements": [
{
"endIndex": 48410,
"startIndex": 48374,
"textRun": {
"content": " 'Accept': 'application/json',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48374
},
{
"endIndex": 48417,
"paragraph": {
"elements": [
{
"endIndex": 48417,
"startIndex": 48410,
"textRun": {
"content": " };\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48410
},
{
"endIndex": 48455,
"paragraph": {
"elements": [
{
"endIndex": 48455,
"startIndex": 48417,
"textRun": {
"content": " final response = await http.post(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48417
},
{
"endIndex": 48466,
"paragraph": {
"elements": [
{
"endIndex": 48466,
"startIndex": 48455,
"textRun": {
"content": " url,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48455
},
{
"endIndex": 48491,
"paragraph": {
"elements": [
{
"endIndex": 48491,
"startIndex": 48466,
"textRun": {
"content": " body: jsonEncode({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48466
},
{
"endIndex": 48550,
"paragraph": {
"elements": [
{
"endIndex": 48550,
"startIndex": 48491,
"textRun": {
"content": " 'source': purchaseDetails.verificationData.source,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48491
},
{
"endIndex": 48598,
"paragraph": {
"elements": [
{
"endIndex": 48598,
"startIndex": 48550,
"textRun": {
"content": " 'productId': purchaseDetails.productID,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48550
},
{
"endIndex": 48626,
"paragraph": {
"elements": [
{
"endIndex": 48626,
"startIndex": 48598,
"textRun": {
"content": " 'verificationData':\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48598
},
{
"endIndex": 48695,
"paragraph": {
"elements": [
{
"endIndex": 48695,
"startIndex": 48626,
"textRun": {
"content": " purchaseDetails.verificationData.serverVerificationData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48626
},
{
"endIndex": 48741,
"paragraph": {
"elements": [
{
"endIndex": 48741,
"startIndex": 48695,
"textRun": {
"content": " 'userId': firebaseNotifier.user?.uid,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48695
},
{
"endIndex": 48751,
"paragraph": {
"elements": [
{
"endIndex": 48751,
"startIndex": 48741,
"textRun": {
"content": " }),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48741
},
{
"endIndex": 48775,
"paragraph": {
"elements": [
{
"endIndex": 48775,
"startIndex": 48751,
"textRun": {
"content": " headers: headers,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48751
},
{
"endIndex": 48782,
"paragraph": {
"elements": [
{
"endIndex": 48782,
"startIndex": 48775,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48775
},
{
"endIndex": 48820,
"paragraph": {
"elements": [
{
"endIndex": 48820,
"startIndex": 48782,
"textRun": {
"content": " if (response.statusCode == 200) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48782
},
{
"endIndex": 48867,
"paragraph": {
"elements": [
{
"endIndex": 48867,
"startIndex": 48820,
"textRun": {
"content": " print('Successfully verified purchase');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48820
},
{
"endIndex": 48886,
"paragraph": {
"elements": [
{
"endIndex": 48886,
"startIndex": 48867,
"textRun": {
"content": " return true;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48867
},
{
"endIndex": 48899,
"paragraph": {
"elements": [
{
"endIndex": 48899,
"startIndex": 48886,
"textRun": {
"content": " } else {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48886
},
{
"endIndex": 48973,
"paragraph": {
"elements": [
{
"endIndex": 48973,
"startIndex": 48899,
"textRun": {
"content": " print('failed request: ${response.statusCode} - ${response.body}');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48899
},
{
"endIndex": 48993,
"paragraph": {
"elements": [
{
"endIndex": 48993,
"startIndex": 48973,
"textRun": {
"content": " return false;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48973
},
{
"endIndex": 48999,
"paragraph": {
"elements": [
{
"endIndex": 48999,
"startIndex": 48993,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48993
},
{
"endIndex": 49003,
"paragraph": {
"elements": [
{
"endIndex": 49003,
"startIndex": 48999,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 48999
}
],
"endIndex": 49003,
"startIndex": 48170,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 49005,
"paragraph": {
"elements": [
{
"endIndex": 49005,
"startIndex": 49004,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 49004
},
{
"endIndex": 49006,
"paragraph": {
"elements": [
{
"endIndex": 49006,
"startIndex": 49005,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 49005
},
{
"endIndex": 49402,
"paragraph": {
"elements": [
{
"endIndex": 49015,
"startIndex": 49006,
"textRun": {
"content": "Call the ",
"textStyle": {}
}
},
{
"endIndex": 49030,
"startIndex": 49015,
"textRun": {
"content": "_verifyPurchase",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 49043,
"startIndex": 49030,
"textRun": {
"content": " function in ",
"textStyle": {}
}
},
{
"endIndex": 49058,
"startIndex": 49043,
"textRun": {
"content": "_handlePurchase",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 49401,
"startIndex": 49058,
"textRun": {
"content": " just before you apply the purchase. You should only apply the purchase when itβs verified. In a production app, you can specify this further to, for example, apply a trial subscription when the store is temporarily unavailable. However, for this example, keep it simple, and only apply the purchase when the purchase is verified successfully.",
"textStyle": {}
}
},
{
"endIndex": 49402,
"startIndex": 49401,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 49006
},
{
"endIndex": 49432,
"paragraph": {
"elements": [
{
"endIndex": 49431,
"startIndex": 49402,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/app/lib/logic/dash_purchases.dart#L86-L117"
},
"underline": true
}
}
},
{
"endIndex": 49432,
"startIndex": 49431,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ipyt35k9ps3s",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 49402
},
{
"endIndex": 50335,
"startIndex": 49432,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 50334,
"startIndex": 49433,
"tableCells": [
{
"content": [
{
"endIndex": 49469,
"paragraph": {
"elements": [
{
"endIndex": 49469,
"startIndex": 49435,
"textRun": {
"content": " Future<void> _onPurchaseUpdate(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49435
},
{
"endIndex": 49526,
"paragraph": {
"elements": [
{
"endIndex": 49526,
"startIndex": 49469,
"textRun": {
"content": " List<PurchaseDetails> purchaseDetailsList) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49469
},
{
"endIndex": 49581,
"paragraph": {
"elements": [
{
"endIndex": 49581,
"startIndex": 49526,
"textRun": {
"content": " for (var purchaseDetails in purchaseDetailsList) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49526
},
{
"endIndex": 49627,
"paragraph": {
"elements": [
{
"endIndex": 49627,
"startIndex": 49581,
"textRun": {
"content": " await _handlePurchase(purchaseDetails);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49581
},
{
"endIndex": 49633,
"paragraph": {
"elements": [
{
"endIndex": 49633,
"startIndex": 49627,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49627
},
{
"endIndex": 49656,
"paragraph": {
"elements": [
{
"endIndex": 49656,
"startIndex": 49633,
"textRun": {
"content": " notifyListeners();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49633
},
{
"endIndex": 49660,
"paragraph": {
"elements": [
{
"endIndex": 49660,
"startIndex": 49656,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49656
},
{
"endIndex": 49661,
"paragraph": {
"elements": [
{
"endIndex": 49661,
"startIndex": 49660,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49660
},
{
"endIndex": 49733,
"paragraph": {
"elements": [
{
"endIndex": 49733,
"startIndex": 49661,
"textRun": {
"content": " Future<void> _handlePurchase(PurchaseDetails purchaseDetails) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49661
},
{
"endIndex": 49795,
"paragraph": {
"elements": [
{
"endIndex": 49795,
"startIndex": 49733,
"textRun": {
"content": " if (purchaseDetails.status == PurchaseStatus.purchased) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49733
},
{
"endIndex": 49819,
"paragraph": {
"elements": [
{
"endIndex": 49819,
"startIndex": 49795,
"textRun": {
"content": " // Send to server\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49795
},
{
"endIndex": 49885,
"paragraph": {
"elements": [
{
"endIndex": 49885,
"startIndex": 49819,
"textRun": {
"content": " var validPurchase = await _verifyPurchase(purchaseDetails);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49819
},
{
"endIndex": 49886,
"paragraph": {
"elements": [
{
"endIndex": 49886,
"startIndex": 49885,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49885
},
{
"endIndex": 49913,
"paragraph": {
"elements": [
{
"endIndex": 49913,
"startIndex": 49886,
"textRun": {
"content": " if (validPurchase) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49886
},
{
"endIndex": 49946,
"paragraph": {
"elements": [
{
"endIndex": 49946,
"startIndex": 49913,
"textRun": {
"content": " // Apply changes locally\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49913
},
{
"endIndex": 49991,
"paragraph": {
"elements": [
{
"endIndex": 49991,
"startIndex": 49946,
"textRun": {
"content": " switch (purchaseDetails.productID) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49946
},
{
"endIndex": 50028,
"paragraph": {
"elements": [
{
"endIndex": 50028,
"startIndex": 49991,
"textRun": {
"content": " case storeKeySubscription:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 49991
},
{
"endIndex": 50071,
"paragraph": {
"elements": [
{
"endIndex": 50071,
"startIndex": 50028,
"textRun": {
"content": " counter.applyPaidMultiplier();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50028
},
{
"endIndex": 50090,
"paragraph": {
"elements": [
{
"endIndex": 50090,
"startIndex": 50071,
"textRun": {
"content": " break;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50071
},
{
"endIndex": 50125,
"paragraph": {
"elements": [
{
"endIndex": 50125,
"startIndex": 50090,
"textRun": {
"content": " case storeKeyConsumable:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50090
},
{
"endIndex": 50168,
"paragraph": {
"elements": [
{
"endIndex": 50168,
"startIndex": 50125,
"textRun": {
"content": " counter.addBoughtDashes(1000);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50125
},
{
"endIndex": 50187,
"paragraph": {
"elements": [
{
"endIndex": 50187,
"startIndex": 50168,
"textRun": {
"content": " break;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50168
},
{
"endIndex": 50197,
"paragraph": {
"elements": [
{
"endIndex": 50197,
"startIndex": 50187,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50187
},
{
"endIndex": 50205,
"paragraph": {
"elements": [
{
"endIndex": 50205,
"startIndex": 50197,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50197
},
{
"endIndex": 50211,
"paragraph": {
"elements": [
{
"endIndex": 50211,
"startIndex": 50205,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50205
},
{
"endIndex": 50212,
"paragraph": {
"elements": [
{
"endIndex": 50212,
"startIndex": 50211,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50211
},
{
"endIndex": 50263,
"paragraph": {
"elements": [
{
"endIndex": 50263,
"startIndex": 50212,
"textRun": {
"content": " if (purchaseDetails.pendingCompletePurchase) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50212
},
{
"endIndex": 50324,
"paragraph": {
"elements": [
{
"endIndex": 50324,
"startIndex": 50263,
"textRun": {
"content": " await iapConnection.completePurchase(purchaseDetails);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50263
},
{
"endIndex": 50330,
"paragraph": {
"elements": [
{
"endIndex": 50330,
"startIndex": 50324,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50324
},
{
"endIndex": 50334,
"paragraph": {
"elements": [
{
"endIndex": 50334,
"startIndex": 50330,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50330
}
],
"endIndex": 50334,
"startIndex": 49434,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 50336,
"paragraph": {
"elements": [
{
"endIndex": 50336,
"startIndex": 50335,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 50335
},
{
"endIndex": 50398,
"paragraph": {
"elements": [
{
"endIndex": 50398,
"startIndex": 50336,
"textRun": {
"content": "In the app everything is now ready to validate the purchases.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 50336
},
{
"endIndex": 50425,
"paragraph": {
"elements": [
{
"endIndex": 50425,
"startIndex": 50398,
"textRun": {
"content": "Set up the backend service\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.w21b5bvfuwiw",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 50398
},
{
"endIndex": 50497,
"paragraph": {
"elements": [
{
"endIndex": 50497,
"startIndex": 50425,
"textRun": {
"content": "Next, set up the cloud function for verifying purchases on the backend.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 50425
},
{
"endIndex": 50521,
"paragraph": {
"elements": [
{
"endIndex": 50521,
"startIndex": 50497,
"textRun": {
"content": "Build purchase handlers\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.q27vh9nf8lin",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 50497
},
{
"endIndex": 50677,
"paragraph": {
"elements": [
{
"endIndex": 50609,
"startIndex": 50521,
"textRun": {
"content": "Because the verification flow for both stores is close to identical, set up an abstract ",
"textStyle": {}
}
},
{
"endIndex": 50624,
"startIndex": 50609,
"textRun": {
"content": "PurchaseHandler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 50677,
"startIndex": 50624,
"textRun": {
"content": " class with separate implementations for each store.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 50521
},
{
"endIndex": 50679,
"paragraph": {
"elements": [
{
"endIndex": 50678,
"inlineObjectElement": {
"inlineObjectId": "kix.bqwp3g2c0vyr",
"textStyle": {}
},
"startIndex": 50677
},
{
"endIndex": 50679,
"startIndex": 50678,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"alignment": "CENTER",
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 50677
},
{
"endIndex": 50680,
"paragraph": {
"elements": [
{
"endIndex": 50680,
"startIndex": 50679,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 50679
},
{
"endIndex": 50907,
"paragraph": {
"elements": [
{
"endIndex": 50698,
"startIndex": 50680,
"textRun": {
"content": "Start by adding a ",
"textStyle": {}
}
},
{
"endIndex": 50719,
"startIndex": 50698,
"textRun": {
"content": "purchase_handler.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 50732,
"startIndex": 50719,
"textRun": {
"content": " file to the ",
"textStyle": {}
}
},
{
"endIndex": 50736,
"startIndex": 50732,
"textRun": {
"content": "lib/",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 50774,
"startIndex": 50736,
"textRun": {
"content": " folder, where you define an abstract ",
"textStyle": {}
}
},
{
"endIndex": 50789,
"startIndex": 50774,
"textRun": {
"content": "PurchaseHandler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 50907,
"startIndex": 50789,
"textRun": {
"content": " class with two abstract methods for verifying two different kinds of purchases: subscriptions and non-subscriptions.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 50680
},
{
"endIndex": 50933,
"paragraph": {
"elements": [
{
"endIndex": 50932,
"startIndex": 50907,
"textRun": {
"content": "lib/purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 50933,
"startIndex": 50932,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.lzo8w6ec9do",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 50907
},
{
"endIndex": 51556,
"startIndex": 50933,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 51555,
"startIndex": 50934,
"tableCells": [
{
"content": [
{
"endIndex": 50960,
"paragraph": {
"elements": [
{
"endIndex": 50960,
"startIndex": 50936,
"textRun": {
"content": "import 'products.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50936
},
{
"endIndex": 50961,
"paragraph": {
"elements": [
{
"endIndex": 50961,
"startIndex": 50960,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50960
},
{
"endIndex": 50991,
"paragraph": {
"elements": [
{
"endIndex": 50991,
"startIndex": 50961,
"textRun": {
"content": "/// Generic purchase handler,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50961
},
{
"endIndex": 51047,
"paragraph": {
"elements": [
{
"endIndex": 51047,
"startIndex": 50991,
"textRun": {
"content": "/// must be implemented for Google Play and Apple Store\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 50991
},
{
"endIndex": 51080,
"paragraph": {
"elements": [
{
"endIndex": 51080,
"startIndex": 51047,
"textRun": {
"content": "abstract class PurchaseHandler {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51047
},
{
"endIndex": 51081,
"paragraph": {
"elements": [
{
"endIndex": 51081,
"startIndex": 51080,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51080
},
{
"endIndex": 51149,
"paragraph": {
"elements": [
{
"endIndex": 51149,
"startIndex": 51081,
"textRun": {
"content": " /// Verify if non-subscription purchase (aka consumable) is valid\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51081
},
{
"endIndex": 51179,
"paragraph": {
"elements": [
{
"endIndex": 51179,
"startIndex": 51149,
"textRun": {
"content": " /// and update the database\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51149
},
{
"endIndex": 51218,
"paragraph": {
"elements": [
{
"endIndex": 51218,
"startIndex": 51179,
"textRun": {
"content": " Future<bool> handleNonSubscription({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51179
},
{
"endIndex": 51246,
"paragraph": {
"elements": [
{
"endIndex": 51246,
"startIndex": 51218,
"textRun": {
"content": " required String userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51218
},
{
"endIndex": 51284,
"paragraph": {
"elements": [
{
"endIndex": 51284,
"startIndex": 51246,
"textRun": {
"content": " required ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51246
},
{
"endIndex": 51311,
"paragraph": {
"elements": [
{
"endIndex": 51311,
"startIndex": 51284,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51284
},
{
"endIndex": 51317,
"paragraph": {
"elements": [
{
"endIndex": 51317,
"startIndex": 51311,
"textRun": {
"content": " });\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51311
},
{
"endIndex": 51318,
"paragraph": {
"elements": [
{
"endIndex": 51318,
"startIndex": 51317,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51317
},
{
"endIndex": 51386,
"paragraph": {
"elements": [
{
"endIndex": 51386,
"startIndex": 51318,
"textRun": {
"content": " /// Verify if subscription purchase (aka non-consumable) is valid\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51318
},
{
"endIndex": 51416,
"paragraph": {
"elements": [
{
"endIndex": 51416,
"startIndex": 51386,
"textRun": {
"content": " /// and update the database\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51386
},
{
"endIndex": 51452,
"paragraph": {
"elements": [
{
"endIndex": 51452,
"startIndex": 51416,
"textRun": {
"content": " Future<bool> handleSubscription({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51416
},
{
"endIndex": 51480,
"paragraph": {
"elements": [
{
"endIndex": 51480,
"startIndex": 51452,
"textRun": {
"content": " required String userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51452
},
{
"endIndex": 51518,
"paragraph": {
"elements": [
{
"endIndex": 51518,
"startIndex": 51480,
"textRun": {
"content": " required ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51480
},
{
"endIndex": 51545,
"paragraph": {
"elements": [
{
"endIndex": 51545,
"startIndex": 51518,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51518
},
{
"endIndex": 51551,
"paragraph": {
"elements": [
{
"endIndex": 51551,
"startIndex": 51545,
"textRun": {
"content": " });\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51545
},
{
"endIndex": 51553,
"paragraph": {
"elements": [
{
"endIndex": 51553,
"startIndex": 51551,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51551
},
{
"endIndex": 51554,
"paragraph": {
"elements": [
{
"endIndex": 51554,
"startIndex": 51553,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51553
},
{
"endIndex": 51555,
"paragraph": {
"elements": [
{
"endIndex": 51555,
"startIndex": 51554,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 51554
}
],
"endIndex": 51555,
"startIndex": 50935,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 51557,
"paragraph": {
"elements": [
{
"endIndex": 51557,
"startIndex": 51556,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 51556
},
{
"endIndex": 51612,
"paragraph": {
"elements": [
{
"endIndex": 51612,
"startIndex": 51557,
"textRun": {
"content": "As you can see, each method requires three parameters:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 51557
},
{
"endIndex": 51688,
"paragraph": {
"bullet": {
"listId": "kix.7mxsheck861c",
"textStyle": {}
},
"elements": [
{
"endIndex": 51619,
"startIndex": 51612,
"textRun": {
"content": "userId:",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 51620,
"startIndex": 51619,
"textRun": {
"content": " ",
"textStyle": {}
}
},
{
"endIndex": 51688,
"startIndex": 51620,
"textRun": {
"content": "The ID of the logged-in user, so you can tie purchases to the user.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 51612
},
{
"endIndex": 51767,
"paragraph": {
"bullet": {
"listId": "kix.7mxsheck861c",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 51700,
"startIndex": 51688,
"textRun": {
"content": "productData:",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 51701,
"startIndex": 51700,
"textRun": {
"content": " ",
"textStyle": {}
}
},
{
"endIndex": 51767,
"startIndex": 51701,
"textRun": {
"content": "Data about the product. You are going to define this in a minute.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 51688
},
{
"endIndex": 51819,
"paragraph": {
"bullet": {
"listId": "kix.7mxsheck861c",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 51773,
"startIndex": 51767,
"textRun": {
"content": "token:",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 51819,
"startIndex": 51773,
"textRun": {
"content": " The token provided to the user by the store.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 51767
},
{
"endIndex": 51820,
"paragraph": {
"elements": [
{
"endIndex": 51820,
"startIndex": 51819,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 51819
},
{
"endIndex": 51974,
"paragraph": {
"elements": [
{
"endIndex": 51887,
"startIndex": 51820,
"textRun": {
"content": "Additionally, to make these purchase handlers easier to use, add a ",
"textStyle": {}
}
},
{
"endIndex": 51904,
"startIndex": 51887,
"textRun": {
"content": "verifyPurchase() ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 51974,
"startIndex": 51904,
"textRun": {
"content": "method that can be used for both subscriptions and non-subscriptions:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 51820
},
{
"endIndex": 52000,
"paragraph": {
"elements": [
{
"endIndex": 51999,
"startIndex": 51974,
"textRun": {
"content": "lib/purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 52000,
"startIndex": 51999,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.geakaektj298",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 51974
},
{
"endIndex": 52587,
"startIndex": 52000,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 52586,
"startIndex": 52001,
"tableCells": [
{
"content": [
{
"endIndex": 52061,
"paragraph": {
"elements": [
{
"endIndex": 52061,
"startIndex": 52003,
"textRun": {
"content": " /// Verify if purchase is valid and update the database\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52003
},
{
"endIndex": 52093,
"paragraph": {
"elements": [
{
"endIndex": 52093,
"startIndex": 52061,
"textRun": {
"content": " Future<bool> verifyPurchase({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52061
},
{
"endIndex": 52121,
"paragraph": {
"elements": [
{
"endIndex": 52121,
"startIndex": 52093,
"textRun": {
"content": " required String userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52093
},
{
"endIndex": 52159,
"paragraph": {
"elements": [
{
"endIndex": 52159,
"startIndex": 52121,
"textRun": {
"content": " required ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52121
},
{
"endIndex": 52186,
"paragraph": {
"elements": [
{
"endIndex": 52186,
"startIndex": 52159,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52159
},
{
"endIndex": 52199,
"paragraph": {
"elements": [
{
"endIndex": 52199,
"startIndex": 52186,
"textRun": {
"content": " }) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52186
},
{
"endIndex": 52231,
"paragraph": {
"elements": [
{
"endIndex": 52231,
"startIndex": 52199,
"textRun": {
"content": " switch (productData.type) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52199
},
{
"endIndex": 52268,
"paragraph": {
"elements": [
{
"endIndex": 52268,
"startIndex": 52231,
"textRun": {
"content": " case ProductType.subscription:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52231
},
{
"endIndex": 52303,
"paragraph": {
"elements": [
{
"endIndex": 52303,
"startIndex": 52268,
"textRun": {
"content": " return handleSubscription(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52268
},
{
"endIndex": 52329,
"paragraph": {
"elements": [
{
"endIndex": 52329,
"startIndex": 52303,
"textRun": {
"content": " userId: userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52303
},
{
"endIndex": 52365,
"paragraph": {
"elements": [
{
"endIndex": 52365,
"startIndex": 52329,
"textRun": {
"content": " productData: productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52329
},
{
"endIndex": 52389,
"paragraph": {
"elements": [
{
"endIndex": 52389,
"startIndex": 52365,
"textRun": {
"content": " token: token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52365
},
{
"endIndex": 52400,
"paragraph": {
"elements": [
{
"endIndex": 52400,
"startIndex": 52389,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52389
},
{
"endIndex": 52440,
"paragraph": {
"elements": [
{
"endIndex": 52440,
"startIndex": 52400,
"textRun": {
"content": " case ProductType.nonSubscription:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52400
},
{
"endIndex": 52478,
"paragraph": {
"elements": [
{
"endIndex": 52478,
"startIndex": 52440,
"textRun": {
"content": " return handleNonSubscription(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52440
},
{
"endIndex": 52504,
"paragraph": {
"elements": [
{
"endIndex": 52504,
"startIndex": 52478,
"textRun": {
"content": " userId: userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52478
},
{
"endIndex": 52540,
"paragraph": {
"elements": [
{
"endIndex": 52540,
"startIndex": 52504,
"textRun": {
"content": " productData: productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52504
},
{
"endIndex": 52564,
"paragraph": {
"elements": [
{
"endIndex": 52564,
"startIndex": 52540,
"textRun": {
"content": " token: token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52540
},
{
"endIndex": 52575,
"paragraph": {
"elements": [
{
"endIndex": 52575,
"startIndex": 52564,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52564
},
{
"endIndex": 52581,
"paragraph": {
"elements": [
{
"endIndex": 52581,
"startIndex": 52575,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52575
},
{
"endIndex": 52585,
"paragraph": {
"elements": [
{
"endIndex": 52585,
"startIndex": 52581,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52581
},
{
"endIndex": 52586,
"paragraph": {
"elements": [
{
"endIndex": 52586,
"startIndex": 52585,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52585
}
],
"endIndex": 52586,
"startIndex": 52002,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 52588,
"paragraph": {
"elements": [
{
"endIndex": 52588,
"startIndex": 52587,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 52587
},
{
"endIndex": 52683,
"paragraph": {
"elements": [
{
"endIndex": 52611,
"startIndex": 52588,
"textRun": {
"content": "Now, you can just call ",
"textStyle": {}
}
},
{
"endIndex": 52625,
"startIndex": 52611,
"textRun": {
"content": "verifyPurchase",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 52683,
"startIndex": 52625,
"textRun": {
"content": " for both cases, but still have separate implementations!\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 52588
},
{
"endIndex": 52684,
"paragraph": {
"elements": [
{
"endIndex": 52684,
"startIndex": 52683,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 52683
},
{
"endIndex": 52862,
"paragraph": {
"elements": [
{
"endIndex": 52688,
"startIndex": 52684,
"textRun": {
"content": "The ",
"textStyle": {}
}
},
{
"endIndex": 52699,
"startIndex": 52688,
"textRun": {
"content": "ProductData",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 52849,
"startIndex": 52699,
"textRun": {
"content": " class contains basic information about the different purchasable products, which includes the product ID (sometimes also referred to as SKU) and the ",
"textStyle": {}
}
},
{
"endIndex": 52860,
"startIndex": 52849,
"textRun": {
"content": "ProductType",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 52862,
"startIndex": 52860,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 52684
},
{
"endIndex": 52880,
"paragraph": {
"elements": [
{
"endIndex": 52879,
"startIndex": 52862,
"textRun": {
"content": "lib/products.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/products.dart"
},
"underline": true
}
}
},
{
"endIndex": 52880,
"startIndex": 52879,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.7futscu8mmb",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 52862
},
{
"endIndex": 53007,
"startIndex": 52880,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 53006,
"startIndex": 52881,
"tableCells": [
{
"content": [
{
"endIndex": 52903,
"paragraph": {
"elements": [
{
"endIndex": 52903,
"startIndex": 52883,
"textRun": {
"content": "class ProductData {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52883
},
{
"endIndex": 52929,
"paragraph": {
"elements": [
{
"endIndex": 52929,
"startIndex": 52903,
"textRun": {
"content": " final String productId;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52903
},
{
"endIndex": 52955,
"paragraph": {
"elements": [
{
"endIndex": 52955,
"startIndex": 52929,
"textRun": {
"content": " final ProductType type;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52929
},
{
"endIndex": 52956,
"paragraph": {
"elements": [
{
"endIndex": 52956,
"startIndex": 52955,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52955
},
{
"endIndex": 53004,
"paragraph": {
"elements": [
{
"endIndex": 53004,
"startIndex": 52956,
"textRun": {
"content": " const ProductData(this.productId, this.type);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 52956
},
{
"endIndex": 53006,
"paragraph": {
"elements": [
{
"endIndex": 53006,
"startIndex": 53004,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53004
}
],
"endIndex": 53006,
"startIndex": 52882,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 53008,
"paragraph": {
"elements": [
{
"endIndex": 53008,
"startIndex": 53007,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 53007
},
{
"endIndex": 53076,
"paragraph": {
"elements": [
{
"endIndex": 53012,
"startIndex": 53008,
"textRun": {
"content": "The ",
"textStyle": {}
}
},
{
"endIndex": 53023,
"startIndex": 53012,
"textRun": {
"content": "ProductType",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 53076,
"startIndex": 53023,
"textRun": {
"content": " can either be a subscription or a non-subscription.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 53008
},
{
"endIndex": 53094,
"paragraph": {
"elements": [
{
"endIndex": 53093,
"startIndex": 53076,
"textRun": {
"content": "lib/products.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/products.dart"
},
"underline": true
}
}
},
{
"endIndex": 53094,
"startIndex": 53093,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.6rh56l6ga4h6",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 53076
},
{
"endIndex": 53154,
"startIndex": 53094,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 53153,
"startIndex": 53095,
"tableCells": [
{
"content": [
{
"endIndex": 53116,
"paragraph": {
"elements": [
{
"endIndex": 53116,
"startIndex": 53097,
"textRun": {
"content": "enum ProductType {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53097
},
{
"endIndex": 53132,
"paragraph": {
"elements": [
{
"endIndex": 53132,
"startIndex": 53116,
"textRun": {
"content": " subscription,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53116
},
{
"endIndex": 53151,
"paragraph": {
"elements": [
{
"endIndex": 53151,
"startIndex": 53132,
"textRun": {
"content": " nonSubscription,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53132
},
{
"endIndex": 53153,
"paragraph": {
"elements": [
{
"endIndex": 53153,
"startIndex": 53151,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53151
}
],
"endIndex": 53153,
"startIndex": 53096,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 53155,
"paragraph": {
"elements": [
{
"endIndex": 53155,
"startIndex": 53154,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 53154
},
{
"endIndex": 53223,
"paragraph": {
"elements": [
{
"endIndex": 53223,
"startIndex": 53155,
"textRun": {
"content": "Finally, the list of products is defined as a map in the same file.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 53155
},
{
"endIndex": 53241,
"paragraph": {
"elements": [
{
"endIndex": 53240,
"startIndex": 53223,
"textRun": {
"content": "lib/products.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/products.dart"
},
"underline": true
}
}
},
{
"endIndex": 53241,
"startIndex": 53240,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.6qjhvq3h7jd4",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 53223
},
{
"endIndex": 53581,
"startIndex": 53241,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 53580,
"startIndex": 53242,
"tableCells": [
{
"content": [
{
"endIndex": 53269,
"paragraph": {
"elements": [
{
"endIndex": 53269,
"startIndex": 53244,
"textRun": {
"content": "const productDataMap = {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53244
},
{
"endIndex": 53306,
"paragraph": {
"elements": [
{
"endIndex": 53306,
"startIndex": 53269,
"textRun": {
"content": " 'dash_consumable_2k': ProductData(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53269
},
{
"endIndex": 53332,
"paragraph": {
"elements": [
{
"endIndex": 53332,
"startIndex": 53306,
"textRun": {
"content": " 'dash_consumable_2k',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53306
},
{
"endIndex": 53365,
"paragraph": {
"elements": [
{
"endIndex": 53365,
"startIndex": 53332,
"textRun": {
"content": " ProductType.nonSubscription,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53332
},
{
"endIndex": 53370,
"paragraph": {
"elements": [
{
"endIndex": 53370,
"startIndex": 53365,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53365
},
{
"endIndex": 53404,
"paragraph": {
"elements": [
{
"endIndex": 53404,
"startIndex": 53370,
"textRun": {
"content": " 'dash_upgrade_3d': ProductData(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53370
},
{
"endIndex": 53427,
"paragraph": {
"elements": [
{
"endIndex": 53427,
"startIndex": 53404,
"textRun": {
"content": " 'dash_upgrade_3d',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53404
},
{
"endIndex": 53460,
"paragraph": {
"elements": [
{
"endIndex": 53460,
"startIndex": 53427,
"textRun": {
"content": " ProductType.nonSubscription,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53427
},
{
"endIndex": 53465,
"paragraph": {
"elements": [
{
"endIndex": 53465,
"startIndex": 53460,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53460
},
{
"endIndex": 53509,
"paragraph": {
"elements": [
{
"endIndex": 53509,
"startIndex": 53465,
"textRun": {
"content": " 'dash_subscription_doubler': ProductData(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53465
},
{
"endIndex": 53542,
"paragraph": {
"elements": [
{
"endIndex": 53542,
"startIndex": 53509,
"textRun": {
"content": " 'dash_subscription_doubler',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53509
},
{
"endIndex": 53572,
"paragraph": {
"elements": [
{
"endIndex": 53572,
"startIndex": 53542,
"textRun": {
"content": " ProductType.subscription,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53542
},
{
"endIndex": 53577,
"paragraph": {
"elements": [
{
"endIndex": 53577,
"startIndex": 53572,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53572
},
{
"endIndex": 53580,
"paragraph": {
"elements": [
{
"endIndex": 53580,
"startIndex": 53577,
"textRun": {
"content": "};\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53577
}
],
"endIndex": 53580,
"startIndex": 53243,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 53582,
"paragraph": {
"elements": [
{
"endIndex": 53582,
"startIndex": 53581,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 53581
},
{
"endIndex": 53583,
"paragraph": {
"elements": [
{
"endIndex": 53583,
"startIndex": 53582,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 53582
},
{
"endIndex": 53704,
"paragraph": {
"elements": [
{
"endIndex": 53704,
"startIndex": 53583,
"textRun": {
"content": "Next, define some placeholder implementations for the Google Play Store and the Apple App Store. Start with Google Play:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 53583
},
{
"endIndex": 53705,
"paragraph": {
"elements": [
{
"endIndex": 53705,
"startIndex": 53704,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 53704
},
{
"endIndex": 53816,
"paragraph": {
"elements": [
{
"endIndex": 53712,
"startIndex": 53705,
"textRun": {
"content": "Create ",
"textStyle": {}
}
},
{
"endIndex": 53749,
"startIndex": 53712,
"textRun": {
"content": "lib/google_play_purchase_handler.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 53750,
"startIndex": 53749,
"textRun": {
"content": ",",
"textStyle": {}
}
},
{
"endIndex": 53784,
"startIndex": 53750,
"textRun": {
"content": " and add a class that extends the ",
"textStyle": {}
}
},
{
"endIndex": 53799,
"startIndex": 53784,
"textRun": {
"content": "PurchaseHandler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 53816,
"startIndex": 53799,
"textRun": {
"content": " you just wrote:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 53705
},
{
"endIndex": 53854,
"paragraph": {
"elements": [
{
"endIndex": 53853,
"startIndex": 53816,
"textRun": {
"content": "lib/google_play_purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/google_play_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 53854,
"startIndex": 53853,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.hit9xghmtn82",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 53816
},
{
"endIndex": 54643,
"startIndex": 53854,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 54642,
"startIndex": 53855,
"tableCells": [
{
"content": [
{
"endIndex": 53878,
"paragraph": {
"elements": [
{
"endIndex": 53878,
"startIndex": 53857,
"textRun": {
"content": "import 'dart:async';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53857
},
{
"endIndex": 53879,
"paragraph": {
"elements": [
{
"endIndex": 53879,
"startIndex": 53878,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53878
},
{
"endIndex": 53939,
"paragraph": {
"elements": [
{
"endIndex": 53939,
"startIndex": 53879,
"textRun": {
"content": "import 'package:googleapis/androidpublisher/v3.dart' as ap;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53879
},
{
"endIndex": 53940,
"paragraph": {
"elements": [
{
"endIndex": 53940,
"startIndex": 53939,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53939
},
{
"endIndex": 53965,
"paragraph": {
"elements": [
{
"endIndex": 53965,
"startIndex": 53940,
"textRun": {
"content": "import 'constants.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53940
},
{
"endIndex": 53995,
"paragraph": {
"elements": [
{
"endIndex": 53995,
"startIndex": 53965,
"textRun": {
"content": "import 'iap_repository.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53965
},
{
"endIndex": 54019,
"paragraph": {
"elements": [
{
"endIndex": 54019,
"startIndex": 53995,
"textRun": {
"content": "import 'products.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 53995
},
{
"endIndex": 54051,
"paragraph": {
"elements": [
{
"endIndex": 54051,
"startIndex": 54019,
"textRun": {
"content": "import 'purchase_handler.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54019
},
{
"endIndex": 54052,
"paragraph": {
"elements": [
{
"endIndex": 54052,
"startIndex": 54051,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54051
},
{
"endIndex": 54110,
"paragraph": {
"elements": [
{
"endIndex": 54110,
"startIndex": 54052,
"textRun": {
"content": "class GooglePlayPurchaseHandler extends PurchaseHandler {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54052
},
{
"endIndex": 54159,
"paragraph": {
"elements": [
{
"endIndex": 54159,
"startIndex": 54110,
"textRun": {
"content": " final ap.AndroidPublisherApi androidPublisher;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54110
},
{
"endIndex": 54196,
"paragraph": {
"elements": [
{
"endIndex": 54196,
"startIndex": 54159,
"textRun": {
"content": " final IapRepository iapRepository;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54159
},
{
"endIndex": 54197,
"paragraph": {
"elements": [
{
"endIndex": 54197,
"startIndex": 54196,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54196
},
{
"endIndex": 54226,
"paragraph": {
"elements": [
{
"endIndex": 54226,
"startIndex": 54197,
"textRun": {
"content": " GooglePlayPurchaseHandler(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54197
},
{
"endIndex": 54253,
"paragraph": {
"elements": [
{
"endIndex": 54253,
"startIndex": 54226,
"textRun": {
"content": " this.androidPublisher,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54226
},
{
"endIndex": 54277,
"paragraph": {
"elements": [
{
"endIndex": 54277,
"startIndex": 54253,
"textRun": {
"content": " this.iapRepository,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54253
},
{
"endIndex": 54282,
"paragraph": {
"elements": [
{
"endIndex": 54282,
"startIndex": 54277,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54277
},
{
"endIndex": 54283,
"paragraph": {
"elements": [
{
"endIndex": 54283,
"startIndex": 54282,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54282
},
{
"endIndex": 54295,
"paragraph": {
"elements": [
{
"endIndex": 54295,
"startIndex": 54283,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54283
},
{
"endIndex": 54334,
"paragraph": {
"elements": [
{
"endIndex": 54334,
"startIndex": 54295,
"textRun": {
"content": " Future<bool> handleNonSubscription({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54295
},
{
"endIndex": 54363,
"paragraph": {
"elements": [
{
"endIndex": 54363,
"startIndex": 54334,
"textRun": {
"content": " required String? userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54334
},
{
"endIndex": 54401,
"paragraph": {
"elements": [
{
"endIndex": 54401,
"startIndex": 54363,
"textRun": {
"content": " required ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54363
},
{
"endIndex": 54428,
"paragraph": {
"elements": [
{
"endIndex": 54428,
"startIndex": 54401,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54401
},
{
"endIndex": 54441,
"paragraph": {
"elements": [
{
"endIndex": 54441,
"startIndex": 54428,
"textRun": {
"content": " }) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54428
},
{
"endIndex": 54458,
"paragraph": {
"elements": [
{
"endIndex": 54458,
"startIndex": 54441,
"textRun": {
"content": " return true;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54441
},
{
"endIndex": 54462,
"paragraph": {
"elements": [
{
"endIndex": 54462,
"startIndex": 54458,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54458
},
{
"endIndex": 54463,
"paragraph": {
"elements": [
{
"endIndex": 54463,
"startIndex": 54462,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54462
},
{
"endIndex": 54475,
"paragraph": {
"elements": [
{
"endIndex": 54475,
"startIndex": 54463,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54463
},
{
"endIndex": 54511,
"paragraph": {
"elements": [
{
"endIndex": 54511,
"startIndex": 54475,
"textRun": {
"content": " Future<bool> handleSubscription({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54475
},
{
"endIndex": 54540,
"paragraph": {
"elements": [
{
"endIndex": 54540,
"startIndex": 54511,
"textRun": {
"content": " required String? userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54511
},
{
"endIndex": 54578,
"paragraph": {
"elements": [
{
"endIndex": 54578,
"startIndex": 54540,
"textRun": {
"content": " required ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54540
},
{
"endIndex": 54605,
"paragraph": {
"elements": [
{
"endIndex": 54605,
"startIndex": 54578,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54578
},
{
"endIndex": 54618,
"paragraph": {
"elements": [
{
"endIndex": 54618,
"startIndex": 54605,
"textRun": {
"content": " }) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54605
},
{
"endIndex": 54635,
"paragraph": {
"elements": [
{
"endIndex": 54635,
"startIndex": 54618,
"textRun": {
"content": " return true;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54618
},
{
"endIndex": 54639,
"paragraph": {
"elements": [
{
"endIndex": 54639,
"startIndex": 54635,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54635
},
{
"endIndex": 54641,
"paragraph": {
"elements": [
{
"endIndex": 54641,
"startIndex": 54639,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54639
},
{
"endIndex": 54642,
"paragraph": {
"elements": [
{
"endIndex": 54642,
"startIndex": 54641,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 54641
}
],
"endIndex": 54642,
"startIndex": 53856,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 54644,
"paragraph": {
"elements": [
{
"endIndex": 54644,
"startIndex": 54643,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 54643
},
{
"endIndex": 54720,
"paragraph": {
"elements": [
{
"endIndex": 54664,
"startIndex": 54644,
"textRun": {
"content": "For now, it returns ",
"textStyle": {}
}
},
{
"endIndex": 54668,
"startIndex": 54664,
"textRun": {
"content": "true",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 54720,
"startIndex": 54668,
"textRun": {
"content": " for the handler methods; youβll get to them later.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 54644
},
{
"endIndex": 54721,
"paragraph": {
"elements": [
{
"endIndex": 54721,
"startIndex": 54720,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 54720
},
{
"endIndex": 54979,
"paragraph": {
"elements": [
{
"endIndex": 54789,
"startIndex": 54721,
"textRun": {
"content": "As you might have noticed, the constructor takes an instance of the ",
"textStyle": {}
}
},
{
"endIndex": 54802,
"startIndex": 54789,
"textRun": {
"content": "IapRepository",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 54958,
"startIndex": 54802,
"textRun": {
"content": ". The purchase handler uses this instance to store information about purchases in Firestore later on. To communicate with Google Play, you use the provided ",
"textStyle": {}
}
},
{
"endIndex": 54977,
"startIndex": 54958,
"textRun": {
"content": "AndroidPublisherApi",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 54979,
"startIndex": 54977,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 54721
},
{
"endIndex": 54980,
"paragraph": {
"elements": [
{
"endIndex": 54980,
"startIndex": 54979,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 54979
},
{
"endIndex": 55125,
"paragraph": {
"elements": [
{
"endIndex": 55032,
"startIndex": 54980,
"textRun": {
"content": "Next, do the same for the app store handler. Create ",
"textStyle": {}
}
},
{
"endIndex": 55067,
"startIndex": 55032,
"textRun": {
"content": "lib/app_store_purchase_handler.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 55068,
"startIndex": 55067,
"textRun": {
"content": ",",
"textStyle": {}
}
},
{
"endIndex": 55102,
"startIndex": 55068,
"textRun": {
"content": " and add a class that extends the ",
"textStyle": {}
}
},
{
"endIndex": 55117,
"startIndex": 55102,
"textRun": {
"content": "PurchaseHandler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 55125,
"startIndex": 55117,
"textRun": {
"content": " again:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 54980
},
{
"endIndex": 55161,
"paragraph": {
"elements": [
{
"endIndex": 55160,
"startIndex": 55125,
"textRun": {
"content": "lib/app_store_purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/app_store_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 55161,
"startIndex": 55160,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.c6clao1n9asp",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 55125
},
{
"endIndex": 55860,
"startIndex": 55161,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 55859,
"startIndex": 55162,
"tableCells": [
{
"content": [
{
"endIndex": 55185,
"paragraph": {
"elements": [
{
"endIndex": 55185,
"startIndex": 55164,
"textRun": {
"content": "import 'dart:async';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55164
},
{
"endIndex": 55186,
"paragraph": {
"elements": [
{
"endIndex": 55186,
"startIndex": 55185,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55185
},
{
"endIndex": 55251,
"paragraph": {
"elements": [
{
"endIndex": 55251,
"startIndex": 55186,
"textRun": {
"content": "import 'package:app_store_server_sdk/app_store_server_sdk.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55186
},
{
"endIndex": 55252,
"paragraph": {
"elements": [
{
"endIndex": 55252,
"startIndex": 55251,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55251
},
{
"endIndex": 55277,
"paragraph": {
"elements": [
{
"endIndex": 55277,
"startIndex": 55252,
"textRun": {
"content": "import 'constants.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55252
},
{
"endIndex": 55307,
"paragraph": {
"elements": [
{
"endIndex": 55307,
"startIndex": 55277,
"textRun": {
"content": "import 'iap_repository.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55277
},
{
"endIndex": 55331,
"paragraph": {
"elements": [
{
"endIndex": 55331,
"startIndex": 55307,
"textRun": {
"content": "import 'products.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55307
},
{
"endIndex": 55363,
"paragraph": {
"elements": [
{
"endIndex": 55363,
"startIndex": 55331,
"textRun": {
"content": "import 'purchase_handler.dart';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55331
},
{
"endIndex": 55364,
"paragraph": {
"elements": [
{
"endIndex": 55364,
"startIndex": 55363,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55363
},
{
"endIndex": 55420,
"paragraph": {
"elements": [
{
"endIndex": 55420,
"startIndex": 55364,
"textRun": {
"content": "class AppStorePurchaseHandler extends PurchaseHandler {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55364
},
{
"endIndex": 55457,
"paragraph": {
"elements": [
{
"endIndex": 55457,
"startIndex": 55420,
"textRun": {
"content": " final IapRepository iapRepository;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55420
},
{
"endIndex": 55458,
"paragraph": {
"elements": [
{
"endIndex": 55458,
"startIndex": 55457,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55457
},
{
"endIndex": 55485,
"paragraph": {
"elements": [
{
"endIndex": 55485,
"startIndex": 55458,
"textRun": {
"content": " AppStorePurchaseHandler(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55458
},
{
"endIndex": 55509,
"paragraph": {
"elements": [
{
"endIndex": 55509,
"startIndex": 55485,
"textRun": {
"content": " this.iapRepository,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55485
},
{
"endIndex": 55514,
"paragraph": {
"elements": [
{
"endIndex": 55514,
"startIndex": 55509,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55509
},
{
"endIndex": 55515,
"paragraph": {
"elements": [
{
"endIndex": 55515,
"startIndex": 55514,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55514
},
{
"endIndex": 55527,
"paragraph": {
"elements": [
{
"endIndex": 55527,
"startIndex": 55515,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55515
},
{
"endIndex": 55566,
"paragraph": {
"elements": [
{
"endIndex": 55566,
"startIndex": 55527,
"textRun": {
"content": " Future<bool> handleNonSubscription({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55527
},
{
"endIndex": 55594,
"paragraph": {
"elements": [
{
"endIndex": 55594,
"startIndex": 55566,
"textRun": {
"content": " required String userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55566
},
{
"endIndex": 55632,
"paragraph": {
"elements": [
{
"endIndex": 55632,
"startIndex": 55594,
"textRun": {
"content": " required ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55594
},
{
"endIndex": 55659,
"paragraph": {
"elements": [
{
"endIndex": 55659,
"startIndex": 55632,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55632
},
{
"endIndex": 55666,
"paragraph": {
"elements": [
{
"endIndex": 55666,
"startIndex": 55659,
"textRun": {
"content": " }) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55659
},
{
"endIndex": 55683,
"paragraph": {
"elements": [
{
"endIndex": 55683,
"startIndex": 55666,
"textRun": {
"content": " return true;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55666
},
{
"endIndex": 55687,
"paragraph": {
"elements": [
{
"endIndex": 55687,
"startIndex": 55683,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55683
},
{
"endIndex": 55688,
"paragraph": {
"elements": [
{
"endIndex": 55688,
"startIndex": 55687,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55687
},
{
"endIndex": 55700,
"paragraph": {
"elements": [
{
"endIndex": 55700,
"startIndex": 55688,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55688
},
{
"endIndex": 55736,
"paragraph": {
"elements": [
{
"endIndex": 55736,
"startIndex": 55700,
"textRun": {
"content": " Future<bool> handleSubscription({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55700
},
{
"endIndex": 55764,
"paragraph": {
"elements": [
{
"endIndex": 55764,
"startIndex": 55736,
"textRun": {
"content": " required String userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55736
},
{
"endIndex": 55802,
"paragraph": {
"elements": [
{
"endIndex": 55802,
"startIndex": 55764,
"textRun": {
"content": " required ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55764
},
{
"endIndex": 55829,
"paragraph": {
"elements": [
{
"endIndex": 55829,
"startIndex": 55802,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55802
},
{
"endIndex": 55836,
"paragraph": {
"elements": [
{
"endIndex": 55836,
"startIndex": 55829,
"textRun": {
"content": " }) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55829
},
{
"endIndex": 55853,
"paragraph": {
"elements": [
{
"endIndex": 55853,
"startIndex": 55836,
"textRun": {
"content": " return true;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55836
},
{
"endIndex": 55857,
"paragraph": {
"elements": [
{
"endIndex": 55857,
"startIndex": 55853,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55853
},
{
"endIndex": 55859,
"paragraph": {
"elements": [
{
"endIndex": 55859,
"startIndex": 55857,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 55857
}
],
"endIndex": 55859,
"startIndex": 55163,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 55861,
"paragraph": {
"elements": [
{
"endIndex": 55861,
"startIndex": 55860,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 55860
},
{
"endIndex": 55963,
"paragraph": {
"elements": [
{
"endIndex": 55963,
"startIndex": 55861,
"textRun": {
"content": "Great! Now you have two purchase handlers. Next, letβs create the purchase verification API endpoint.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 55861
},
{
"endIndex": 55964,
"paragraph": {
"elements": [
{
"endIndex": 55964,
"startIndex": 55963,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 55963
},
{
"endIndex": 55986,
"paragraph": {
"elements": [
{
"endIndex": 55986,
"startIndex": 55964,
"textRun": {
"content": "Use purchase handlers\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.xz19ykk8ox68",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 55964
},
{
"endIndex": 55987,
"paragraph": {
"elements": [
{
"endIndex": 55987,
"startIndex": 55986,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 55986
},
{
"endIndex": 56054,
"paragraph": {
"elements": [
{
"endIndex": 55992,
"startIndex": 55987,
"textRun": {
"content": "Open ",
"textStyle": {}
}
},
{
"endIndex": 56007,
"startIndex": 55992,
"textRun": {
"content": "bin/server.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 56041,
"startIndex": 56007,
"textRun": {
"content": " and create an API endpoint using ",
"textStyle": {}
}
},
{
"endIndex": 56052,
"startIndex": 56041,
"textRun": {
"content": "shelf_route",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 56054,
"startIndex": 56052,
"textRun": {
"content": ":\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 55987
},
{
"endIndex": 56070,
"paragraph": {
"elements": [
{
"endIndex": 56069,
"startIndex": 56054,
"textRun": {
"content": "bin/server.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/bin/server.dart"
},
"underline": true
}
}
},
{
"endIndex": 56070,
"startIndex": 56069,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.msbj0axd2zkw",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 56054
},
{
"endIndex": 57215,
"startIndex": 56070,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 57214,
"startIndex": 56071,
"tableCells": [
{
"content": [
{
"endIndex": 56101,
"paragraph": {
"elements": [
{
"endIndex": 56101,
"startIndex": 56073,
"textRun": {
"content": "Future<void> main() async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56073
},
{
"endIndex": 56128,
"paragraph": {
"elements": [
{
"endIndex": 56128,
"startIndex": 56101,
"textRun": {
"content": " final router = Router();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56101
},
{
"endIndex": 56129,
"paragraph": {
"elements": [
{
"endIndex": 56129,
"startIndex": 56128,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56128
},
{
"endIndex": 56189,
"paragraph": {
"elements": [
{
"endIndex": 56189,
"startIndex": 56129,
"textRun": {
"content": " final purchaseHandlers = await _createPurchaseHandlers();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56129
},
{
"endIndex": 56190,
"paragraph": {
"elements": [
{
"endIndex": 56190,
"startIndex": 56189,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56189
},
{
"endIndex": 56249,
"paragraph": {
"elements": [
{
"endIndex": 56249,
"startIndex": 56190,
"textRun": {
"content": " router.post('/verifypurchase', (Request request) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56190
},
{
"endIndex": 56320,
"paragraph": {
"elements": [
{
"endIndex": 56320,
"startIndex": 56249,
"textRun": {
"content": " final dynamic payload = json.decode(await request.readAsString());\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56249
},
{
"endIndex": 56321,
"paragraph": {
"elements": [
{
"endIndex": 56321,
"startIndex": 56320,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56320
},
{
"endIndex": 56400,
"paragraph": {
"elements": [
{
"endIndex": 56400,
"startIndex": 56321,
"textRun": {
"content": " final (:userId, :source, :productData, :token) = getPurchaseData(payload);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56321
},
{
"endIndex": 56401,
"paragraph": {
"elements": [
{
"endIndex": 56401,
"startIndex": 56400,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56400
},
{
"endIndex": 56468,
"paragraph": {
"elements": [
{
"endIndex": 56468,
"startIndex": 56401,
"textRun": {
"content": " final result = await purchaseHandlers[source]!.verifyPurchase(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56401
},
{
"endIndex": 56490,
"paragraph": {
"elements": [
{
"endIndex": 56490,
"startIndex": 56468,
"textRun": {
"content": " userId: userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56468
},
{
"endIndex": 56522,
"paragraph": {
"elements": [
{
"endIndex": 56522,
"startIndex": 56490,
"textRun": {
"content": " productData: productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56490
},
{
"endIndex": 56542,
"paragraph": {
"elements": [
{
"endIndex": 56542,
"startIndex": 56522,
"textRun": {
"content": " token: token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56522
},
{
"endIndex": 56549,
"paragraph": {
"elements": [
{
"endIndex": 56549,
"startIndex": 56542,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56542
},
{
"endIndex": 56550,
"paragraph": {
"elements": [
{
"endIndex": 56550,
"startIndex": 56549,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56549
},
{
"endIndex": 56568,
"paragraph": {
"elements": [
{
"endIndex": 56568,
"startIndex": 56550,
"textRun": {
"content": " if (result) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56550
},
{
"endIndex": 56607,
"paragraph": {
"elements": [
{
"endIndex": 56607,
"startIndex": 56568,
"textRun": {
"content": " return Response.ok('all good!');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56568
},
{
"endIndex": 56620,
"paragraph": {
"elements": [
{
"endIndex": 56620,
"startIndex": 56607,
"textRun": {
"content": " } else {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56607
},
{
"endIndex": 56665,
"paragraph": {
"elements": [
{
"endIndex": 56665,
"startIndex": 56620,
"textRun": {
"content": " return Response.internalServerError();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56620
},
{
"endIndex": 56671,
"paragraph": {
"elements": [
{
"endIndex": 56671,
"startIndex": 56665,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56665
},
{
"endIndex": 56677,
"paragraph": {
"elements": [
{
"endIndex": 56677,
"startIndex": 56671,
"textRun": {
"content": " });\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56671
},
{
"endIndex": 56678,
"paragraph": {
"elements": [
{
"endIndex": 56678,
"startIndex": 56677,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56677
},
{
"endIndex": 56708,
"paragraph": {
"elements": [
{
"endIndex": 56708,
"startIndex": 56678,
"textRun": {
"content": " await serveHandler(router);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56678
},
{
"endIndex": 56710,
"paragraph": {
"elements": [
{
"endIndex": 56710,
"startIndex": 56708,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56708
},
{
"endIndex": 56711,
"paragraph": {
"elements": [
{
"endIndex": 56711,
"startIndex": 56710,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56710
},
{
"endIndex": 56714,
"paragraph": {
"elements": [
{
"endIndex": 56714,
"startIndex": 56711,
"textRun": {
"content": "({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56711
},
{
"endIndex": 56731,
"paragraph": {
"elements": [
{
"endIndex": 56731,
"startIndex": 56714,
"textRun": {
"content": " String userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56714
},
{
"endIndex": 56748,
"paragraph": {
"elements": [
{
"endIndex": 56748,
"startIndex": 56731,
"textRun": {
"content": " String source,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56731
},
{
"endIndex": 56775,
"paragraph": {
"elements": [
{
"endIndex": 56775,
"startIndex": 56748,
"textRun": {
"content": " ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56748
},
{
"endIndex": 56791,
"paragraph": {
"elements": [
{
"endIndex": 56791,
"startIndex": 56775,
"textRun": {
"content": " String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56775
},
{
"endIndex": 56829,
"paragraph": {
"elements": [
{
"endIndex": 56829,
"startIndex": 56791,
"textRun": {
"content": "}) getPurchaseData(dynamic payload) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56791
},
{
"endIndex": 56843,
"paragraph": {
"elements": [
{
"endIndex": 56843,
"startIndex": 56829,
"textRun": {
"content": " if (payload\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56829
},
{
"endIndex": 56856,
"paragraph": {
"elements": [
{
"endIndex": 56856,
"startIndex": 56843,
"textRun": {
"content": " case {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56843
},
{
"endIndex": 56889,
"paragraph": {
"elements": [
{
"endIndex": 56889,
"startIndex": 56856,
"textRun": {
"content": " 'userId': String userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56856
},
{
"endIndex": 56922,
"paragraph": {
"elements": [
{
"endIndex": 56922,
"startIndex": 56889,
"textRun": {
"content": " 'source': String source,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56889
},
{
"endIndex": 56961,
"paragraph": {
"elements": [
{
"endIndex": 56961,
"startIndex": 56922,
"textRun": {
"content": " 'productId': String productId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56922
},
{
"endIndex": 57003,
"paragraph": {
"elements": [
{
"endIndex": 57003,
"startIndex": 56961,
"textRun": {
"content": " 'verificationData': String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 56961
},
{
"endIndex": 57014,
"paragraph": {
"elements": [
{
"endIndex": 57014,
"startIndex": 57003,
"textRun": {
"content": " }) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57003
},
{
"endIndex": 57027,
"paragraph": {
"elements": [
{
"endIndex": 57027,
"startIndex": 57014,
"textRun": {
"content": " return (\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57014
},
{
"endIndex": 57049,
"paragraph": {
"elements": [
{
"endIndex": 57049,
"startIndex": 57027,
"textRun": {
"content": " userId: userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57027
},
{
"endIndex": 57071,
"paragraph": {
"elements": [
{
"endIndex": 57071,
"startIndex": 57049,
"textRun": {
"content": " source: source,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57049
},
{
"endIndex": 57118,
"paragraph": {
"elements": [
{
"endIndex": 57118,
"startIndex": 57071,
"textRun": {
"content": " productData: productDataMap[productId]!,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57071
},
{
"endIndex": 57138,
"paragraph": {
"elements": [
{
"endIndex": 57138,
"startIndex": 57118,
"textRun": {
"content": " token: token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57118
},
{
"endIndex": 57145,
"paragraph": {
"elements": [
{
"endIndex": 57145,
"startIndex": 57138,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57138
},
{
"endIndex": 57156,
"paragraph": {
"elements": [
{
"endIndex": 57156,
"startIndex": 57145,
"textRun": {
"content": " } else {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57145
},
{
"endIndex": 57208,
"paragraph": {
"elements": [
{
"endIndex": 57208,
"startIndex": 57156,
"textRun": {
"content": " throw const FormatException('Unexpected JSON');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57156
},
{
"endIndex": 57212,
"paragraph": {
"elements": [
{
"endIndex": 57212,
"startIndex": 57208,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57208
},
{
"endIndex": 57214,
"paragraph": {
"elements": [
{
"endIndex": 57214,
"startIndex": 57212,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57212
}
],
"endIndex": 57214,
"startIndex": 56072,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 57255,
"paragraph": {
"elements": [
{
"endIndex": 57255,
"startIndex": 57215,
"textRun": {
"content": "\u000bThe above code is doing the following:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 57215
},
{
"endIndex": 57256,
"paragraph": {
"elements": [
{
"endIndex": 57256,
"startIndex": 57255,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 57255
},
{
"endIndex": 57336,
"paragraph": {
"bullet": {
"listId": "kix.9n48gbutqkqj",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 57336,
"startIndex": 57256,
"textRun": {
"content": "Define a POST endpoint that will be called from the app you created previously.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57256
},
{
"endIndex": 57399,
"paragraph": {
"bullet": {
"listId": "kix.9n48gbutqkqj",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 57399,
"startIndex": 57336,
"textRun": {
"content": "Decode the JSON payload and extract the following information:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57336
},
{
"endIndex": 57435,
"paragraph": {
"bullet": {
"listId": "kix.9n48gbutqkqj",
"nestingLevel": 1,
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 57405,
"startIndex": 57399,
"textRun": {
"content": "userId",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57435,
"startIndex": 57405,
"textRun": {
"content": ": Currently logged in user ID\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57399
},
{
"endIndex": 57488,
"paragraph": {
"bullet": {
"listId": "kix.9n48gbutqkqj",
"nestingLevel": 1,
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 57441,
"startIndex": 57435,
"textRun": {
"content": "source",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57462,
"startIndex": 57441,
"textRun": {
"content": ": Store used, either ",
"textStyle": {}
}
},
{
"endIndex": 57471,
"startIndex": 57462,
"textRun": {
"content": "app_store",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57475,
"startIndex": 57471,
"textRun": {
"content": " or ",
"textStyle": {}
}
},
{
"endIndex": 57486,
"startIndex": 57475,
"textRun": {
"content": "google_play",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57488,
"startIndex": 57486,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57435
},
{
"endIndex": 57558,
"paragraph": {
"bullet": {
"listId": "kix.9n48gbutqkqj",
"nestingLevel": 1,
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 57499,
"startIndex": 57488,
"textRun": {
"content": "productData",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57519,
"startIndex": 57499,
"textRun": {
"content": ": Obtained from the ",
"textStyle": {}
}
},
{
"endIndex": 57533,
"startIndex": 57519,
"textRun": {
"content": "productDataMap",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57558,
"startIndex": 57533,
"textRun": {
"content": " you created previously.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57488
},
{
"endIndex": 57619,
"paragraph": {
"bullet": {
"listId": "kix.9n48gbutqkqj",
"nestingLevel": 1,
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 57563,
"startIndex": 57558,
"textRun": {
"content": "token",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57619,
"startIndex": 57563,
"textRun": {
"content": ": Contains the verification data to send to the stores.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57558
},
{
"endIndex": 57752,
"paragraph": {
"bullet": {
"listId": "kix.9n48gbutqkqj",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 57631,
"startIndex": 57619,
"textRun": {
"content": "Call to the ",
"textStyle": {}
}
},
{
"endIndex": 57645,
"startIndex": 57631,
"textRun": {
"content": "verifyPurchase",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57669,
"startIndex": 57645,
"textRun": {
"content": " method, either for the ",
"textStyle": {}
}
},
{
"endIndex": 57694,
"startIndex": 57669,
"textRun": {
"content": "GooglePlayPurchaseHandler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57702,
"startIndex": 57694,
"textRun": {
"content": " or the ",
"textStyle": {}
}
},
{
"endIndex": 57725,
"startIndex": 57702,
"textRun": {
"content": "AppStorePurchaseHandler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57752,
"startIndex": 57725,
"textRun": {
"content": ", depending on the source.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57619
},
{
"endIndex": 57836,
"paragraph": {
"bullet": {
"listId": "kix.9n48gbutqkqj",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 57809,
"startIndex": 57752,
"textRun": {
"content": "If the verification was successful, the method returns a ",
"textStyle": {}
}
},
{
"endIndex": 57820,
"startIndex": 57809,
"textRun": {
"content": "Response.ok",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57836,
"startIndex": 57820,
"textRun": {
"content": " to the client.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57752
},
{
"endIndex": 57928,
"paragraph": {
"bullet": {
"listId": "kix.9n48gbutqkqj",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 57884,
"startIndex": 57836,
"textRun": {
"content": "If the verification fails, the method returns a ",
"textStyle": {}
}
},
{
"endIndex": 57912,
"startIndex": 57884,
"textRun": {
"content": "Response.internalServerError",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 57928,
"startIndex": 57912,
"textRun": {
"content": " to the client.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57836
},
{
"endIndex": 57929,
"paragraph": {
"elements": [
{
"endIndex": 57929,
"startIndex": 57928,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 57928
},
{
"endIndex": 58347,
"startIndex": 57929,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 58346,
"startIndex": 57930,
"tableCells": [
{
"content": [
{
"endIndex": 58346,
"paragraph": {
"elements": [
{
"endIndex": 57937,
"startIndex": 57932,
"textRun": {
"content": "Note:",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 58346,
"startIndex": 57937,
"textRun": {
"content": " The verifypurchase endpoint you just created does not offer any kind of authentication mechanism, meaning that anyone with access to your server could communicate to it. This is not a problem in the context of this codelab, as your server will run locally in your home network, but when thinking about deploying this or a similar solution, you should implement some sort of user authentication for security.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 57932
}
],
"endIndex": 58346,
"startIndex": 57931,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.8039216,
"green": 0.8980392,
"red": 0.9882353
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 58348,
"paragraph": {
"elements": [
{
"endIndex": 58348,
"startIndex": 58347,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 58347
},
{
"endIndex": 58707,
"paragraph": {
"elements": [
{
"endIndex": 58707,
"startIndex": 58348,
"textRun": {
"content": "After creating the API endpoint, you need to configure the two purchase handlers. This requires you to load the service account keys you obtained in the previous step and configure the access to the different services, including the Android Publisher API and the Firebase Firestore API. Then, create the two purchase handlers with the different dependencies:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 58348
},
{
"endIndex": 58723,
"paragraph": {
"elements": [
{
"endIndex": 58722,
"startIndex": 58707,
"textRun": {
"content": "bin/server.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/bin/server.dart"
},
"underline": true
}
}
},
{
"endIndex": 58723,
"startIndex": 58722,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.uspc23ixrdx5",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 58707
},
{
"endIndex": 60091,
"startIndex": 58723,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 60090,
"startIndex": 58724,
"tableCells": [
{
"content": [
{
"endIndex": 58797,
"paragraph": {
"elements": [
{
"endIndex": 58797,
"startIndex": 58726,
"textRun": {
"content": "Future<Map<String, PurchaseHandler>> _createPurchaseHandlers() async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 58726
},
{
"endIndex": 58841,
"paragraph": {
"elements": [
{
"endIndex": 58841,
"startIndex": 58797,
"textRun": {
"content": " // Configure Android Publisher API access\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 58797
},
{
"endIndex": 58876,
"paragraph": {
"elements": [
{
"endIndex": 58876,
"startIndex": 58841,
"textRun": {
"content": " final serviceAccountGooglePlay =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 58841
},
{
"endIndex": 58950,
"paragraph": {
"elements": [
{
"endIndex": 58950,
"startIndex": 58876,
"textRun": {
"content": " File('assets/service-account-google-play.json').readAsStringSync();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 58876
},
{
"endIndex": 58988,
"paragraph": {
"elements": [
{
"endIndex": 58988,
"startIndex": 58950,
"textRun": {
"content": " final clientCredentialsGooglePlay =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 58950
},
{
"endIndex": 59061,
"paragraph": {
"elements": [
{
"endIndex": 59061,
"startIndex": 58988,
"textRun": {
"content": " auth.ServiceAccountCredentials.fromJson(serviceAccountGooglePlay);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 58988
},
{
"endIndex": 59088,
"paragraph": {
"elements": [
{
"endIndex": 59088,
"startIndex": 59061,
"textRun": {
"content": " final clientGooglePlay =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59061
},
{
"endIndex": 59160,
"paragraph": {
"elements": [
{
"endIndex": 59160,
"startIndex": 59088,
"textRun": {
"content": " await auth.clientViaServiceAccount(clientCredentialsGooglePlay, [\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59088
},
{
"endIndex": 59210,
"paragraph": {
"elements": [
{
"endIndex": 59210,
"startIndex": 59160,
"textRun": {
"content": " ap.AndroidPublisherApi.androidpublisherScope,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59160
},
{
"endIndex": 59216,
"paragraph": {
"elements": [
{
"endIndex": 59216,
"startIndex": 59210,
"textRun": {
"content": " ]);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59210
},
{
"endIndex": 59285,
"paragraph": {
"elements": [
{
"endIndex": 59285,
"startIndex": 59216,
"textRun": {
"content": " final androidPublisher = ap.AndroidPublisherApi(clientGooglePlay);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59216
},
{
"endIndex": 59286,
"paragraph": {
"elements": [
{
"endIndex": 59286,
"startIndex": 59285,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59285
},
{
"endIndex": 59322,
"paragraph": {
"elements": [
{
"endIndex": 59322,
"startIndex": 59286,
"textRun": {
"content": " // Configure Firestore API access\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59286
},
{
"endIndex": 59355,
"paragraph": {
"elements": [
{
"endIndex": 59355,
"startIndex": 59322,
"textRun": {
"content": " final serviceAccountFirebase =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59322
},
{
"endIndex": 59426,
"paragraph": {
"elements": [
{
"endIndex": 59426,
"startIndex": 59355,
"textRun": {
"content": " File('assets/service-account-firebase.json').readAsStringSync();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59355
},
{
"endIndex": 59462,
"paragraph": {
"elements": [
{
"endIndex": 59462,
"startIndex": 59426,
"textRun": {
"content": " final clientCredentialsFirebase =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59426
},
{
"endIndex": 59533,
"paragraph": {
"elements": [
{
"endIndex": 59533,
"startIndex": 59462,
"textRun": {
"content": " auth.ServiceAccountCredentials.fromJson(serviceAccountFirebase);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59462
},
{
"endIndex": 59558,
"paragraph": {
"elements": [
{
"endIndex": 59558,
"startIndex": 59533,
"textRun": {
"content": " final clientFirebase =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59533
},
{
"endIndex": 59628,
"paragraph": {
"elements": [
{
"endIndex": 59628,
"startIndex": 59558,
"textRun": {
"content": " await auth.clientViaServiceAccount(clientCredentialsFirebase, [\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59558
},
{
"endIndex": 59668,
"paragraph": {
"elements": [
{
"endIndex": 59668,
"startIndex": 59628,
"textRun": {
"content": " fs.FirestoreApi.cloudPlatformScope,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59628
},
{
"endIndex": 59674,
"paragraph": {
"elements": [
{
"endIndex": 59674,
"startIndex": 59668,
"textRun": {
"content": " ]);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59668
},
{
"endIndex": 59730,
"paragraph": {
"elements": [
{
"endIndex": 59730,
"startIndex": 59674,
"textRun": {
"content": " final firestoreApi = fs.FirestoreApi(clientFirebase);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59674
},
{
"endIndex": 59789,
"paragraph": {
"elements": [
{
"endIndex": 59789,
"startIndex": 59730,
"textRun": {
"content": " final dynamic json = jsonDecode(serviceAccountFirebase);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59730
},
{
"endIndex": 59839,
"paragraph": {
"elements": [
{
"endIndex": 59839,
"startIndex": 59789,
"textRun": {
"content": " final projectId = json['project_id'] as String;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59789
},
{
"endIndex": 59903,
"paragraph": {
"elements": [
{
"endIndex": 59903,
"startIndex": 59839,
"textRun": {
"content": " final iapRepository = IapRepository(firestoreApi, projectId);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59839
},
{
"endIndex": 59904,
"paragraph": {
"elements": [
{
"endIndex": 59904,
"startIndex": 59903,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59903
},
{
"endIndex": 59915,
"paragraph": {
"elements": [
{
"endIndex": 59915,
"startIndex": 59904,
"textRun": {
"content": " return {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59904
},
{
"endIndex": 59961,
"paragraph": {
"elements": [
{
"endIndex": 59961,
"startIndex": 59915,
"textRun": {
"content": " 'google_play': GooglePlayPurchaseHandler(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59915
},
{
"endIndex": 59985,
"paragraph": {
"elements": [
{
"endIndex": 59985,
"startIndex": 59961,
"textRun": {
"content": " androidPublisher,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59961
},
{
"endIndex": 60006,
"paragraph": {
"elements": [
{
"endIndex": 60006,
"startIndex": 59985,
"textRun": {
"content": " iapRepository,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 59985
},
{
"endIndex": 60013,
"paragraph": {
"elements": [
{
"endIndex": 60013,
"startIndex": 60006,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60006
},
{
"endIndex": 60055,
"paragraph": {
"elements": [
{
"endIndex": 60055,
"startIndex": 60013,
"textRun": {
"content": " 'app_store': AppStorePurchaseHandler(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60013
},
{
"endIndex": 60076,
"paragraph": {
"elements": [
{
"endIndex": 60076,
"startIndex": 60055,
"textRun": {
"content": " iapRepository,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60055
},
{
"endIndex": 60083,
"paragraph": {
"elements": [
{
"endIndex": 60083,
"startIndex": 60076,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60076
},
{
"endIndex": 60088,
"paragraph": {
"elements": [
{
"endIndex": 60088,
"startIndex": 60083,
"textRun": {
"content": " };\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60083
},
{
"endIndex": 60090,
"paragraph": {
"elements": [
{
"endIndex": 60090,
"startIndex": 60088,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60088
}
],
"endIndex": 60090,
"startIndex": 58725,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 60093,
"paragraph": {
"elements": [
{
"endIndex": 60093,
"startIndex": 60091,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 60091
},
{
"endIndex": 60149,
"paragraph": {
"elements": [
{
"endIndex": 60148,
"startIndex": 60093,
"textRun": {
"content": "Verify Android purchases: Implement the purchase hander",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 12.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.4,
"green": 0.4,
"red": 0.4
}
}
}
}
}
},
{
"endIndex": 60149,
"startIndex": 60148,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 60093
},
{
"endIndex": 60150,
"paragraph": {
"elements": [
{
"endIndex": 60150,
"startIndex": 60149,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 60149
},
{
"endIndex": 60212,
"paragraph": {
"elements": [
{
"endIndex": 60212,
"startIndex": 60150,
"textRun": {
"content": "Next, continue implementing the Google Play purchase handler.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 60150
},
{
"endIndex": 60213,
"paragraph": {
"elements": [
{
"endIndex": 60213,
"startIndex": 60212,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 60212
},
{
"endIndex": 60413,
"paragraph": {
"elements": [
{
"endIndex": 60339,
"startIndex": 60213,
"textRun": {
"content": "Google already provides Dart packages for interacting with the APIs you need to verify purchases. You initialized them in the ",
"textStyle": {}
}
},
{
"endIndex": 60350,
"startIndex": 60339,
"textRun": {
"content": "server.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 60380,
"startIndex": 60350,
"textRun": {
"content": " file and now use them in the ",
"textStyle": {}
}
},
{
"endIndex": 60405,
"startIndex": 60380,
"textRun": {
"content": "GooglePlayPurchaseHandler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 60413,
"startIndex": 60405,
"textRun": {
"content": " class.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 60213
},
{
"endIndex": 60414,
"paragraph": {
"elements": [
{
"endIndex": 60414,
"startIndex": 60413,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 60413
},
{
"endIndex": 60473,
"paragraph": {
"elements": [
{
"endIndex": 60415,
"startIndex": 60414,
"textRun": {
"content": "I",
"textStyle": {}
}
},
{
"endIndex": 60473,
"startIndex": 60415,
"textRun": {
"content": "mplement the handler for non-subscription-type purchases:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 60414
},
{
"endIndex": 60511,
"paragraph": {
"elements": [
{
"endIndex": 60510,
"startIndex": 60473,
"textRun": {
"content": "lib/google_play_purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/google_play_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 60511,
"startIndex": 60510,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.bzcfe5iik6t1",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 60473
},
{
"endIndex": 62391,
"startIndex": 60511,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 62390,
"startIndex": 60512,
"tableCells": [
{
"content": [
{
"endIndex": 60526,
"paragraph": {
"elements": [
{
"endIndex": 60526,
"startIndex": 60514,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60514
},
{
"endIndex": 60565,
"paragraph": {
"elements": [
{
"endIndex": 60565,
"startIndex": 60526,
"textRun": {
"content": " Future<bool> handleNonSubscription({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60526
},
{
"endIndex": 60594,
"paragraph": {
"elements": [
{
"endIndex": 60594,
"startIndex": 60565,
"textRun": {
"content": " required String? userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60565
},
{
"endIndex": 60632,
"paragraph": {
"elements": [
{
"endIndex": 60632,
"startIndex": 60594,
"textRun": {
"content": " required ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60594
},
{
"endIndex": 60659,
"paragraph": {
"elements": [
{
"endIndex": 60659,
"startIndex": 60632,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60632
},
{
"endIndex": 60672,
"paragraph": {
"elements": [
{
"endIndex": 60672,
"startIndex": 60659,
"textRun": {
"content": " }) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60659
},
{
"endIndex": 60683,
"paragraph": {
"elements": [
{
"endIndex": 60683,
"startIndex": 60672,
"textRun": {
"content": " print(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60672
},
{
"endIndex": 60739,
"paragraph": {
"elements": [
{
"endIndex": 60739,
"startIndex": 60683,
"textRun": {
"content": " 'GooglePlayPurchaseHandler.handleNonSubscription'\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60683
},
{
"endIndex": 60813,
"paragraph": {
"elements": [
{
"endIndex": 60813,
"startIndex": 60739,
"textRun": {
"content": " '($userId, ${productData.productId}, ${token.substring(0, 5)}...)',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60739
},
{
"endIndex": 60820,
"paragraph": {
"elements": [
{
"endIndex": 60820,
"startIndex": 60813,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60813
},
{
"endIndex": 60821,
"paragraph": {
"elements": [
{
"endIndex": 60821,
"startIndex": 60820,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60820
},
{
"endIndex": 60831,
"paragraph": {
"elements": [
{
"endIndex": 60831,
"startIndex": 60821,
"textRun": {
"content": " try {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60821
},
{
"endIndex": 60868,
"paragraph": {
"elements": [
{
"endIndex": 60868,
"startIndex": 60831,
"textRun": {
"content": " // Verify purchase with Google\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60831
},
{
"endIndex": 60938,
"paragraph": {
"elements": [
{
"endIndex": 60938,
"startIndex": 60868,
"textRun": {
"content": " final response = await androidPublisher.purchases.products.get(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60868
},
{
"endIndex": 60964,
"paragraph": {
"elements": [
{
"endIndex": 60964,
"startIndex": 60938,
"textRun": {
"content": " androidPackageId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60938
},
{
"endIndex": 60995,
"paragraph": {
"elements": [
{
"endIndex": 60995,
"startIndex": 60964,
"textRun": {
"content": " productData.productId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60964
},
{
"endIndex": 61010,
"paragraph": {
"elements": [
{
"endIndex": 61010,
"startIndex": 60995,
"textRun": {
"content": " token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 60995
},
{
"endIndex": 61019,
"paragraph": {
"elements": [
{
"endIndex": 61019,
"startIndex": 61010,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61010
},
{
"endIndex": 61020,
"paragraph": {
"elements": [
{
"endIndex": 61020,
"startIndex": 61019,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61019
},
{
"endIndex": 61077,
"paragraph": {
"elements": [
{
"endIndex": 61077,
"startIndex": 61020,
"textRun": {
"content": " print('Purchases response: ${response.toJson()}');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61020
},
{
"endIndex": 61078,
"paragraph": {
"elements": [
{
"endIndex": 61078,
"startIndex": 61077,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61077
},
{
"endIndex": 61116,
"paragraph": {
"elements": [
{
"endIndex": 61116,
"startIndex": 61078,
"textRun": {
"content": " // Make sure an order id exists\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61078
},
{
"endIndex": 61154,
"paragraph": {
"elements": [
{
"endIndex": 61154,
"startIndex": 61116,
"textRun": {
"content": " if (response.orderId == null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61116
},
{
"endIndex": 61215,
"paragraph": {
"elements": [
{
"endIndex": 61215,
"startIndex": 61154,
"textRun": {
"content": " print('Could not handle purchase without order id');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61154
},
{
"endIndex": 61237,
"paragraph": {
"elements": [
{
"endIndex": 61237,
"startIndex": 61215,
"textRun": {
"content": " return false;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61215
},
{
"endIndex": 61245,
"paragraph": {
"elements": [
{
"endIndex": 61245,
"startIndex": 61237,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61237
},
{
"endIndex": 61286,
"paragraph": {
"elements": [
{
"endIndex": 61286,
"startIndex": 61245,
"textRun": {
"content": " final orderId = response.orderId!;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61245
},
{
"endIndex": 61287,
"paragraph": {
"elements": [
{
"endIndex": 61287,
"startIndex": 61286,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61286
},
{
"endIndex": 61339,
"paragraph": {
"elements": [
{
"endIndex": 61339,
"startIndex": 61287,
"textRun": {
"content": " final purchaseData = NonSubscriptionPurchase(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61287
},
{
"endIndex": 61398,
"paragraph": {
"elements": [
{
"endIndex": 61398,
"startIndex": 61339,
"textRun": {
"content": " purchaseDate: DateTime.fromMillisecondsSinceEpoch(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61339
},
{
"endIndex": 61455,
"paragraph": {
"elements": [
{
"endIndex": 61455,
"startIndex": 61398,
"textRun": {
"content": " int.parse(response.purchaseTimeMillis ?? '0'),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61398
},
{
"endIndex": 61466,
"paragraph": {
"elements": [
{
"endIndex": 61466,
"startIndex": 61455,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61455
},
{
"endIndex": 61492,
"paragraph": {
"elements": [
{
"endIndex": 61492,
"startIndex": 61466,
"textRun": {
"content": " orderId: orderId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61466
},
{
"endIndex": 61534,
"paragraph": {
"elements": [
{
"endIndex": 61534,
"startIndex": 61492,
"textRun": {
"content": " productId: productData.productId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61492
},
{
"endIndex": 61609,
"paragraph": {
"elements": [
{
"endIndex": 61609,
"startIndex": 61534,
"textRun": {
"content": " status: NonSubscriptionStatus.values[response.purchaseState ?? 0],\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61534
},
{
"endIndex": 61633,
"paragraph": {
"elements": [
{
"endIndex": 61633,
"startIndex": 61609,
"textRun": {
"content": " userId: userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61609
},
{
"endIndex": 61674,
"paragraph": {
"elements": [
{
"endIndex": 61674,
"startIndex": 61633,
"textRun": {
"content": " iapSource: IAPSource.googleplay,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61633
},
{
"endIndex": 61683,
"paragraph": {
"elements": [
{
"endIndex": 61683,
"startIndex": 61674,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61674
},
{
"endIndex": 61684,
"paragraph": {
"elements": [
{
"endIndex": 61684,
"startIndex": 61683,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61683
},
{
"endIndex": 61713,
"paragraph": {
"elements": [
{
"endIndex": 61713,
"startIndex": 61684,
"textRun": {
"content": " // Update the database\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61684
},
{
"endIndex": 61741,
"paragraph": {
"elements": [
{
"endIndex": 61741,
"startIndex": 61713,
"textRun": {
"content": " if (userId != null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61713
},
{
"endIndex": 61775,
"paragraph": {
"elements": [
{
"endIndex": 61775,
"startIndex": 61741,
"textRun": {
"content": " // If we know the userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61741
},
{
"endIndex": 61850,
"paragraph": {
"elements": [
{
"endIndex": 61850,
"startIndex": 61775,
"textRun": {
"content": " // update the existing purchase or create it if it does not exist.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61775
},
{
"endIndex": 61916,
"paragraph": {
"elements": [
{
"endIndex": 61916,
"startIndex": 61850,
"textRun": {
"content": " await iapRepository.createOrUpdatePurchase(purchaseData);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61850
},
{
"endIndex": 61931,
"paragraph": {
"elements": [
{
"endIndex": 61931,
"startIndex": 61916,
"textRun": {
"content": " } else {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61916
},
{
"endIndex": 62003,
"paragraph": {
"elements": [
{
"endIndex": 62003,
"startIndex": 61931,
"textRun": {
"content": " // If we do not know the user id, a previous entry must already\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 61931
},
{
"endIndex": 62052,
"paragraph": {
"elements": [
{
"endIndex": 62052,
"startIndex": 62003,
"textRun": {
"content": " // exist, and thus we'll only update it.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62003
},
{
"endIndex": 62110,
"paragraph": {
"elements": [
{
"endIndex": 62110,
"startIndex": 62052,
"textRun": {
"content": " await iapRepository.updatePurchase(purchaseData);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62052
},
{
"endIndex": 62118,
"paragraph": {
"elements": [
{
"endIndex": 62118,
"startIndex": 62110,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62110
},
{
"endIndex": 62137,
"paragraph": {
"elements": [
{
"endIndex": 62137,
"startIndex": 62118,
"textRun": {
"content": " return true;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62118
},
{
"endIndex": 62185,
"paragraph": {
"elements": [
{
"endIndex": 62185,
"startIndex": 62137,
"textRun": {
"content": " } on ap.DetailedApiRequestError catch (e) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62137
},
{
"endIndex": 62198,
"paragraph": {
"elements": [
{
"endIndex": 62198,
"startIndex": 62185,
"textRun": {
"content": " print(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62185
},
{
"endIndex": 62246,
"paragraph": {
"elements": [
{
"endIndex": 62246,
"startIndex": 62198,
"textRun": {
"content": " 'Error on handle NonSubscription: $e\\n'\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62198
},
{
"endIndex": 62281,
"paragraph": {
"elements": [
{
"endIndex": 62281,
"startIndex": 62246,
"textRun": {
"content": " 'JSON: ${e.jsonResponse}',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62246
},
{
"endIndex": 62290,
"paragraph": {
"elements": [
{
"endIndex": 62290,
"startIndex": 62281,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62281
},
{
"endIndex": 62308,
"paragraph": {
"elements": [
{
"endIndex": 62308,
"startIndex": 62290,
"textRun": {
"content": " } catch (e) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62290
},
{
"endIndex": 62362,
"paragraph": {
"elements": [
{
"endIndex": 62362,
"startIndex": 62308,
"textRun": {
"content": " print('Error on handle NonSubscription: $e\\n');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62308
},
{
"endIndex": 62368,
"paragraph": {
"elements": [
{
"endIndex": 62368,
"startIndex": 62362,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62362
},
{
"endIndex": 62386,
"paragraph": {
"elements": [
{
"endIndex": 62386,
"startIndex": 62368,
"textRun": {
"content": " return false;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62368
},
{
"endIndex": 62390,
"paragraph": {
"elements": [
{
"endIndex": 62390,
"startIndex": 62386,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62386
}
],
"endIndex": 62390,
"startIndex": 60513,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 62392,
"paragraph": {
"elements": [
{
"endIndex": 62392,
"startIndex": 62391,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 62391
},
{
"endIndex": 62459,
"paragraph": {
"elements": [
{
"endIndex": 62459,
"startIndex": 62392,
"textRun": {
"content": "You can update the subscription purchase handler in a similar way:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 62392
},
{
"endIndex": 62497,
"paragraph": {
"elements": [
{
"endIndex": 62496,
"startIndex": 62459,
"textRun": {
"content": "lib/google_play_purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/google_play_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 62497,
"startIndex": 62496,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.help2qie24gr",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 62459
},
{
"endIndex": 64646,
"startIndex": 62497,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 64645,
"startIndex": 62498,
"tableCells": [
{
"content": [
{
"endIndex": 62537,
"paragraph": {
"elements": [
{
"endIndex": 62537,
"startIndex": 62500,
"textRun": {
"content": " /// Handle subscription purchases.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62500
},
{
"endIndex": 62543,
"paragraph": {
"elements": [
{
"endIndex": 62543,
"startIndex": 62537,
"textRun": {
"content": " ///\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62537
},
{
"endIndex": 62608,
"paragraph": {
"elements": [
{
"endIndex": 62608,
"startIndex": 62543,
"textRun": {
"content": " /// Retrieves the purchase status from Google Play and updates\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62543
},
{
"endIndex": 62650,
"paragraph": {
"elements": [
{
"endIndex": 62650,
"startIndex": 62608,
"textRun": {
"content": " /// the Firestore Database accordingly.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62608
},
{
"endIndex": 62662,
"paragraph": {
"elements": [
{
"endIndex": 62662,
"startIndex": 62650,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62650
},
{
"endIndex": 62698,
"paragraph": {
"elements": [
{
"endIndex": 62698,
"startIndex": 62662,
"textRun": {
"content": " Future<bool> handleSubscription({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62662
},
{
"endIndex": 62727,
"paragraph": {
"elements": [
{
"endIndex": 62727,
"startIndex": 62698,
"textRun": {
"content": " required String? userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62698
},
{
"endIndex": 62765,
"paragraph": {
"elements": [
{
"endIndex": 62765,
"startIndex": 62727,
"textRun": {
"content": " required ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62727
},
{
"endIndex": 62792,
"paragraph": {
"elements": [
{
"endIndex": 62792,
"startIndex": 62765,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62765
},
{
"endIndex": 62805,
"paragraph": {
"elements": [
{
"endIndex": 62805,
"startIndex": 62792,
"textRun": {
"content": " }) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62792
},
{
"endIndex": 62816,
"paragraph": {
"elements": [
{
"endIndex": 62816,
"startIndex": 62805,
"textRun": {
"content": " print(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62805
},
{
"endIndex": 62869,
"paragraph": {
"elements": [
{
"endIndex": 62869,
"startIndex": 62816,
"textRun": {
"content": " 'GooglePlayPurchaseHandler.handleSubscription'\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62816
},
{
"endIndex": 62943,
"paragraph": {
"elements": [
{
"endIndex": 62943,
"startIndex": 62869,
"textRun": {
"content": " '($userId, ${productData.productId}, ${token.substring(0, 5)}...)',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62869
},
{
"endIndex": 62950,
"paragraph": {
"elements": [
{
"endIndex": 62950,
"startIndex": 62943,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62943
},
{
"endIndex": 62951,
"paragraph": {
"elements": [
{
"endIndex": 62951,
"startIndex": 62950,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62950
},
{
"endIndex": 62961,
"paragraph": {
"elements": [
{
"endIndex": 62961,
"startIndex": 62951,
"textRun": {
"content": " try {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62951
},
{
"endIndex": 62998,
"paragraph": {
"elements": [
{
"endIndex": 62998,
"startIndex": 62961,
"textRun": {
"content": " // Verify purchase with Google\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62961
},
{
"endIndex": 63073,
"paragraph": {
"elements": [
{
"endIndex": 63073,
"startIndex": 62998,
"textRun": {
"content": " final response = await androidPublisher.purchases.subscriptions.get(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 62998
},
{
"endIndex": 63099,
"paragraph": {
"elements": [
{
"endIndex": 63099,
"startIndex": 63073,
"textRun": {
"content": " androidPackageId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63073
},
{
"endIndex": 63130,
"paragraph": {
"elements": [
{
"endIndex": 63130,
"startIndex": 63099,
"textRun": {
"content": " productData.productId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63099
},
{
"endIndex": 63145,
"paragraph": {
"elements": [
{
"endIndex": 63145,
"startIndex": 63130,
"textRun": {
"content": " token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63130
},
{
"endIndex": 63154,
"paragraph": {
"elements": [
{
"endIndex": 63154,
"startIndex": 63145,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63145
},
{
"endIndex": 63155,
"paragraph": {
"elements": [
{
"endIndex": 63155,
"startIndex": 63154,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63154
},
{
"endIndex": 63215,
"paragraph": {
"elements": [
{
"endIndex": 63215,
"startIndex": 63155,
"textRun": {
"content": " print('Subscription response: ${response.toJson()}');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63155
},
{
"endIndex": 63216,
"paragraph": {
"elements": [
{
"endIndex": 63216,
"startIndex": 63215,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63215
},
{
"endIndex": 63254,
"paragraph": {
"elements": [
{
"endIndex": 63254,
"startIndex": 63216,
"textRun": {
"content": " // Make sure an order id exists\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63216
},
{
"endIndex": 63292,
"paragraph": {
"elements": [
{
"endIndex": 63292,
"startIndex": 63254,
"textRun": {
"content": " if (response.orderId == null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63254
},
{
"endIndex": 63353,
"paragraph": {
"elements": [
{
"endIndex": 63353,
"startIndex": 63292,
"textRun": {
"content": " print('Could not handle purchase without order id');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63292
},
{
"endIndex": 63375,
"paragraph": {
"elements": [
{
"endIndex": 63375,
"startIndex": 63353,
"textRun": {
"content": " return false;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63353
},
{
"endIndex": 63383,
"paragraph": {
"elements": [
{
"endIndex": 63383,
"startIndex": 63375,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63375
},
{
"endIndex": 63440,
"paragraph": {
"elements": [
{
"endIndex": 63440,
"startIndex": 63383,
"textRun": {
"content": " final orderId = extractOrderId(response.orderId!);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63383
},
{
"endIndex": 63441,
"paragraph": {
"elements": [
{
"endIndex": 63441,
"startIndex": 63440,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63440
},
{
"endIndex": 63490,
"paragraph": {
"elements": [
{
"endIndex": 63490,
"startIndex": 63441,
"textRun": {
"content": " final purchaseData = SubscriptionPurchase(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63441
},
{
"endIndex": 63549,
"paragraph": {
"elements": [
{
"endIndex": 63549,
"startIndex": 63490,
"textRun": {
"content": " purchaseDate: DateTime.fromMillisecondsSinceEpoch(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63490
},
{
"endIndex": 63603,
"paragraph": {
"elements": [
{
"endIndex": 63603,
"startIndex": 63549,
"textRun": {
"content": " int.parse(response.startTimeMillis ?? '0'),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63549
},
{
"endIndex": 63614,
"paragraph": {
"elements": [
{
"endIndex": 63614,
"startIndex": 63603,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63603
},
{
"endIndex": 63640,
"paragraph": {
"elements": [
{
"endIndex": 63640,
"startIndex": 63614,
"textRun": {
"content": " orderId: orderId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63614
},
{
"endIndex": 63682,
"paragraph": {
"elements": [
{
"endIndex": 63682,
"startIndex": 63640,
"textRun": {
"content": " productId: productData.productId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63640
},
{
"endIndex": 63745,
"paragraph": {
"elements": [
{
"endIndex": 63745,
"startIndex": 63682,
"textRun": {
"content": " status: subscriptionStatusFrom(response.paymentState),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63682
},
{
"endIndex": 63769,
"paragraph": {
"elements": [
{
"endIndex": 63769,
"startIndex": 63745,
"textRun": {
"content": " userId: userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63745
},
{
"endIndex": 63810,
"paragraph": {
"elements": [
{
"endIndex": 63810,
"startIndex": 63769,
"textRun": {
"content": " iapSource: IAPSource.googleplay,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63769
},
{
"endIndex": 63867,
"paragraph": {
"elements": [
{
"endIndex": 63867,
"startIndex": 63810,
"textRun": {
"content": " expiryDate: DateTime.fromMillisecondsSinceEpoch(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63810
},
{
"endIndex": 63922,
"paragraph": {
"elements": [
{
"endIndex": 63922,
"startIndex": 63867,
"textRun": {
"content": " int.parse(response.expiryTimeMillis ?? '0'),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63867
},
{
"endIndex": 63933,
"paragraph": {
"elements": [
{
"endIndex": 63933,
"startIndex": 63922,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63922
},
{
"endIndex": 63942,
"paragraph": {
"elements": [
{
"endIndex": 63942,
"startIndex": 63933,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63933
},
{
"endIndex": 63943,
"paragraph": {
"elements": [
{
"endIndex": 63943,
"startIndex": 63942,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63942
},
{
"endIndex": 63972,
"paragraph": {
"elements": [
{
"endIndex": 63972,
"startIndex": 63943,
"textRun": {
"content": " // Update the database\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63943
},
{
"endIndex": 64000,
"paragraph": {
"elements": [
{
"endIndex": 64000,
"startIndex": 63972,
"textRun": {
"content": " if (userId != null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 63972
},
{
"endIndex": 64034,
"paragraph": {
"elements": [
{
"endIndex": 64034,
"startIndex": 64000,
"textRun": {
"content": " // If we know the userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64000
},
{
"endIndex": 64109,
"paragraph": {
"elements": [
{
"endIndex": 64109,
"startIndex": 64034,
"textRun": {
"content": " // update the existing purchase or create it if it does not exist.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64034
},
{
"endIndex": 64175,
"paragraph": {
"elements": [
{
"endIndex": 64175,
"startIndex": 64109,
"textRun": {
"content": " await iapRepository.createOrUpdatePurchase(purchaseData);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64109
},
{
"endIndex": 64190,
"paragraph": {
"elements": [
{
"endIndex": 64190,
"startIndex": 64175,
"textRun": {
"content": " } else {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64175
},
{
"endIndex": 64262,
"paragraph": {
"elements": [
{
"endIndex": 64262,
"startIndex": 64190,
"textRun": {
"content": " // If we do not know the user id, a previous entry must already\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64190
},
{
"endIndex": 64311,
"paragraph": {
"elements": [
{
"endIndex": 64311,
"startIndex": 64262,
"textRun": {
"content": " // exist, and thus we'll only update it.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64262
},
{
"endIndex": 64369,
"paragraph": {
"elements": [
{
"endIndex": 64369,
"startIndex": 64311,
"textRun": {
"content": " await iapRepository.updatePurchase(purchaseData);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64311
},
{
"endIndex": 64377,
"paragraph": {
"elements": [
{
"endIndex": 64377,
"startIndex": 64369,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64369
},
{
"endIndex": 64396,
"paragraph": {
"elements": [
{
"endIndex": 64396,
"startIndex": 64377,
"textRun": {
"content": " return true;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64377
},
{
"endIndex": 64444,
"paragraph": {
"elements": [
{
"endIndex": 64444,
"startIndex": 64396,
"textRun": {
"content": " } on ap.DetailedApiRequestError catch (e) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64396
},
{
"endIndex": 64457,
"paragraph": {
"elements": [
{
"endIndex": 64457,
"startIndex": 64444,
"textRun": {
"content": " print(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64444
},
{
"endIndex": 64502,
"paragraph": {
"elements": [
{
"endIndex": 64502,
"startIndex": 64457,
"textRun": {
"content": " 'Error on handle Subscription: $e\\n'\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64457
},
{
"endIndex": 64537,
"paragraph": {
"elements": [
{
"endIndex": 64537,
"startIndex": 64502,
"textRun": {
"content": " 'JSON: ${e.jsonResponse}',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64502
},
{
"endIndex": 64546,
"paragraph": {
"elements": [
{
"endIndex": 64546,
"startIndex": 64537,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64537
},
{
"endIndex": 64564,
"paragraph": {
"elements": [
{
"endIndex": 64564,
"startIndex": 64546,
"textRun": {
"content": " } catch (e) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64546
},
{
"endIndex": 64615,
"paragraph": {
"elements": [
{
"endIndex": 64615,
"startIndex": 64564,
"textRun": {
"content": " print('Error on handle Subscription: $e\\n');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64564
},
{
"endIndex": 64621,
"paragraph": {
"elements": [
{
"endIndex": 64621,
"startIndex": 64615,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64615
},
{
"endIndex": 64639,
"paragraph": {
"elements": [
{
"endIndex": 64639,
"startIndex": 64621,
"textRun": {
"content": " return false;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64621
},
{
"endIndex": 64643,
"paragraph": {
"elements": [
{
"endIndex": 64643,
"startIndex": 64639,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64639
},
{
"endIndex": 64645,
"paragraph": {
"elements": [
{
"endIndex": 64645,
"startIndex": 64643,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64643
}
],
"endIndex": 64645,
"startIndex": 62499,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 64647,
"paragraph": {
"elements": [
{
"endIndex": 64647,
"startIndex": 64646,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 64646
},
{
"endIndex": 64711,
"paragraph": {
"elements": [
{
"endIndex": 64711,
"startIndex": 64647,
"textRun": {
"content": "Add the following method to facilitate the parsing of order IDs\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 64647
},
{
"endIndex": 64749,
"paragraph": {
"elements": [
{
"endIndex": 64748,
"startIndex": 64711,
"textRun": {
"content": "lib/google_play_purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/google_play_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 64749,
"startIndex": 64748,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.sgnrtfnvk634",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 64711
},
{
"endIndex": 64992,
"startIndex": 64749,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 64991,
"startIndex": 64750,
"tableCells": [
{
"content": [
{
"endIndex": 64819,
"paragraph": {
"elements": [
{
"endIndex": 64819,
"startIndex": 64752,
"textRun": {
"content": "/// If a subscription suffix is present (..#) extract the orderId.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64752
},
{
"endIndex": 64859,
"paragraph": {
"elements": [
{
"endIndex": 64859,
"startIndex": 64819,
"textRun": {
"content": "String extractOrderId(String orderId) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64819
},
{
"endIndex": 64903,
"paragraph": {
"elements": [
{
"endIndex": 64903,
"startIndex": 64859,
"textRun": {
"content": " final orderIdSplit = orderId.split('..');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64859
},
{
"endIndex": 64936,
"paragraph": {
"elements": [
{
"endIndex": 64936,
"startIndex": 64903,
"textRun": {
"content": " if (orderIdSplit.isNotEmpty) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64903
},
{
"endIndex": 64967,
"paragraph": {
"elements": [
{
"endIndex": 64967,
"startIndex": 64936,
"textRun": {
"content": " orderId = orderIdSplit[0];\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64936
},
{
"endIndex": 64971,
"paragraph": {
"elements": [
{
"endIndex": 64971,
"startIndex": 64967,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64967
},
{
"endIndex": 64989,
"paragraph": {
"elements": [
{
"endIndex": 64989,
"startIndex": 64971,
"textRun": {
"content": " return orderId;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64971
},
{
"endIndex": 64991,
"paragraph": {
"elements": [
{
"endIndex": 64991,
"startIndex": 64989,
"textRun": {
"content": "}\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 64989
}
],
"endIndex": 64991,
"startIndex": 64751,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 64993,
"paragraph": {
"elements": [
{
"endIndex": 64993,
"startIndex": 64992,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 64992
},
{
"endIndex": 65118,
"paragraph": {
"elements": [
{
"endIndex": 65117,
"startIndex": 64993,
"textRun": {
"content": "Your Google Play purchases should now be verified and stored in the database.\u000b\u000bNext, move on to App Store purchases for iOS.",
"textStyle": {}
}
},
{
"endIndex": 65118,
"startIndex": 65117,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 64993
},
{
"endIndex": 65171,
"paragraph": {
"elements": [
{
"endIndex": 65171,
"startIndex": 65118,
"textRun": {
"content": "Verify iOS purchases: Implement the purchase handler\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.msyta1i4r4lp",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 65118
},
{
"endIndex": 65172,
"paragraph": {
"elements": [
{
"endIndex": 65172,
"startIndex": 65171,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 65171
},
{
"endIndex": 65440,
"paragraph": {
"elements": [
{
"endIndex": 65256,
"startIndex": 65172,
"textRun": {
"content": "For verifying purchases with the App Store, a third-party Dart package exists named ",
"textStyle": {}
}
},
{
"endIndex": 65276,
"startIndex": 65256,
"textRun": {
"content": "app_store_server_sdk",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://pub.dev/packages/app_store_server_sdk"
},
"underline": true,
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 65282,
"startIndex": 65276,
"textRun": {
"content": " that ",
"textStyle": {}
}
},
{
"endIndex": 65332,
"startIndex": 65282,
"textRun": {
"content": "makes the process easier. \u000b\u000bStart by creating the ",
"textStyle": {}
}
},
{
"endIndex": 65341,
"startIndex": 65332,
"textRun": {
"content": "ITunesApi",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 65440,
"startIndex": 65341,
"textRun": {
"content": " instance. Use the sandbox configuration, as well as enable logging to facilitate error debugging.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 65172
},
{
"endIndex": 65476,
"paragraph": {
"elements": [
{
"endIndex": 65475,
"startIndex": 65440,
"textRun": {
"content": "lib/app_store_purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/app_store_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 65476,
"startIndex": 65475,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.2t5pqbdpku2n",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 65440
},
{
"endIndex": 65609,
"startIndex": 65476,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 65608,
"startIndex": 65477,
"tableCells": [
{
"content": [
{
"endIndex": 65511,
"paragraph": {
"elements": [
{
"endIndex": 65511,
"startIndex": 65479,
"textRun": {
"content": " final _iTunesAPI = ITunesApi(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 65479
},
{
"endIndex": 65533,
"paragraph": {
"elements": [
{
"endIndex": 65533,
"startIndex": 65511,
"textRun": {
"content": " ITunesHttpClient(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 65511
},
{
"endIndex": 65568,
"paragraph": {
"elements": [
{
"endIndex": 65568,
"startIndex": 65533,
"textRun": {
"content": " ITunesEnvironment.sandbox(),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 65533
},
{
"endIndex": 65596,
"paragraph": {
"elements": [
{
"endIndex": 65596,
"startIndex": 65568,
"textRun": {
"content": " loggingEnabled: true,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 65568
},
{
"endIndex": 65603,
"paragraph": {
"elements": [
{
"endIndex": 65603,
"startIndex": 65596,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 65596
},
{
"endIndex": 65608,
"paragraph": {
"elements": [
{
"endIndex": 65608,
"startIndex": 65603,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 65603
}
],
"endIndex": 65608,
"startIndex": 65478,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 65610,
"paragraph": {
"elements": [
{
"endIndex": 65610,
"startIndex": 65609,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 65609
},
{
"endIndex": 65852,
"paragraph": {
"elements": [
{
"endIndex": 65852,
"startIndex": 65610,
"textRun": {
"content": "Now, unlike the Google Play APIs, the App Store uses the same API endpoints for both subscriptions and non-subscriptions. This means that you can use the same logic for both handlers. Merge them together so they call the same implementation:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 65610
},
{
"endIndex": 65888,
"paragraph": {
"elements": [
{
"endIndex": 65887,
"startIndex": 65852,
"textRun": {
"content": "lib/app_store_purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/app_store_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 65888,
"startIndex": 65887,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.7cku17nbdcke",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 65852
},
{
"endIndex": 66467,
"startIndex": 65888,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 66466,
"startIndex": 65889,
"tableCells": [
{
"content": [
{
"endIndex": 65903,
"paragraph": {
"elements": [
{
"endIndex": 65903,
"startIndex": 65891,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 65891
},
{
"endIndex": 65942,
"paragraph": {
"elements": [
{
"endIndex": 65942,
"startIndex": 65903,
"textRun": {
"content": " Future<bool> handleNonSubscription({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 65903
},
{
"endIndex": 65970,
"paragraph": {
"elements": [
{
"endIndex": 65970,
"startIndex": 65942,
"textRun": {
"content": " required String userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 65942
},
{
"endIndex": 66008,
"paragraph": {
"elements": [
{
"endIndex": 66008,
"startIndex": 65970,
"textRun": {
"content": " required ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 65970
},
{
"endIndex": 66035,
"paragraph": {
"elements": [
{
"endIndex": 66035,
"startIndex": 66008,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66008
},
{
"endIndex": 66042,
"paragraph": {
"elements": [
{
"endIndex": 66042,
"startIndex": 66035,
"textRun": {
"content": " }) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66035
},
{
"endIndex": 66101,
"paragraph": {
"elements": [
{
"endIndex": 66101,
"startIndex": 66042,
"textRun": {
"content": " return handleValidation(userId: userId, token: token);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66042
},
{
"endIndex": 66105,
"paragraph": {
"elements": [
{
"endIndex": 66105,
"startIndex": 66101,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66101
},
{
"endIndex": 66106,
"paragraph": {
"elements": [
{
"endIndex": 66106,
"startIndex": 66105,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66105
},
{
"endIndex": 66118,
"paragraph": {
"elements": [
{
"endIndex": 66118,
"startIndex": 66106,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66106
},
{
"endIndex": 66154,
"paragraph": {
"elements": [
{
"endIndex": 66154,
"startIndex": 66118,
"textRun": {
"content": " Future<bool> handleSubscription({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66118
},
{
"endIndex": 66182,
"paragraph": {
"elements": [
{
"endIndex": 66182,
"startIndex": 66154,
"textRun": {
"content": " required String userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66154
},
{
"endIndex": 66220,
"paragraph": {
"elements": [
{
"endIndex": 66220,
"startIndex": 66182,
"textRun": {
"content": " required ProductData productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66182
},
{
"endIndex": 66247,
"paragraph": {
"elements": [
{
"endIndex": 66247,
"startIndex": 66220,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66220
},
{
"endIndex": 66254,
"paragraph": {
"elements": [
{
"endIndex": 66254,
"startIndex": 66247,
"textRun": {
"content": " }) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66247
},
{
"endIndex": 66313,
"paragraph": {
"elements": [
{
"endIndex": 66313,
"startIndex": 66254,
"textRun": {
"content": " return handleValidation(userId: userId, token: token);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66254
},
{
"endIndex": 66317,
"paragraph": {
"elements": [
{
"endIndex": 66317,
"startIndex": 66313,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66313
},
{
"endIndex": 66318,
"paragraph": {
"elements": [
{
"endIndex": 66318,
"startIndex": 66317,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66317
},
{
"endIndex": 66352,
"paragraph": {
"elements": [
{
"endIndex": 66352,
"startIndex": 66318,
"textRun": {
"content": " /// Handle purchase validation.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66318
},
{
"endIndex": 66386,
"paragraph": {
"elements": [
{
"endIndex": 66386,
"startIndex": 66352,
"textRun": {
"content": " Future<bool> handleValidation({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66352
},
{
"endIndex": 66414,
"paragraph": {
"elements": [
{
"endIndex": 66414,
"startIndex": 66386,
"textRun": {
"content": " required String userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66386
},
{
"endIndex": 66441,
"paragraph": {
"elements": [
{
"endIndex": 66441,
"startIndex": 66414,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66414
},
{
"endIndex": 66454,
"paragraph": {
"elements": [
{
"endIndex": 66454,
"startIndex": 66441,
"textRun": {
"content": " }) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66441
},
{
"endIndex": 66462,
"paragraph": {
"elements": [
{
"endIndex": 66462,
"startIndex": 66454,
"textRun": {
"content": " //..\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66454
},
{
"endIndex": 66466,
"paragraph": {
"elements": [
{
"endIndex": 66466,
"startIndex": 66462,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66462
}
],
"endIndex": 66466,
"startIndex": 65890,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 66468,
"paragraph": {
"elements": [
{
"endIndex": 66468,
"startIndex": 66467,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 66467
},
{
"endIndex": 66501,
"paragraph": {
"elements": [
{
"endIndex": 66483,
"startIndex": 66468,
"textRun": {
"content": "Now, implement ",
"textStyle": {}
}
},
{
"endIndex": 66499,
"startIndex": 66483,
"textRun": {
"content": "handleValidation",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 66501,
"startIndex": 66499,
"textRun": {
"content": ":\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 66468
},
{
"endIndex": 66537,
"paragraph": {
"elements": [
{
"endIndex": 66536,
"startIndex": 66501,
"textRun": {
"content": "lib/app_store_purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/step_09/dart-backend/lib/app_store_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 66537,
"startIndex": 66536,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.xi83ilzt8dz",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 66501
},
{
"endIndex": 68658,
"startIndex": 66537,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 68657,
"startIndex": 66538,
"tableCells": [
{
"content": [
{
"endIndex": 66574,
"paragraph": {
"elements": [
{
"endIndex": 66574,
"startIndex": 66540,
"textRun": {
"content": " /// Handle purchase validation.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66540
},
{
"endIndex": 66608,
"paragraph": {
"elements": [
{
"endIndex": 66608,
"startIndex": 66574,
"textRun": {
"content": " Future<bool> handleValidation({\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66574
},
{
"endIndex": 66636,
"paragraph": {
"elements": [
{
"endIndex": 66636,
"startIndex": 66608,
"textRun": {
"content": " required String userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66608
},
{
"endIndex": 66663,
"paragraph": {
"elements": [
{
"endIndex": 66663,
"startIndex": 66636,
"textRun": {
"content": " required String token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66636
},
{
"endIndex": 66676,
"paragraph": {
"elements": [
{
"endIndex": 66676,
"startIndex": 66663,
"textRun": {
"content": " }) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66663
},
{
"endIndex": 66731,
"paragraph": {
"elements": [
{
"endIndex": 66731,
"startIndex": 66676,
"textRun": {
"content": " print('AppStorePurchaseHandler.handleValidation');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66676
},
{
"endIndex": 66784,
"paragraph": {
"elements": [
{
"endIndex": 66784,
"startIndex": 66731,
"textRun": {
"content": " final response = await _iTunesAPI.verifyReceipt(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66731
},
{
"endIndex": 66822,
"paragraph": {
"elements": [
{
"endIndex": 66822,
"startIndex": 66784,
"textRun": {
"content": " password: appStoreSharedSecret,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66784
},
{
"endIndex": 66848,
"paragraph": {
"elements": [
{
"endIndex": 66848,
"startIndex": 66822,
"textRun": {
"content": " receiptData: token,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66822
},
{
"endIndex": 66855,
"paragraph": {
"elements": [
{
"endIndex": 66855,
"startIndex": 66848,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66848
},
{
"endIndex": 66889,
"paragraph": {
"elements": [
{
"endIndex": 66889,
"startIndex": 66855,
"textRun": {
"content": " print('response: $response');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66855
},
{
"endIndex": 66921,
"paragraph": {
"elements": [
{
"endIndex": 66921,
"startIndex": 66889,
"textRun": {
"content": " if (response.status == 0) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66889
},
{
"endIndex": 66968,
"paragraph": {
"elements": [
{
"endIndex": 66968,
"startIndex": 66921,
"textRun": {
"content": " print('Successfully verified purchase');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66921
},
{
"endIndex": 67025,
"paragraph": {
"elements": [
{
"endIndex": 67025,
"startIndex": 66968,
"textRun": {
"content": " final receipts = response.latestReceiptInfo ?? [];\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 66968
},
{
"endIndex": 67065,
"paragraph": {
"elements": [
{
"endIndex": 67065,
"startIndex": 67025,
"textRun": {
"content": " for (final receipt in receipts) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67025
},
{
"endIndex": 67124,
"paragraph": {
"elements": [
{
"endIndex": 67124,
"startIndex": 67065,
"textRun": {
"content": " final product = productDataMap[receipt.productId];\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67065
},
{
"endIndex": 67155,
"paragraph": {
"elements": [
{
"endIndex": 67155,
"startIndex": 67124,
"textRun": {
"content": " if (product == null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67124
},
{
"endIndex": 67220,
"paragraph": {
"elements": [
{
"endIndex": 67220,
"startIndex": 67155,
"textRun": {
"content": " print('Error: Unknown product: ${receipt.productId}');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67155
},
{
"endIndex": 67240,
"paragraph": {
"elements": [
{
"endIndex": 67240,
"startIndex": 67220,
"textRun": {
"content": " continue;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67220
},
{
"endIndex": 67250,
"paragraph": {
"elements": [
{
"endIndex": 67250,
"startIndex": 67240,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67240
},
{
"endIndex": 67282,
"paragraph": {
"elements": [
{
"endIndex": 67282,
"startIndex": 67250,
"textRun": {
"content": " switch (product.type) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67250
},
{
"endIndex": 67326,
"paragraph": {
"elements": [
{
"endIndex": 67326,
"startIndex": 67282,
"textRun": {
"content": " case ProductType.nonSubscription:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67282
},
{
"endIndex": 67406,
"paragraph": {
"elements": [
{
"endIndex": 67406,
"startIndex": 67326,
"textRun": {
"content": " await iapRepository.createOrUpdatePurchase(NonSubscriptionPurchase(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67326
},
{
"endIndex": 67436,
"paragraph": {
"elements": [
{
"endIndex": 67436,
"startIndex": 67406,
"textRun": {
"content": " userId: userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67406
},
{
"endIndex": 67486,
"paragraph": {
"elements": [
{
"endIndex": 67486,
"startIndex": 67436,
"textRun": {
"content": " productId: receipt.productId ?? '',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67436
},
{
"endIndex": 67531,
"paragraph": {
"elements": [
{
"endIndex": 67531,
"startIndex": 67486,
"textRun": {
"content": " iapSource: IAPSource.appstore,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67486
},
{
"endIndex": 67591,
"paragraph": {
"elements": [
{
"endIndex": 67591,
"startIndex": 67531,
"textRun": {
"content": " orderId: receipt.originalTransactionId ?? '',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67531
},
{
"endIndex": 67656,
"paragraph": {
"elements": [
{
"endIndex": 67656,
"startIndex": 67591,
"textRun": {
"content": " purchaseDate: DateTime.fromMillisecondsSinceEpoch(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67591
},
{
"endIndex": 67725,
"paragraph": {
"elements": [
{
"endIndex": 67725,
"startIndex": 67656,
"textRun": {
"content": " int.parse(receipt.originalPurchaseDateMs ?? '0')),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67656
},
{
"endIndex": 67759,
"paragraph": {
"elements": [
{
"endIndex": 67759,
"startIndex": 67725,
"textRun": {
"content": " type: product.type,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67725
},
{
"endIndex": 67814,
"paragraph": {
"elements": [
{
"endIndex": 67814,
"startIndex": 67759,
"textRun": {
"content": " status: NonSubscriptionStatus.completed,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67759
},
{
"endIndex": 67830,
"paragraph": {
"elements": [
{
"endIndex": 67830,
"startIndex": 67814,
"textRun": {
"content": " ));\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67814
},
{
"endIndex": 67849,
"paragraph": {
"elements": [
{
"endIndex": 67849,
"startIndex": 67830,
"textRun": {
"content": " break;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67830
},
{
"endIndex": 67890,
"paragraph": {
"elements": [
{
"endIndex": 67890,
"startIndex": 67849,
"textRun": {
"content": " case ProductType.subscription:\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67849
},
{
"endIndex": 67967,
"paragraph": {
"elements": [
{
"endIndex": 67967,
"startIndex": 67890,
"textRun": {
"content": " await iapRepository.createOrUpdatePurchase(SubscriptionPurchase(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67890
},
{
"endIndex": 67997,
"paragraph": {
"elements": [
{
"endIndex": 67997,
"startIndex": 67967,
"textRun": {
"content": " userId: userId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67967
},
{
"endIndex": 68047,
"paragraph": {
"elements": [
{
"endIndex": 68047,
"startIndex": 67997,
"textRun": {
"content": " productId: receipt.productId ?? '',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 67997
},
{
"endIndex": 68092,
"paragraph": {
"elements": [
{
"endIndex": 68092,
"startIndex": 68047,
"textRun": {
"content": " iapSource: IAPSource.appstore,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68047
},
{
"endIndex": 68152,
"paragraph": {
"elements": [
{
"endIndex": 68152,
"startIndex": 68092,
"textRun": {
"content": " orderId: receipt.originalTransactionId ?? '',\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68092
},
{
"endIndex": 68217,
"paragraph": {
"elements": [
{
"endIndex": 68217,
"startIndex": 68152,
"textRun": {
"content": " purchaseDate: DateTime.fromMillisecondsSinceEpoch(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68152
},
{
"endIndex": 68286,
"paragraph": {
"elements": [
{
"endIndex": 68286,
"startIndex": 68217,
"textRun": {
"content": " int.parse(receipt.originalPurchaseDateMs ?? '0')),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68217
},
{
"endIndex": 68320,
"paragraph": {
"elements": [
{
"endIndex": 68320,
"startIndex": 68286,
"textRun": {
"content": " type: product.type,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68286
},
{
"endIndex": 68383,
"paragraph": {
"elements": [
{
"endIndex": 68383,
"startIndex": 68320,
"textRun": {
"content": " expiryDate: DateTime.fromMillisecondsSinceEpoch(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68320
},
{
"endIndex": 68443,
"paragraph": {
"elements": [
{
"endIndex": 68443,
"startIndex": 68383,
"textRun": {
"content": " int.parse(receipt.expiresDateMs ?? '0')),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68383
},
{
"endIndex": 68492,
"paragraph": {
"elements": [
{
"endIndex": 68492,
"startIndex": 68443,
"textRun": {
"content": " status: SubscriptionStatus.active,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68443
},
{
"endIndex": 68508,
"paragraph": {
"elements": [
{
"endIndex": 68508,
"startIndex": 68492,
"textRun": {
"content": " ));\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68492
},
{
"endIndex": 68527,
"paragraph": {
"elements": [
{
"endIndex": 68527,
"startIndex": 68508,
"textRun": {
"content": " break;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68508
},
{
"endIndex": 68537,
"paragraph": {
"elements": [
{
"endIndex": 68537,
"startIndex": 68527,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68527
},
{
"endIndex": 68545,
"paragraph": {
"elements": [
{
"endIndex": 68545,
"startIndex": 68537,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68537
},
{
"endIndex": 68564,
"paragraph": {
"elements": [
{
"endIndex": 68564,
"startIndex": 68545,
"textRun": {
"content": " return true;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68545
},
{
"endIndex": 68577,
"paragraph": {
"elements": [
{
"endIndex": 68577,
"startIndex": 68564,
"textRun": {
"content": " } else {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68564
},
{
"endIndex": 68627,
"paragraph": {
"elements": [
{
"endIndex": 68627,
"startIndex": 68577,
"textRun": {
"content": " print('Error: Status: ${response.status}');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68577
},
{
"endIndex": 68647,
"paragraph": {
"elements": [
{
"endIndex": 68647,
"startIndex": 68627,
"textRun": {
"content": " return false;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68627
},
{
"endIndex": 68653,
"paragraph": {
"elements": [
{
"endIndex": 68653,
"startIndex": 68647,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68647
},
{
"endIndex": 68657,
"paragraph": {
"elements": [
{
"endIndex": 68657,
"startIndex": 68653,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68653
}
],
"endIndex": 68657,
"startIndex": 66539,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 68659,
"paragraph": {
"elements": [
{
"endIndex": 68659,
"startIndex": 68658,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 68658
},
{
"endIndex": 68735,
"paragraph": {
"elements": [
{
"endIndex": 68735,
"startIndex": 68659,
"textRun": {
"content": "Your App Store purchases should now be verified and stored in the database!\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 68659
},
{
"endIndex": 68736,
"paragraph": {
"elements": [
{
"endIndex": 68736,
"startIndex": 68735,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 68735
},
{
"endIndex": 68752,
"paragraph": {
"elements": [
{
"endIndex": 68752,
"startIndex": 68736,
"textRun": {
"content": "Run the backend\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.jb3eo77qkroq",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 68736
},
{
"endIndex": 68840,
"paragraph": {
"elements": [
{
"endIndex": 68779,
"startIndex": 68752,
"textRun": {
"content": "At this point, you can run ",
"textStyle": {}
}
},
{
"endIndex": 68800,
"startIndex": 68779,
"textRun": {
"content": "dart bin/server.dart ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 68814,
"startIndex": 68800,
"textRun": {
"content": " to serve the ",
"textStyle": {}
}
},
{
"endIndex": 68829,
"startIndex": 68814,
"textRun": {
"content": "/verifypurchase",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 68840,
"startIndex": 68829,
"textRun": {
"content": " endpoint.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 68752
},
{
"endIndex": 68841,
"paragraph": {
"elements": [
{
"endIndex": 68841,
"startIndex": 68840,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 68840
},
{
"endIndex": 68900,
"startIndex": 68841,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 68899,
"startIndex": 68842,
"tableCells": [
{
"content": [
{
"endIndex": 68868,
"paragraph": {
"elements": [
{
"endIndex": 68868,
"startIndex": 68844,
"textRun": {
"content": "$ dart bin/server.dart \n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68844
},
{
"endIndex": 68899,
"paragraph": {
"elements": [
{
"endIndex": 68899,
"startIndex": 68868,
"textRun": {
"content": "Serving at http://0.0.0.0:8080\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 68868
}
],
"endIndex": 68899,
"startIndex": 68843,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 68901,
"paragraph": {
"elements": [
{
"endIndex": 68901,
"startIndex": 68900,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 68900
},
{
"endIndex": 68902,
"paragraph": {
"elements": [
{
"endIndex": 68902,
"startIndex": 68901,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 68901
},
{
"endIndex": 68903,
"paragraph": {
"elements": [
{
"endIndex": 68903,
"startIndex": 68902,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 68902
},
{
"endIndex": 68904,
"paragraph": {
"elements": [
{
"endIndex": 68904,
"startIndex": 68903,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 68903
},
{
"endIndex": 68906,
"paragraph": {
"elements": [
{
"endIndex": 68905,
"pageBreak": {
"textStyle": {}
},
"startIndex": 68904
},
{
"endIndex": 68906,
"startIndex": 68905,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 68904
},
{
"endIndex": 68930,
"paragraph": {
"elements": [
{
"endIndex": 68930,
"startIndex": 68906,
"textRun": {
"content": "Keep track of purchases\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.dd0rjca1enw0",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 68906
},
{
"endIndex": 68931,
"paragraph": {
"elements": [
{
"endIndex": 68931,
"startIndex": 68930,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 68930
},
{
"endIndex": 69209,
"paragraph": {
"elements": [
{
"endIndex": 69209,
"startIndex": 68931,
"textRun": {
"content": "The recommended way to track your usersβ purchases is in the backend service. This is because your backend can respond to events from the store and thus is less prone to running into outdated information due to caching, as well as being less susceptible to being tampered with.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 68931
},
{
"endIndex": 69210,
"paragraph": {
"elements": [
{
"endIndex": 69210,
"startIndex": 69209,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 69209
},
{
"endIndex": 69314,
"paragraph": {
"elements": [
{
"endIndex": 69314,
"startIndex": 69210,
"textRun": {
"content": "First, set up the processing of store events on the backend with the Dart backend youβve been building.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 69210
},
{
"endIndex": 69315,
"paragraph": {
"elements": [
{
"endIndex": 69315,
"startIndex": 69314,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 69314
},
{
"endIndex": 69351,
"paragraph": {
"elements": [
{
"endIndex": 69351,
"startIndex": 69315,
"textRun": {
"content": "Process store events on the backend\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ti7vyj5prcjk",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 69315
},
{
"endIndex": 69352,
"paragraph": {
"elements": [
{
"endIndex": 69352,
"startIndex": 69351,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 69351
},
{
"endIndex": 69646,
"paragraph": {
"elements": [
{
"endIndex": 69646,
"startIndex": 69352,
"textRun": {
"content": "Stores have the ability to inform your backend of any billing events that happen, such as when subscriptions renew. You can process these events in your backend to keep the purchases in your database current. In this section, set this up for both the Google Play Store and the Apple App Store.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 69352
},
{
"endIndex": 69681,
"paragraph": {
"elements": [
{
"endIndex": 69681,
"startIndex": 69646,
"textRun": {
"content": "Process Google Play billing events\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.sxk3tsy39sxr",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 69646
},
{
"endIndex": 69682,
"paragraph": {
"elements": [
{
"endIndex": 69682,
"startIndex": 69681,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 69681
},
{
"endIndex": 69862,
"paragraph": {
"elements": [
{
"endIndex": 69743,
"startIndex": 69682,
"textRun": {
"content": "Google Play provides billing events through what they call a ",
"textStyle": {}
}
},
{
"endIndex": 69762,
"startIndex": 69743,
"textRun": {
"content": "cloud pub/sub topic",
"textStyle": {
"italic": true
}
}
},
{
"endIndex": 69862,
"startIndex": 69762,
"textRun": {
"content": ". These are essentially message queues that messages can be published on, as well as consumed from.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 69682
},
{
"endIndex": 69863,
"paragraph": {
"elements": [
{
"endIndex": 69863,
"startIndex": 69862,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 69862
},
{
"endIndex": 69984,
"paragraph": {
"elements": [
{
"endIndex": 69956,
"startIndex": 69863,
"textRun": {
"content": "Because this is functionality specific to Google Play, you include this functionality in the ",
"textStyle": {}
}
},
{
"endIndex": 69981,
"startIndex": 69956,
"textRun": {
"content": "GooglePlayPurchaseHandler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 69984,
"startIndex": 69981,
"textRun": {
"content": ". \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 69863
},
{
"endIndex": 69985,
"paragraph": {
"elements": [
{
"endIndex": 69985,
"startIndex": 69984,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 69984
},
{
"endIndex": 70077,
"paragraph": {
"elements": [
{
"endIndex": 70005,
"startIndex": 69985,
"textRun": {
"content": "Start by opening up ",
"textStyle": {}
}
},
{
"endIndex": 70042,
"startIndex": 70005,
"textRun": {
"content": "lib/google_play_purchase_handler.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 70077,
"startIndex": 70042,
"textRun": {
"content": ", and adding the PubsubApi import:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 69985
},
{
"endIndex": 70115,
"paragraph": {
"elements": [
{
"endIndex": 70114,
"startIndex": 70077,
"textRun": {
"content": "lib/google_play_purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/dart-backend/lib/google_play_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 70115,
"startIndex": 70114,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.aecu2q40uqsk",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 70077
},
{
"endIndex": 70173,
"startIndex": 70115,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 70172,
"startIndex": 70116,
"tableCells": [
{
"content": [
{
"endIndex": 70172,
"paragraph": {
"elements": [
{
"endIndex": 70172,
"startIndex": 70118,
"textRun": {
"content": "import 'package:googleapis/pubsub/v1.dart' as pubsub;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70118
}
],
"endIndex": 70172,
"startIndex": 70117,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 70174,
"paragraph": {
"elements": [
{
"endIndex": 70174,
"startIndex": 70173,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 70173
},
{
"endIndex": 70296,
"paragraph": {
"elements": [
{
"endIndex": 70189,
"startIndex": 70174,
"textRun": {
"content": "Then, pass the ",
"textStyle": {}
}
},
{
"endIndex": 70198,
"startIndex": 70189,
"textRun": {
"content": "PubsubApi",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 70206,
"startIndex": 70198,
"textRun": {
"content": " to the ",
"textStyle": {}
}
},
{
"endIndex": 70231,
"startIndex": 70206,
"textRun": {
"content": "GooglePlayPurchaseHandler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 70278,
"startIndex": 70231,
"textRun": {
"content": ", and modify the class constructor to create a ",
"textStyle": {}
}
},
{
"endIndex": 70283,
"startIndex": 70278,
"textRun": {
"content": "Timer",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 70284,
"startIndex": 70283,
"textRun": {
"content": " ",
"textStyle": {}
}
},
{
"endIndex": 70296,
"startIndex": 70284,
"textRun": {
"content": "as follows:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 70174
},
{
"endIndex": 70334,
"paragraph": {
"elements": [
{
"endIndex": 70333,
"startIndex": 70296,
"textRun": {
"content": "lib/google_play_purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/dart-backend/lib/google_play_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 70334,
"startIndex": 70333,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.h0yuk8vhe476",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 70296
},
{
"endIndex": 70782,
"startIndex": 70334,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 70781,
"startIndex": 70335,
"tableCells": [
{
"content": [
{
"endIndex": 70395,
"paragraph": {
"elements": [
{
"endIndex": 70395,
"startIndex": 70337,
"textRun": {
"content": "class GooglePlayPurchaseHandler extends PurchaseHandler {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70337
},
{
"endIndex": 70444,
"paragraph": {
"elements": [
{
"endIndex": 70444,
"startIndex": 70395,
"textRun": {
"content": " final ap.AndroidPublisherApi androidPublisher;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70395
},
{
"endIndex": 70481,
"paragraph": {
"elements": [
{
"endIndex": 70481,
"startIndex": 70444,
"textRun": {
"content": " final IapRepository iapRepository;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70444
},
{
"endIndex": 70524,
"paragraph": {
"elements": [
{
"endIndex": 70524,
"startIndex": 70481,
"textRun": {
"content": " final pubsub.PubsubApi pubsubApi; // new\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70481
},
{
"endIndex": 70525,
"paragraph": {
"elements": [
{
"endIndex": 70525,
"startIndex": 70524,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70524
},
{
"endIndex": 70554,
"paragraph": {
"elements": [
{
"endIndex": 70554,
"startIndex": 70525,
"textRun": {
"content": " GooglePlayPurchaseHandler(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70525
},
{
"endIndex": 70581,
"paragraph": {
"elements": [
{
"endIndex": 70581,
"startIndex": 70554,
"textRun": {
"content": " this.androidPublisher,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70554
},
{
"endIndex": 70605,
"paragraph": {
"elements": [
{
"endIndex": 70605,
"startIndex": 70581,
"textRun": {
"content": " this.iapRepository,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70581
},
{
"endIndex": 70632,
"paragraph": {
"elements": [
{
"endIndex": 70632,
"startIndex": 70605,
"textRun": {
"content": " this.pubsubApi, // new\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70605
},
{
"endIndex": 70638,
"paragraph": {
"elements": [
{
"endIndex": 70638,
"startIndex": 70632,
"textRun": {
"content": " ) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70632
},
{
"endIndex": 70689,
"paragraph": {
"elements": [
{
"endIndex": 70689,
"startIndex": 70638,
"textRun": {
"content": " // Poll messages from Pub/Sub every 10 seconds\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70638
},
{
"endIndex": 70737,
"paragraph": {
"elements": [
{
"endIndex": 70737,
"startIndex": 70689,
"textRun": {
"content": " Timer.periodic(Duration(seconds: 10), (_) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70689
},
{
"endIndex": 70769,
"paragraph": {
"elements": [
{
"endIndex": 70769,
"startIndex": 70737,
"textRun": {
"content": " _pullMessageFromPubSub();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70737
},
{
"endIndex": 70777,
"paragraph": {
"elements": [
{
"endIndex": 70777,
"startIndex": 70769,
"textRun": {
"content": " });\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70769
},
{
"endIndex": 70781,
"paragraph": {
"elements": [
{
"endIndex": 70781,
"startIndex": 70777,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": false,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 70777
}
],
"endIndex": 70781,
"startIndex": 70336,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 70783,
"paragraph": {
"elements": [
{
"endIndex": 70783,
"startIndex": 70782,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 70782
},
{
"endIndex": 70920,
"paragraph": {
"elements": [
{
"endIndex": 70787,
"startIndex": 70783,
"textRun": {
"content": "The ",
"textStyle": {}
}
},
{
"endIndex": 70792,
"startIndex": 70787,
"textRun": {
"content": "Timer",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 70819,
"startIndex": 70792,
"textRun": {
"content": " is configured to call the ",
"textStyle": {}
}
},
{
"endIndex": 70841,
"startIndex": 70819,
"textRun": {
"content": "_pullMessageFromSubSub",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 70920,
"startIndex": 70841,
"textRun": {
"content": " method every ten seconds. You can adjust the Duration to your own preference.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 70783
},
{
"endIndex": 70921,
"paragraph": {
"elements": [
{
"endIndex": 70921,
"startIndex": 70920,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 70920
},
{
"endIndex": 70961,
"paragraph": {
"elements": [
{
"endIndex": 70938,
"startIndex": 70921,
"textRun": {
"content": "Then, create the ",
"textStyle": {}
}
},
{
"endIndex": 70961,
"startIndex": 70938,
"textRun": {
"content": "_pullMessageFromSubSub\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 70921
},
{
"endIndex": 70999,
"paragraph": {
"elements": [
{
"endIndex": 70998,
"startIndex": 70961,
"textRun": {
"content": "lib/google_play_purchase_handler.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/dart-backend/lib/google_play_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 70999,
"startIndex": 70998,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.nvc7e2wjg9po",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 70961
},
{
"endIndex": 73764,
"startIndex": 70999,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 73763,
"startIndex": 71000,
"tableCells": [
{
"content": [
{
"endIndex": 71042,
"paragraph": {
"elements": [
{
"endIndex": 71042,
"startIndex": 71002,
"textRun": {
"content": " /// Process messages from Google Play\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71002
},
{
"endIndex": 71072,
"paragraph": {
"elements": [
{
"endIndex": 71072,
"startIndex": 71042,
"textRun": {
"content": " /// Called every 10 seconds\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71042
},
{
"endIndex": 71120,
"paragraph": {
"elements": [
{
"endIndex": 71120,
"startIndex": 71072,
"textRun": {
"content": " Future<void> _pullMessageFromPubSub() async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71072
},
{
"endIndex": 71163,
"paragraph": {
"elements": [
{
"endIndex": 71163,
"startIndex": 71120,
"textRun": {
"content": " print('Polling Google Play messages');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71120
},
{
"endIndex": 71203,
"paragraph": {
"elements": [
{
"endIndex": 71203,
"startIndex": 71163,
"textRun": {
"content": " final request = pubsub.PullRequest(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71163
},
{
"endIndex": 71228,
"paragraph": {
"elements": [
{
"endIndex": 71228,
"startIndex": 71203,
"textRun": {
"content": " maxMessages: 1000,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71203
},
{
"endIndex": 71235,
"paragraph": {
"elements": [
{
"endIndex": 71235,
"startIndex": 71228,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71228
},
{
"endIndex": 71257,
"paragraph": {
"elements": [
{
"endIndex": 71257,
"startIndex": 71235,
"textRun": {
"content": " final topicName =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71235
},
{
"endIndex": 71348,
"paragraph": {
"elements": [
{
"endIndex": 71348,
"startIndex": 71257,
"textRun": {
"content": " 'projects/$googlePlayProjectName/subscriptions/$googlePlayPubsubBillingTopic-sub';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71257
},
{
"endIndex": 71418,
"paragraph": {
"elements": [
{
"endIndex": 71418,
"startIndex": 71348,
"textRun": {
"content": " final pullResponse = await pubsubApi.projects.subscriptions.pull(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71348
},
{
"endIndex": 71433,
"paragraph": {
"elements": [
{
"endIndex": 71433,
"startIndex": 71418,
"textRun": {
"content": " request,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71418
},
{
"endIndex": 71450,
"paragraph": {
"elements": [
{
"endIndex": 71450,
"startIndex": 71433,
"textRun": {
"content": " topicName,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71433
},
{
"endIndex": 71457,
"paragraph": {
"elements": [
{
"endIndex": 71457,
"startIndex": 71450,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71450
},
{
"endIndex": 71515,
"paragraph": {
"elements": [
{
"endIndex": 71515,
"startIndex": 71457,
"textRun": {
"content": " final messages = pullResponse.receivedMessages ?? [];\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71457
},
{
"endIndex": 71553,
"paragraph": {
"elements": [
{
"endIndex": 71553,
"startIndex": 71515,
"textRun": {
"content": " for (final message in messages) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71515
},
{
"endIndex": 71597,
"paragraph": {
"elements": [
{
"endIndex": 71597,
"startIndex": 71553,
"textRun": {
"content": " final data64 = message.message?.data;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71553
},
{
"endIndex": 71625,
"paragraph": {
"elements": [
{
"endIndex": 71625,
"startIndex": 71597,
"textRun": {
"content": " if (data64 != null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71597
},
{
"endIndex": 71679,
"paragraph": {
"elements": [
{
"endIndex": 71679,
"startIndex": 71625,
"textRun": {
"content": " await _processMessage(data64, message.ackId);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71625
},
{
"endIndex": 71687,
"paragraph": {
"elements": [
{
"endIndex": 71687,
"startIndex": 71679,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71679
},
{
"endIndex": 71693,
"paragraph": {
"elements": [
{
"endIndex": 71693,
"startIndex": 71687,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71687
},
{
"endIndex": 71697,
"paragraph": {
"elements": [
{
"endIndex": 71697,
"startIndex": 71693,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71693
},
{
"endIndex": 71698,
"paragraph": {
"elements": [
{
"endIndex": 71698,
"startIndex": 71697,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71697
},
{
"endIndex": 71767,
"paragraph": {
"elements": [
{
"endIndex": 71767,
"startIndex": 71698,
"textRun": {
"content": " Future<void> _processMessage(String data64, String? ackId) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71698
},
{
"endIndex": 71822,
"paragraph": {
"elements": [
{
"endIndex": 71822,
"startIndex": 71767,
"textRun": {
"content": " final dataRaw = utf8.decode(base64Decode(data64));\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71767
},
{
"endIndex": 71860,
"paragraph": {
"elements": [
{
"endIndex": 71860,
"startIndex": 71822,
"textRun": {
"content": " print('Received data: $dataRaw');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71822
},
{
"endIndex": 71906,
"paragraph": {
"elements": [
{
"endIndex": 71906,
"startIndex": 71860,
"textRun": {
"content": " final dynamic data = jsonDecode(dataRaw);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71860
},
{
"endIndex": 71950,
"paragraph": {
"elements": [
{
"endIndex": 71950,
"startIndex": 71906,
"textRun": {
"content": " if (data['testNotification'] != null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71906
},
{
"endIndex": 71985,
"paragraph": {
"elements": [
{
"endIndex": 71985,
"startIndex": 71950,
"textRun": {
"content": " print('Skip test messages');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71950
},
{
"endIndex": 72012,
"paragraph": {
"elements": [
{
"endIndex": 72012,
"startIndex": 71985,
"textRun": {
"content": " if (ackId != null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 71985
},
{
"endIndex": 72046,
"paragraph": {
"elements": [
{
"endIndex": 72046,
"startIndex": 72012,
"textRun": {
"content": " await _ackMessage(ackId);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72012
},
{
"endIndex": 72054,
"paragraph": {
"elements": [
{
"endIndex": 72054,
"startIndex": 72046,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72046
},
{
"endIndex": 72068,
"paragraph": {
"elements": [
{
"endIndex": 72068,
"startIndex": 72054,
"textRun": {
"content": " return;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72054
},
{
"endIndex": 72074,
"paragraph": {
"elements": [
{
"endIndex": 72074,
"startIndex": 72068,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72068
},
{
"endIndex": 72153,
"paragraph": {
"elements": [
{
"endIndex": 72153,
"startIndex": 72074,
"textRun": {
"content": " final dynamic subscriptionNotification = data['subscriptionNotification'];\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72074
},
{
"endIndex": 72200,
"paragraph": {
"elements": [
{
"endIndex": 72200,
"startIndex": 72153,
"textRun": {
"content": " final dynamic oneTimeProductNotification =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72153
},
{
"endIndex": 72244,
"paragraph": {
"elements": [
{
"endIndex": 72244,
"startIndex": 72200,
"textRun": {
"content": " data['oneTimeProductNotification'];\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72200
},
{
"endIndex": 72288,
"paragraph": {
"elements": [
{
"endIndex": 72288,
"startIndex": 72244,
"textRun": {
"content": " if (subscriptionNotification != null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72244
},
{
"endIndex": 72328,
"paragraph": {
"elements": [
{
"endIndex": 72328,
"startIndex": 72288,
"textRun": {
"content": " print('Processing Subscription');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72288
},
{
"endIndex": 72357,
"paragraph": {
"elements": [
{
"endIndex": 72357,
"startIndex": 72328,
"textRun": {
"content": " final subscriptionId =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72328
},
{
"endIndex": 72421,
"paragraph": {
"elements": [
{
"endIndex": 72421,
"startIndex": 72357,
"textRun": {
"content": " subscriptionNotification['subscriptionId'] as String;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72357
},
{
"endIndex": 72502,
"paragraph": {
"elements": [
{
"endIndex": 72502,
"startIndex": 72421,
"textRun": {
"content": " final purchaseToken = subscriptionNotification['purchaseToken'] as String;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72421
},
{
"endIndex": 72561,
"paragraph": {
"elements": [
{
"endIndex": 72561,
"startIndex": 72502,
"textRun": {
"content": " final productData = productDataMap[subscriptionId]!;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72502
},
{
"endIndex": 72608,
"paragraph": {
"elements": [
{
"endIndex": 72608,
"startIndex": 72561,
"textRun": {
"content": " final result = await handleSubscription(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72561
},
{
"endIndex": 72630,
"paragraph": {
"elements": [
{
"endIndex": 72630,
"startIndex": 72608,
"textRun": {
"content": " userId: null,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72608
},
{
"endIndex": 72664,
"paragraph": {
"elements": [
{
"endIndex": 72664,
"startIndex": 72630,
"textRun": {
"content": " productData: productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72630
},
{
"endIndex": 72694,
"paragraph": {
"elements": [
{
"endIndex": 72694,
"startIndex": 72664,
"textRun": {
"content": " token: purchaseToken,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72664
},
{
"endIndex": 72703,
"paragraph": {
"elements": [
{
"endIndex": 72703,
"startIndex": 72694,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72694
},
{
"endIndex": 72740,
"paragraph": {
"elements": [
{
"endIndex": 72740,
"startIndex": 72703,
"textRun": {
"content": " if (result && ackId != null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72703
},
{
"endIndex": 72774,
"paragraph": {
"elements": [
{
"endIndex": 72774,
"startIndex": 72740,
"textRun": {
"content": " await _ackMessage(ackId);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72740
},
{
"endIndex": 72782,
"paragraph": {
"elements": [
{
"endIndex": 72782,
"startIndex": 72774,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72774
},
{
"endIndex": 72835,
"paragraph": {
"elements": [
{
"endIndex": 72835,
"startIndex": 72782,
"textRun": {
"content": " } else if (oneTimeProductNotification != null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72782
},
{
"endIndex": 72878,
"paragraph": {
"elements": [
{
"endIndex": 72878,
"startIndex": 72835,
"textRun": {
"content": " print('Processing NonSubscription');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72835
},
{
"endIndex": 72941,
"paragraph": {
"elements": [
{
"endIndex": 72941,
"startIndex": 72878,
"textRun": {
"content": " final sku = oneTimeProductNotification['sku'] as String;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72878
},
{
"endIndex": 72969,
"paragraph": {
"elements": [
{
"endIndex": 72969,
"startIndex": 72941,
"textRun": {
"content": " final purchaseToken =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72941
},
{
"endIndex": 73034,
"paragraph": {
"elements": [
{
"endIndex": 73034,
"startIndex": 72969,
"textRun": {
"content": " oneTimeProductNotification['purchaseToken'] as String;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 72969
},
{
"endIndex": 73082,
"paragraph": {
"elements": [
{
"endIndex": 73082,
"startIndex": 73034,
"textRun": {
"content": " final productData = productDataMap[sku]!;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73034
},
{
"endIndex": 73132,
"paragraph": {
"elements": [
{
"endIndex": 73132,
"startIndex": 73082,
"textRun": {
"content": " final result = await handleNonSubscription(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73082
},
{
"endIndex": 73154,
"paragraph": {
"elements": [
{
"endIndex": 73154,
"startIndex": 73132,
"textRun": {
"content": " userId: null,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73132
},
{
"endIndex": 73188,
"paragraph": {
"elements": [
{
"endIndex": 73188,
"startIndex": 73154,
"textRun": {
"content": " productData: productData,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73154
},
{
"endIndex": 73218,
"paragraph": {
"elements": [
{
"endIndex": 73218,
"startIndex": 73188,
"textRun": {
"content": " token: purchaseToken,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73188
},
{
"endIndex": 73227,
"paragraph": {
"elements": [
{
"endIndex": 73227,
"startIndex": 73218,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73218
},
{
"endIndex": 73264,
"paragraph": {
"elements": [
{
"endIndex": 73264,
"startIndex": 73227,
"textRun": {
"content": " if (result && ackId != null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73227
},
{
"endIndex": 73298,
"paragraph": {
"elements": [
{
"endIndex": 73298,
"startIndex": 73264,
"textRun": {
"content": " await _ackMessage(ackId);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73264
},
{
"endIndex": 73306,
"paragraph": {
"elements": [
{
"endIndex": 73306,
"startIndex": 73298,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73298
},
{
"endIndex": 73319,
"paragraph": {
"elements": [
{
"endIndex": 73319,
"startIndex": 73306,
"textRun": {
"content": " } else {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73306
},
{
"endIndex": 73348,
"paragraph": {
"elements": [
{
"endIndex": 73348,
"startIndex": 73319,
"textRun": {
"content": " print('invalid data');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73319
},
{
"endIndex": 73354,
"paragraph": {
"elements": [
{
"endIndex": 73354,
"startIndex": 73348,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73348
},
{
"endIndex": 73358,
"paragraph": {
"elements": [
{
"endIndex": 73358,
"startIndex": 73354,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73354
},
{
"endIndex": 73359,
"paragraph": {
"elements": [
{
"endIndex": 73359,
"startIndex": 73358,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73358
},
{
"endIndex": 73391,
"paragraph": {
"elements": [
{
"endIndex": 73391,
"startIndex": 73359,
"textRun": {
"content": " /// ACK Messages from Pub/Sub\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73359
},
{
"endIndex": 73437,
"paragraph": {
"elements": [
{
"endIndex": 73437,
"startIndex": 73391,
"textRun": {
"content": " Future<void> _ackMessage(String id) async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73391
},
{
"endIndex": 73463,
"paragraph": {
"elements": [
{
"endIndex": 73463,
"startIndex": 73437,
"textRun": {
"content": " print('ACK Message');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73437
},
{
"endIndex": 73510,
"paragraph": {
"elements": [
{
"endIndex": 73510,
"startIndex": 73463,
"textRun": {
"content": " final request = pubsub.AcknowledgeRequest(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73463
},
{
"endIndex": 73530,
"paragraph": {
"elements": [
{
"endIndex": 73530,
"startIndex": 73510,
"textRun": {
"content": " ackIds: [id],\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73510
},
{
"endIndex": 73537,
"paragraph": {
"elements": [
{
"endIndex": 73537,
"startIndex": 73530,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73530
},
{
"endIndex": 73566,
"paragraph": {
"elements": [
{
"endIndex": 73566,
"startIndex": 73537,
"textRun": {
"content": " final subscriptionName =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73537
},
{
"endIndex": 73657,
"paragraph": {
"elements": [
{
"endIndex": 73657,
"startIndex": 73566,
"textRun": {
"content": " 'projects/$googlePlayProjectName/subscriptions/$googlePlayPubsubBillingTopic-sub';\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73566
},
{
"endIndex": 73713,
"paragraph": {
"elements": [
{
"endIndex": 73713,
"startIndex": 73657,
"textRun": {
"content": " await pubsubApi.projects.subscriptions.acknowledge(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73657
},
{
"endIndex": 73728,
"paragraph": {
"elements": [
{
"endIndex": 73728,
"startIndex": 73713,
"textRun": {
"content": " request,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73713
},
{
"endIndex": 73752,
"paragraph": {
"elements": [
{
"endIndex": 73752,
"startIndex": 73728,
"textRun": {
"content": " subscriptionName,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73728
},
{
"endIndex": 73759,
"paragraph": {
"elements": [
{
"endIndex": 73759,
"startIndex": 73752,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73752
},
{
"endIndex": 73763,
"paragraph": {
"elements": [
{
"endIndex": 73763,
"startIndex": 73759,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 73759
}
],
"endIndex": 73763,
"startIndex": 71001,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 73765,
"paragraph": {
"elements": [
{
"endIndex": 73765,
"startIndex": 73764,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 73764
},
{
"endIndex": 73949,
"paragraph": {
"elements": [
{
"endIndex": 73924,
"startIndex": 73765,
"textRun": {
"content": "The code you just added communicates with the Pub/Sub Topic from Google Cloud every ten seconds and asks for new messages. Then, processes each message in the ",
"textStyle": {}
}
},
{
"endIndex": 73939,
"startIndex": 73924,
"textRun": {
"content": "_processMessage",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 73949,
"startIndex": 73939,
"textRun": {
"content": " method. \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 73765
},
{
"endIndex": 73950,
"paragraph": {
"elements": [
{
"endIndex": 73950,
"startIndex": 73949,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 73949
},
{
"endIndex": 74170,
"paragraph": {
"elements": [
{
"endIndex": 74112,
"startIndex": 73950,
"textRun": {
"content": "This method decodes the incoming messages and obtains the updated information about each purchase, both subscriptions and non-subscriptions, calling the existing ",
"textStyle": {}
}
},
{
"endIndex": 74130,
"startIndex": 74112,
"textRun": {
"content": "handleSubscription",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 74134,
"startIndex": 74130,
"textRun": {
"content": " or ",
"textStyle": {}
}
},
{
"endIndex": 74155,
"startIndex": 74134,
"textRun": {
"content": "handleNonSubscription",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 74170,
"startIndex": 74155,
"textRun": {
"content": " if necessary.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 73950
},
{
"endIndex": 74171,
"paragraph": {
"elements": [
{
"endIndex": 74171,
"startIndex": 74170,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 74170
},
{
"endIndex": 74238,
"paragraph": {
"elements": [
{
"endIndex": 74218,
"startIndex": 74171,
"textRun": {
"content": "Each message needs to be acknowledged with the ",
"textStyle": {}
}
},
{
"endIndex": 74229,
"startIndex": 74218,
"textRun": {
"content": "_askMessage",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 74238,
"startIndex": 74229,
"textRun": {
"content": " method.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 74171
},
{
"endIndex": 74239,
"paragraph": {
"elements": [
{
"endIndex": 74239,
"startIndex": 74238,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 74238
},
{
"endIndex": 74371,
"paragraph": {
"elements": [
{
"endIndex": 74282,
"startIndex": 74239,
"textRun": {
"content": "Next, add the required dependencies to the ",
"textStyle": {}
}
},
{
"endIndex": 74293,
"startIndex": 74282,
"textRun": {
"content": "server.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 74371,
"startIndex": 74293,
"textRun": {
"content": " file. Add the PubsubApi.cloudPlatformScope to the credentials configuration:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 74239
},
{
"endIndex": 74387,
"paragraph": {
"elements": [
{
"endIndex": 74386,
"startIndex": 74371,
"textRun": {
"content": "bin/server.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/dart-backend/bin/server.dart"
},
"underline": true
}
}
},
{
"endIndex": 74387,
"startIndex": 74386,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.e8qkvvxxsdv3",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 74371
},
{
"endIndex": 74593,
"startIndex": 74387,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 74592,
"startIndex": 74388,
"tableCells": [
{
"content": [
{
"endIndex": 74416,
"paragraph": {
"elements": [
{
"endIndex": 74416,
"startIndex": 74390,
"textRun": {
"content": " final clientGooglePlay =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74390
},
{
"endIndex": 74488,
"paragraph": {
"elements": [
{
"endIndex": 74488,
"startIndex": 74416,
"textRun": {
"content": " await auth.clientViaServiceAccount(clientCredentialsGooglePlay, [\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74416
},
{
"endIndex": 74538,
"paragraph": {
"elements": [
{
"endIndex": 74538,
"startIndex": 74488,
"textRun": {
"content": " ap.AndroidPublisherApi.androidpublisherScope,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74488
},
{
"endIndex": 74586,
"paragraph": {
"elements": [
{
"endIndex": 74586,
"startIndex": 74538,
"textRun": {
"content": " pubsub.PubsubApi.cloudPlatformScope, // new\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74538
},
{
"endIndex": 74592,
"paragraph": {
"elements": [
{
"endIndex": 74592,
"startIndex": 74586,
"textRun": {
"content": " ]);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74586
}
],
"endIndex": 74592,
"startIndex": 74389,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 74594,
"paragraph": {
"elements": [
{
"endIndex": 74594,
"startIndex": 74593,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 74593
},
{
"endIndex": 74631,
"paragraph": {
"elements": [
{
"endIndex": 74631,
"startIndex": 74594,
"textRun": {
"content": "Then, create the PubsubApi instance:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 74594
},
{
"endIndex": 74647,
"paragraph": {
"elements": [
{
"endIndex": 74646,
"startIndex": 74631,
"textRun": {
"content": "bin/server.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/dart-backend/bin/server.dart"
},
"underline": true
}
}
},
{
"endIndex": 74647,
"startIndex": 74646,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.g22rpr7r4d9x",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 74631
},
{
"endIndex": 74707,
"startIndex": 74647,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 74706,
"startIndex": 74648,
"tableCells": [
{
"content": [
{
"endIndex": 74706,
"paragraph": {
"elements": [
{
"endIndex": 74706,
"startIndex": 74650,
"textRun": {
"content": " final pubsubApi = pubsub.PubsubApi(clientGooglePlay);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74650
}
],
"endIndex": 74706,
"startIndex": 74649,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 74708,
"paragraph": {
"elements": [
{
"endIndex": 74708,
"startIndex": 74707,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 74707
},
{
"endIndex": 74775,
"paragraph": {
"elements": [
{
"endIndex": 74736,
"startIndex": 74708,
"textRun": {
"content": "And finally, pass it to the ",
"textStyle": {}
}
},
{
"endIndex": 74761,
"startIndex": 74736,
"textRun": {
"content": "GooglePlayPurchaseHandler",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 74775,
"startIndex": 74761,
"textRun": {
"content": " constructor:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 74708
},
{
"endIndex": 74791,
"paragraph": {
"elements": [
{
"endIndex": 74790,
"startIndex": 74775,
"textRun": {
"content": "bin/server.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/dart-backend/bin/server.dart"
},
"underline": true
}
}
},
{
"endIndex": 74791,
"startIndex": 74790,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.8k6qyft8atf5",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 74775
},
{
"endIndex": 75003,
"startIndex": 74791,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 75002,
"startIndex": 74792,
"tableCells": [
{
"content": [
{
"endIndex": 74805,
"paragraph": {
"elements": [
{
"endIndex": 74805,
"startIndex": 74794,
"textRun": {
"content": " return {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74794
},
{
"endIndex": 74851,
"paragraph": {
"elements": [
{
"endIndex": 74851,
"startIndex": 74805,
"textRun": {
"content": " 'google_play': GooglePlayPurchaseHandler(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74805
},
{
"endIndex": 74875,
"paragraph": {
"elements": [
{
"endIndex": 74875,
"startIndex": 74851,
"textRun": {
"content": " androidPublisher,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74851
},
{
"endIndex": 74896,
"paragraph": {
"elements": [
{
"endIndex": 74896,
"startIndex": 74875,
"textRun": {
"content": " iapRepository,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74875
},
{
"endIndex": 74920,
"paragraph": {
"elements": [
{
"endIndex": 74920,
"startIndex": 74896,
"textRun": {
"content": " pubsubApi, // new\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74896
},
{
"endIndex": 74927,
"paragraph": {
"elements": [
{
"endIndex": 74927,
"startIndex": 74920,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74920
},
{
"endIndex": 74969,
"paragraph": {
"elements": [
{
"endIndex": 74969,
"startIndex": 74927,
"textRun": {
"content": " 'app_store': AppStorePurchaseHandler(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74927
},
{
"endIndex": 74990,
"paragraph": {
"elements": [
{
"endIndex": 74990,
"startIndex": 74969,
"textRun": {
"content": " iapRepository,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74969
},
{
"endIndex": 74997,
"paragraph": {
"elements": [
{
"endIndex": 74997,
"startIndex": 74990,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74990
},
{
"endIndex": 75002,
"paragraph": {
"elements": [
{
"endIndex": 75002,
"startIndex": 74997,
"textRun": {
"content": " };\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 74997
}
],
"endIndex": 75002,
"startIndex": 74793,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 75004,
"paragraph": {
"elements": [
{
"endIndex": 75004,
"startIndex": 75003,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 75003
},
{
"endIndex": 75005,
"paragraph": {
"elements": [
{
"endIndex": 75005,
"startIndex": 75004,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 75004
},
{
"endIndex": 75023,
"paragraph": {
"elements": [
{
"endIndex": 75023,
"startIndex": 75005,
"textRun": {
"content": "Google Play setup\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.nkijb68mlhu2",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 75005
},
{
"endIndex": 75024,
"paragraph": {
"elements": [
{
"endIndex": 75024,
"startIndex": 75023,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 75023
},
{
"endIndex": 75210,
"paragraph": {
"elements": [
{
"endIndex": 75210,
"startIndex": 75024,
"textRun": {
"content": "Youβve written the code to consume billing events from the pub/sub topic, but you havenβt created the pub/sub topic, nor are you publishing any billing events. Itβs time to set this up.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 75024
},
{
"endIndex": 75211,
"paragraph": {
"elements": [
{
"endIndex": 75211,
"startIndex": 75210,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 75210
},
{
"endIndex": 75242,
"paragraph": {
"elements": [
{
"endIndex": 75242,
"startIndex": 75211,
"textRun": {
"content": "First, create a pub/sub topic:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 75211
},
{
"endIndex": 75300,
"paragraph": {
"bullet": {
"listId": "kix.pltqaannoum0",
"textStyle": {}
},
"elements": [
{
"endIndex": 75252,
"startIndex": 75242,
"textRun": {
"content": "Visit the ",
"textStyle": {}
}
},
{
"endIndex": 75270,
"startIndex": 75252,
"textRun": {
"content": "Cloud Pub/Sub page",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://console.cloud.google.com/cloudpubsub/topic/list"
},
"underline": true
}
}
},
{
"endIndex": 75300,
"startIndex": 75270,
"textRun": {
"content": " on the Google Cloud Console.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 75242
},
{
"endIndex": 75374,
"paragraph": {
"bullet": {
"listId": "kix.pltqaannoum0",
"textStyle": {}
},
"elements": [
{
"endIndex": 75355,
"startIndex": 75300,
"textRun": {
"content": "Ensure that youβre on your Firebase project, and click ",
"textStyle": {}
}
},
{
"endIndex": 75369,
"startIndex": 75355,
"textRun": {
"content": "+ Create Topic",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 75371,
"startIndex": 75369,
"textRun": {
"content": ".\u000b",
"textStyle": {}
}
},
{
"endIndex": 75372,
"inlineObjectElement": {
"inlineObjectId": "kix.vsyt8x9u450c",
"textStyle": {}
},
"startIndex": 75371
},
{
"endIndex": 75374,
"startIndex": 75372,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 75300
},
{
"endIndex": 75603,
"paragraph": {
"bullet": {
"listId": "kix.pltqaannoum0",
"textStyle": {}
},
"elements": [
{
"endIndex": 75432,
"startIndex": 75374,
"textRun": {
"content": "Give the new topic a name, identical to the value set for ",
"textStyle": {}
}
},
{
"endIndex": 75465,
"startIndex": 75432,
"textRun": {
"content": "GOOGLE_PLAY_PUBSUB_BILLING_TOPIC ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 75467,
"startIndex": 75465,
"textRun": {
"content": "in",
"textStyle": {}
}
},
{
"endIndex": 75480,
"startIndex": 75467,
"textRun": {
"content": " constants.ts",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 75504,
"startIndex": 75480,
"textRun": {
"content": ". In this case, name it ",
"textStyle": {}
}
},
{
"endIndex": 75516,
"startIndex": 75504,
"textRun": {
"content": "play_billing",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 75568,
"startIndex": 75516,
"textRun": {
"content": ". If you choose something else, make sure to update ",
"textStyle": {}
}
},
{
"endIndex": 75580,
"startIndex": 75568,
"textRun": {
"content": "constants.ts",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 75600,
"startIndex": 75580,
"textRun": {
"content": ". Create the topic.\u000b",
"textStyle": {}
}
},
{
"endIndex": 75601,
"inlineObjectElement": {
"inlineObjectId": "kix.5xdu2wapi4y2",
"textStyle": {}
},
"startIndex": 75600
},
{
"endIndex": 75603,
"startIndex": 75601,
"textRun": {
"content": "\u000b\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 75374
},
{
"endIndex": 75731,
"paragraph": {
"bullet": {
"listId": "kix.pltqaannoum0",
"textStyle": {}
},
"elements": [
{
"endIndex": 75711,
"startIndex": 75603,
"textRun": {
"content": "In the list of your pub/sub topics, click the three vertical dots for the topic you just created, and click ",
"textStyle": {}
}
},
{
"endIndex": 75727,
"startIndex": 75711,
"textRun": {
"content": "View permissions",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 75729,
"startIndex": 75727,
"textRun": {
"content": ".\u000b",
"textStyle": {}
}
},
{
"endIndex": 75730,
"inlineObjectElement": {
"inlineObjectId": "kix.k80ohjcbndwt",
"textStyle": {}
},
"startIndex": 75729
},
{
"endIndex": 75731,
"startIndex": 75730,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 75603
},
{
"endIndex": 75782,
"paragraph": {
"bullet": {
"listId": "kix.pltqaannoum0",
"textStyle": {}
},
"elements": [
{
"endIndex": 75767,
"startIndex": 75731,
"textRun": {
"content": "In the sidebar on the right, choose ",
"textStyle": {}
}
},
{
"endIndex": 75780,
"startIndex": 75767,
"textRun": {
"content": "Add principal",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 75782,
"startIndex": 75780,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 75731
},
{
"endIndex": 75902,
"paragraph": {
"bullet": {
"listId": "kix.pltqaannoum0",
"textStyle": {}
},
"elements": [
{
"endIndex": 75792,
"startIndex": 75782,
"textRun": {
"content": "Here, add ",
"textStyle": {}
}
},
{
"endIndex": 75854,
"startIndex": 75792,
"textRun": {
"content": "[email protected]",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 75881,
"startIndex": 75854,
"textRun": {
"content": ", and grant it the role of ",
"textStyle": {}
}
},
{
"endIndex": 75898,
"startIndex": 75881,
"textRun": {
"content": "Pub/Sub Publisher",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 75900,
"startIndex": 75898,
"textRun": {
"content": ".\u000b",
"textStyle": {}
}
},
{
"endIndex": 75901,
"inlineObjectElement": {
"inlineObjectId": "kix.1bvcn5cpml5v",
"textStyle": {}
},
"startIndex": 75900
},
{
"endIndex": 75902,
"startIndex": 75901,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 75782
},
{
"endIndex": 75931,
"paragraph": {
"bullet": {
"listId": "kix.pltqaannoum0",
"textStyle": {}
},
"elements": [
{
"endIndex": 75931,
"startIndex": 75902,
"textRun": {
"content": "Save the permission changes.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 75902
},
{
"endIndex": 75985,
"paragraph": {
"bullet": {
"listId": "kix.pltqaannoum0",
"textStyle": {}
},
"elements": [
{
"endIndex": 75940,
"startIndex": 75931,
"textRun": {
"content": "Copy the ",
"textStyle": {}
}
},
{
"endIndex": 75950,
"startIndex": 75940,
"textRun": {
"content": "Topic name",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 75985,
"startIndex": 75950,
"textRun": {
"content": " of the topic youβve just created.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 75931
},
{
"endIndex": 76058,
"paragraph": {
"bullet": {
"listId": "kix.pltqaannoum0",
"textStyle": {}
},
"elements": [
{
"endIndex": 76043,
"startIndex": 75985,
"textRun": {
"content": "Open the Play Console again, and choose your app from the ",
"textStyle": {}
}
},
{
"endIndex": 76051,
"startIndex": 76043,
"textRun": {
"content": "All Apps",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 76058,
"startIndex": 76051,
"textRun": {
"content": " list.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 75985
},
{
"endIndex": 76111,
"paragraph": {
"bullet": {
"listId": "kix.pltqaannoum0",
"textStyle": {}
},
"elements": [
{
"endIndex": 76080,
"startIndex": 76058,
"textRun": {
"content": "Scroll down and go to ",
"textStyle": {}
}
},
{
"endIndex": 76109,
"startIndex": 76080,
"textRun": {
"content": "Monetize > Monetization Setup",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 76111,
"startIndex": 76109,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 76058
},
{
"endIndex": 76160,
"paragraph": {
"bullet": {
"listId": "kix.pltqaannoum0",
"textStyle": {}
},
"elements": [
{
"endIndex": 76158,
"startIndex": 76111,
"textRun": {
"content": "Fill in the full topic and save your changes. \u000b",
"textStyle": {}
}
},
{
"endIndex": 76159,
"inlineObjectElement": {
"inlineObjectId": "kix.30fj9inmygy5",
"textStyle": {}
},
"startIndex": 76158
},
{
"endIndex": 76160,
"startIndex": 76159,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 76111
},
{
"endIndex": 76227,
"paragraph": {
"elements": [
{
"endIndex": 76226,
"startIndex": 76160,
"textRun": {
"content": "All Google Play billing events will now be published on the topic.",
"textStyle": {}
}
},
{
"endIndex": 76227,
"startIndex": 76226,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 76160
},
{
"endIndex": 76228,
"paragraph": {
"elements": [
{
"endIndex": 76228,
"startIndex": 76227,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.59om19b6p0vr",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 76227
},
{
"endIndex": 76261,
"paragraph": {
"elements": [
{
"endIndex": 76261,
"startIndex": 76228,
"textRun": {
"content": "Process App Store billing events\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.cbs9z18fhfqs",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 76228
},
{
"endIndex": 76262,
"paragraph": {
"elements": [
{
"endIndex": 76262,
"startIndex": 76261,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 76261
},
{
"endIndex": 76672,
"paragraph": {
"elements": [
{
"endIndex": 76672,
"startIndex": 76262,
"textRun": {
"content": "Next, do the same for the App Store billing events. There are two effective ways to implement handling updates in purchases for the App Store. One is by implementing a webhook that you provide to Apple and they use to communicate with your server. The second way, which is the one you will find in this codelab, is by connecting to the App Store Server API and obtaining the subscription information manually.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 76262
},
{
"endIndex": 76673,
"paragraph": {
"elements": [
{
"endIndex": 76673,
"startIndex": 76672,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 76672
},
{
"endIndex": 76831,
"paragraph": {
"elements": [
{
"endIndex": 76831,
"startIndex": 76673,
"textRun": {
"content": "The reason why this codelab focuses on the second solution is because you would have to expose your server to the Internet in order to implement the webhook.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 76673
},
{
"endIndex": 76832,
"paragraph": {
"elements": [
{
"endIndex": 76832,
"startIndex": 76831,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 76831
},
{
"endIndex": 77041,
"paragraph": {
"elements": [
{
"endIndex": 77041,
"startIndex": 76832,
"textRun": {
"content": "In a production environment, ideally you would like to have both. The webhook to obtain events from the App Store, and the Server API in case you missed an event or need to double check a subscription status.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 76832
},
{
"endIndex": 77042,
"paragraph": {
"elements": [
{
"endIndex": 77042,
"startIndex": 77041,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 77041
},
{
"endIndex": 77144,
"paragraph": {
"elements": [
{
"endIndex": 77062,
"startIndex": 77042,
"textRun": {
"content": "Start by opening up ",
"textStyle": {}
}
},
{
"endIndex": 77097,
"startIndex": 77062,
"textRun": {
"content": "lib/app_store_purchase_handler.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 77144,
"startIndex": 77097,
"textRun": {
"content": ", and adding the AppStoreServerAPI dependency:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 77042
},
{
"endIndex": 77181,
"paragraph": {
"elements": [
{
"endIndex": 77145,
"startIndex": 77144,
"textRun": {
"content": "\u000b",
"textStyle": {}
}
},
{
"endIndex": 77180,
"startIndex": 77145,
"textRun": {
"content": "lib/app_store_purchase_handler.dart",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 12.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/dart-backend/lib/app_store_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 77181,
"startIndex": 77180,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 77144
},
{
"endIndex": 77311,
"startIndex": 77181,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 77310,
"startIndex": 77182,
"tableCells": [
{
"content": [
{
"endIndex": 77227,
"paragraph": {
"elements": [
{
"endIndex": 77227,
"startIndex": 77184,
"textRun": {
"content": "final AppStoreServerAPI appStoreServerAPI;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77184
},
{
"endIndex": 77228,
"paragraph": {
"elements": [
{
"endIndex": 77228,
"startIndex": 77227,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77227
},
{
"endIndex": 77253,
"paragraph": {
"elements": [
{
"endIndex": 77253,
"startIndex": 77228,
"textRun": {
"content": "AppStorePurchaseHandler(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77228
},
{
"endIndex": 77275,
"paragraph": {
"elements": [
{
"endIndex": 77275,
"startIndex": 77253,
"textRun": {
"content": " this.iapRepository,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77253
},
{
"endIndex": 77308,
"paragraph": {
"elements": [
{
"endIndex": 77308,
"startIndex": 77275,
"textRun": {
"content": " this.appStoreServerAPI, // new\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77275
},
{
"endIndex": 77310,
"paragraph": {
"elements": [
{
"endIndex": 77310,
"startIndex": 77308,
"textRun": {
"content": ")\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77308
}
],
"endIndex": 77310,
"startIndex": 77183,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 77312,
"paragraph": {
"elements": [
{
"endIndex": 77312,
"startIndex": 77311,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 77311
},
{
"endIndex": 77510,
"paragraph": {
"elements": [
{
"endIndex": 77372,
"startIndex": 77312,
"textRun": {
"content": "Modify the constructor to add a timer that will call to the ",
"textStyle": {}
}
},
{
"endIndex": 77383,
"startIndex": 77372,
"textRun": {
"content": "_pullStatus",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 77423,
"startIndex": 77383,
"textRun": {
"content": " method. This timer will be calling the ",
"textStyle": {}
}
},
{
"endIndex": 77434,
"startIndex": 77423,
"textRun": {
"content": "_pullStatus",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 77510,
"startIndex": 77434,
"textRun": {
"content": " method every 10 seconds. You can adjust this timer duration to your needs.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 77312
},
{
"endIndex": 77511,
"paragraph": {
"elements": [
{
"endIndex": 77511,
"startIndex": 77510,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 77510
},
{
"endIndex": 77547,
"paragraph": {
"elements": [
{
"endIndex": 77546,
"startIndex": 77511,
"textRun": {
"content": "lib/app_store_purchase_handler.dart",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 12.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/dart-backend/lib/app_store_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 77547,
"startIndex": 77546,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 77511
},
{
"endIndex": 77767,
"startIndex": 77547,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 77766,
"startIndex": 77548,
"tableCells": [
{
"content": [
{
"endIndex": 77577,
"paragraph": {
"elements": [
{
"endIndex": 77577,
"startIndex": 77550,
"textRun": {
"content": " AppStorePurchaseHandler(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77550
},
{
"endIndex": 77601,
"paragraph": {
"elements": [
{
"endIndex": 77601,
"startIndex": 77577,
"textRun": {
"content": " this.iapRepository,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77577
},
{
"endIndex": 77629,
"paragraph": {
"elements": [
{
"endIndex": 77629,
"startIndex": 77601,
"textRun": {
"content": " this.appStoreServerAPI,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77601
},
{
"endIndex": 77635,
"paragraph": {
"elements": [
{
"endIndex": 77635,
"startIndex": 77629,
"textRun": {
"content": " ) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77629
},
{
"endIndex": 77685,
"paragraph": {
"elements": [
{
"endIndex": 77685,
"startIndex": 77635,
"textRun": {
"content": " // Poll Subscription status every 10 seconds.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77635
},
{
"endIndex": 77733,
"paragraph": {
"elements": [
{
"endIndex": 77733,
"startIndex": 77685,
"textRun": {
"content": " Timer.periodic(Duration(seconds: 10), (_) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77685
},
{
"endIndex": 77754,
"paragraph": {
"elements": [
{
"endIndex": 77754,
"startIndex": 77733,
"textRun": {
"content": " _pullStatus();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77733
},
{
"endIndex": 77762,
"paragraph": {
"elements": [
{
"endIndex": 77762,
"startIndex": 77754,
"textRun": {
"content": " });\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77754
},
{
"endIndex": 77766,
"paragraph": {
"elements": [
{
"endIndex": 77766,
"startIndex": 77762,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77762
}
],
"endIndex": 77766,
"startIndex": 77549,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 77768,
"paragraph": {
"elements": [
{
"endIndex": 77768,
"startIndex": 77767,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 77767
},
{
"endIndex": 77816,
"paragraph": {
"elements": [
{
"endIndex": 77816,
"startIndex": 77768,
"textRun": {
"content": "Then, create the _pullStatus method as follows:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 77768
},
{
"endIndex": 77817,
"paragraph": {
"elements": [
{
"endIndex": 77817,
"startIndex": 77816,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 77816
},
{
"endIndex": 77853,
"paragraph": {
"elements": [
{
"endIndex": 77852,
"startIndex": 77817,
"textRun": {
"content": "lib/app_store_purchase_handler.dart",
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 12.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/dart-backend/lib/app_store_purchase_handler.dart"
},
"underline": true
}
}
},
{
"endIndex": 77853,
"startIndex": 77852,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 77817
},
{
"endIndex": 79614,
"startIndex": 77853,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 79613,
"startIndex": 77854,
"tableCells": [
{
"content": [
{
"endIndex": 77893,
"paragraph": {
"elements": [
{
"endIndex": 77893,
"startIndex": 77856,
"textRun": {
"content": " Future<void> _pullStatus() async {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77856
},
{
"endIndex": 77925,
"paragraph": {
"elements": [
{
"endIndex": 77925,
"startIndex": 77893,
"textRun": {
"content": " print('Polling App Store');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77893
},
{
"endIndex": 77983,
"paragraph": {
"elements": [
{
"endIndex": 77983,
"startIndex": 77925,
"textRun": {
"content": " final purchases = await iapRepository.getPurchases();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77925
},
{
"endIndex": 78025,
"paragraph": {
"elements": [
{
"endIndex": 78025,
"startIndex": 77983,
"textRun": {
"content": " // filter for App Store subscriptions\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 77983
},
{
"endIndex": 78088,
"paragraph": {
"elements": [
{
"endIndex": 78088,
"startIndex": 78025,
"textRun": {
"content": " final appStoreSubscriptions = purchases.where((element) =>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78025
},
{
"endIndex": 78140,
"paragraph": {
"elements": [
{
"endIndex": 78140,
"startIndex": 78088,
"textRun": {
"content": " element.type == ProductType.subscription &&\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78088
},
{
"endIndex": 78190,
"paragraph": {
"elements": [
{
"endIndex": 78190,
"startIndex": 78140,
"textRun": {
"content": " element.iapSource == IAPSource.appstore);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78140
},
{
"endIndex": 78242,
"paragraph": {
"elements": [
{
"endIndex": 78242,
"startIndex": 78190,
"textRun": {
"content": " for (final purchase in appStoreSubscriptions) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78190
},
{
"endIndex": 78263,
"paragraph": {
"elements": [
{
"endIndex": 78263,
"startIndex": 78242,
"textRun": {
"content": " final status =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78242
},
{
"endIndex": 78343,
"paragraph": {
"elements": [
{
"endIndex": 78343,
"startIndex": 78263,
"textRun": {
"content": " await appStoreServerAPI.getAllSubscriptionStatuses(purchase.orderId);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78263
},
{
"endIndex": 78395,
"paragraph": {
"elements": [
{
"endIndex": 78395,
"startIndex": 78343,
"textRun": {
"content": " // Obtain all subscriptions for the order id.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78343
},
{
"endIndex": 78443,
"paragraph": {
"elements": [
{
"endIndex": 78443,
"startIndex": 78395,
"textRun": {
"content": " for (final subscription in status.data) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78395
},
{
"endIndex": 78505,
"paragraph": {
"elements": [
{
"endIndex": 78505,
"startIndex": 78443,
"textRun": {
"content": " // Last transaction contains the subscription status.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78443
},
{
"endIndex": 78572,
"paragraph": {
"elements": [
{
"endIndex": 78572,
"startIndex": 78505,
"textRun": {
"content": " for (final transaction in subscription.lastTransactions) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78505
},
{
"endIndex": 78642,
"paragraph": {
"elements": [
{
"endIndex": 78642,
"startIndex": 78572,
"textRun": {
"content": " final expirationDate = DateTime.fromMillisecondsSinceEpoch(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78572
},
{
"endIndex": 78703,
"paragraph": {
"elements": [
{
"endIndex": 78703,
"startIndex": 78642,
"textRun": {
"content": " transaction.transactionInfo.expiresDate ?? 0);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78642
},
{
"endIndex": 78751,
"paragraph": {
"elements": [
{
"endIndex": 78751,
"startIndex": 78703,
"textRun": {
"content": " // Check if subscription has expired.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78703
},
{
"endIndex": 78820,
"paragraph": {
"elements": [
{
"endIndex": 78820,
"startIndex": 78751,
"textRun": {
"content": " final isExpired = expirationDate.isBefore(DateTime.now());\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78751
},
{
"endIndex": 78897,
"paragraph": {
"elements": [
{
"endIndex": 78897,
"startIndex": 78820,
"textRun": {
"content": " print('Expiration Date: $expirationDate - isExpired: $isExpired');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78820
},
{
"endIndex": 78982,
"paragraph": {
"elements": [
{
"endIndex": 78982,
"startIndex": 78897,
"textRun": {
"content": " // Update the subscription status with the new expiration date and status.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78897
},
{
"endIndex": 79049,
"paragraph": {
"elements": [
{
"endIndex": 79049,
"startIndex": 78982,
"textRun": {
"content": " await iapRepository.updatePurchase(SubscriptionPurchase(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 78982
},
{
"endIndex": 79075,
"paragraph": {
"elements": [
{
"endIndex": 79075,
"startIndex": 79049,
"textRun": {
"content": " userId: null,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79049
},
{
"endIndex": 79137,
"paragraph": {
"elements": [
{
"endIndex": 79137,
"startIndex": 79075,
"textRun": {
"content": " productId: transaction.transactionInfo.productId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79075
},
{
"endIndex": 79180,
"paragraph": {
"elements": [
{
"endIndex": 79180,
"startIndex": 79137,
"textRun": {
"content": " iapSource: IAPSource.appstore,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79137
},
{
"endIndex": 79236,
"paragraph": {
"elements": [
{
"endIndex": 79236,
"startIndex": 79180,
"textRun": {
"content": " orderId: transaction.originalTransactionId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79180
},
{
"endIndex": 79299,
"paragraph": {
"elements": [
{
"endIndex": 79299,
"startIndex": 79236,
"textRun": {
"content": " purchaseDate: DateTime.fromMillisecondsSinceEpoch(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79236
},
{
"endIndex": 79366,
"paragraph": {
"elements": [
{
"endIndex": 79366,
"startIndex": 79299,
"textRun": {
"content": " transaction.transactionInfo.originalPurchaseDate),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79299
},
{
"endIndex": 79410,
"paragraph": {
"elements": [
{
"endIndex": 79410,
"startIndex": 79366,
"textRun": {
"content": " type: ProductType.subscription,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79366
},
{
"endIndex": 79450,
"paragraph": {
"elements": [
{
"endIndex": 79450,
"startIndex": 79410,
"textRun": {
"content": " expiryDate: expirationDate,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79410
},
{
"endIndex": 79480,
"paragraph": {
"elements": [
{
"endIndex": 79480,
"startIndex": 79450,
"textRun": {
"content": " status: isExpired\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79450
},
{
"endIndex": 79525,
"paragraph": {
"elements": [
{
"endIndex": 79525,
"startIndex": 79480,
"textRun": {
"content": " ? SubscriptionStatus.expired\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79480
},
{
"endIndex": 79570,
"paragraph": {
"elements": [
{
"endIndex": 79570,
"startIndex": 79525,
"textRun": {
"content": " : SubscriptionStatus.active,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79525
},
{
"endIndex": 79584,
"paragraph": {
"elements": [
{
"endIndex": 79584,
"startIndex": 79570,
"textRun": {
"content": " ));\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79570
},
{
"endIndex": 79594,
"paragraph": {
"elements": [
{
"endIndex": 79594,
"startIndex": 79584,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79584
},
{
"endIndex": 79602,
"paragraph": {
"elements": [
{
"endIndex": 79602,
"startIndex": 79594,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79594
},
{
"endIndex": 79608,
"paragraph": {
"elements": [
{
"endIndex": 79608,
"startIndex": 79602,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79602
},
{
"endIndex": 79612,
"paragraph": {
"elements": [
{
"endIndex": 79612,
"startIndex": 79608,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79608
},
{
"endIndex": 79613,
"paragraph": {
"elements": [
{
"endIndex": 79613,
"startIndex": 79612,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79612
}
],
"endIndex": 79613,
"startIndex": 77855,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 79615,
"paragraph": {
"elements": [
{
"endIndex": 79615,
"startIndex": 79614,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 79614
},
{
"endIndex": 79645,
"paragraph": {
"elements": [
{
"endIndex": 79645,
"startIndex": 79615,
"textRun": {
"content": "This method works as follow: \n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 79615
},
{
"endIndex": 79726,
"paragraph": {
"bullet": {
"listId": "kix.nvpgk8rs848i",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 79726,
"startIndex": 79645,
"textRun": {
"content": "Obtains the list of active subscriptions from Firestore using the IapRepository.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79645
},
{
"endIndex": 79807,
"paragraph": {
"bullet": {
"listId": "kix.nvpgk8rs848i",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 79807,
"startIndex": 79726,
"textRun": {
"content": "For each order, it requests the subscription status to the App Store Server API.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79726
},
{
"endIndex": 79868,
"paragraph": {
"bullet": {
"listId": "kix.nvpgk8rs848i",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 79868,
"startIndex": 79807,
"textRun": {
"content": "Obtains the last transaction for that subscription purchase.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79807
},
{
"endIndex": 79896,
"paragraph": {
"bullet": {
"listId": "kix.nvpgk8rs848i",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 79896,
"startIndex": 79868,
"textRun": {
"content": "Checks the expiration date.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79868
},
{
"endIndex": 79986,
"paragraph": {
"bullet": {
"listId": "kix.nvpgk8rs848i",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 79986,
"startIndex": 79896,
"textRun": {
"content": "Updates the subscription status on Firestore, if it is expired it will be marked as such.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79896
},
{
"endIndex": 79987,
"paragraph": {
"elements": [
{
"endIndex": 79987,
"startIndex": 79986,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 79986
},
{
"endIndex": 79988,
"paragraph": {
"elements": [
{
"endIndex": 79988,
"startIndex": 79987,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 79987
},
{
"endIndex": 80275,
"startIndex": 79988,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 80274,
"startIndex": 79989,
"tableCells": [
{
"content": [
{
"endIndex": 80274,
"paragraph": {
"elements": [
{
"endIndex": 79996,
"startIndex": 79991,
"textRun": {
"content": "Note:",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 80274,
"startIndex": 79996,
"textRun": {
"content": " This codelab is presented as a basic example for handling expiring subscriptions. In a production environment, you will have to handle different types of events like renewals, cancellations, offers, etc. As well, you should implement the event webhook as recommended by Apple.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 79991
}
],
"endIndex": 80274,
"startIndex": 79990,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.8039216,
"green": 0.8980392,
"red": 0.9882353
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 80276,
"paragraph": {
"elements": [
{
"endIndex": 80276,
"startIndex": 80275,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 80275
},
{
"endIndex": 80359,
"paragraph": {
"elements": [
{
"endIndex": 80359,
"startIndex": 80276,
"textRun": {
"content": "\u000bFinally, add all the necessary code to configure the App Store Server API access:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 80276
},
{
"endIndex": 80375,
"paragraph": {
"elements": [
{
"endIndex": 80374,
"startIndex": 80359,
"textRun": {
"content": "bin/server.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/dart-backend/bin/server.dart"
},
"underline": true
}
}
},
{
"endIndex": 80375,
"startIndex": 80374,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.hox2bo38k8ju",
"namedStyleType": "HEADING_3"
}
},
"startIndex": 80359
},
{
"endIndex": 81428,
"startIndex": 80375,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 81427,
"startIndex": 80376,
"tableCells": [
{
"content": [
{
"endIndex": 80397,
"paragraph": {
"elements": [
{
"endIndex": 80397,
"startIndex": 80378,
"textRun": {
"content": " // add from here\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80378
},
{
"endIndex": 80431,
"paragraph": {
"elements": [
{
"endIndex": 80431,
"startIndex": 80397,
"textRun": {
"content": " final subscriptionKeyAppStore =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80397
},
{
"endIndex": 80491,
"paragraph": {
"elements": [
{
"endIndex": 80491,
"startIndex": 80431,
"textRun": {
"content": " File('assets/SubscriptionKey.p8').readAsStringSync();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80431
},
{
"endIndex": 80492,
"paragraph": {
"elements": [
{
"endIndex": 80492,
"startIndex": 80491,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80491
},
{
"endIndex": 80530,
"paragraph": {
"elements": [
{
"endIndex": 80530,
"startIndex": 80492,
"textRun": {
"content": " // Configure Apple Store API access\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80492
},
{
"endIndex": 80587,
"paragraph": {
"elements": [
{
"endIndex": 80587,
"startIndex": 80530,
"textRun": {
"content": " var appStoreEnvironment = AppStoreEnvironment.sandbox(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80530
},
{
"endIndex": 80611,
"paragraph": {
"elements": [
{
"endIndex": 80611,
"startIndex": 80587,
"textRun": {
"content": " bundleId: bundleId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80587
},
{
"endIndex": 80643,
"paragraph": {
"elements": [
{
"endIndex": 80643,
"startIndex": 80611,
"textRun": {
"content": " issuerId: appStoreIssuerId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80611
},
{
"endIndex": 80669,
"paragraph": {
"elements": [
{
"endIndex": 80669,
"startIndex": 80643,
"textRun": {
"content": " keyId: appStoreKeyId,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80643
},
{
"endIndex": 80710,
"paragraph": {
"elements": [
{
"endIndex": 80710,
"startIndex": 80669,
"textRun": {
"content": " privateKey: subscriptionKeyAppStore,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80669
},
{
"endIndex": 80715,
"paragraph": {
"elements": [
{
"endIndex": 80715,
"startIndex": 80710,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80710
},
{
"endIndex": 80716,
"paragraph": {
"elements": [
{
"endIndex": 80716,
"startIndex": 80715,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80715
},
{
"endIndex": 80775,
"paragraph": {
"elements": [
{
"endIndex": 80775,
"startIndex": 80716,
"textRun": {
"content": " // Stored token for Apple Store API access, if available\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80716
},
{
"endIndex": 80821,
"paragraph": {
"elements": [
{
"endIndex": 80821,
"startIndex": 80775,
"textRun": {
"content": " final file = File('assets/appstore.token');\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80775
},
{
"endIndex": 80846,
"paragraph": {
"elements": [
{
"endIndex": 80846,
"startIndex": 80821,
"textRun": {
"content": " String? appStoreToken;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80821
},
{
"endIndex": 80898,
"paragraph": {
"elements": [
{
"endIndex": 80898,
"startIndex": 80846,
"textRun": {
"content": " if (file.existsSync() && file.lengthSync() > 0) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80846
},
{
"endIndex": 80943,
"paragraph": {
"elements": [
{
"endIndex": 80943,
"startIndex": 80898,
"textRun": {
"content": " appStoreToken = file.readAsStringSync();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80898
},
{
"endIndex": 80947,
"paragraph": {
"elements": [
{
"endIndex": 80947,
"startIndex": 80943,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80943
},
{
"endIndex": 80948,
"paragraph": {
"elements": [
{
"endIndex": 80948,
"startIndex": 80947,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80947
},
{
"endIndex": 80995,
"paragraph": {
"elements": [
{
"endIndex": 80995,
"startIndex": 80948,
"textRun": {
"content": " final appStoreServerAPI = AppStoreServerAPI(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80948
},
{
"endIndex": 81025,
"paragraph": {
"elements": [
{
"endIndex": 81025,
"startIndex": 80995,
"textRun": {
"content": " AppStoreServerHttpClient(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 80995
},
{
"endIndex": 81052,
"paragraph": {
"elements": [
{
"endIndex": 81052,
"startIndex": 81025,
"textRun": {
"content": " appStoreEnvironment,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81025
},
{
"endIndex": 81078,
"paragraph": {
"elements": [
{
"endIndex": 81078,
"startIndex": 81052,
"textRun": {
"content": " jwt: appStoreToken,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81052
},
{
"endIndex": 81119,
"paragraph": {
"elements": [
{
"endIndex": 81119,
"startIndex": 81078,
"textRun": {
"content": " jwtTokenUpdatedCallback: (token) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81078
},
{
"endIndex": 81158,
"paragraph": {
"elements": [
{
"endIndex": 81158,
"startIndex": 81119,
"textRun": {
"content": " file.writeAsStringSync(token);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81119
},
{
"endIndex": 81167,
"paragraph": {
"elements": [
{
"endIndex": 81167,
"startIndex": 81158,
"textRun": {
"content": " },\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81158
},
{
"endIndex": 81174,
"paragraph": {
"elements": [
{
"endIndex": 81174,
"startIndex": 81167,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81167
},
{
"endIndex": 81179,
"paragraph": {
"elements": [
{
"endIndex": 81179,
"startIndex": 81174,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81174
},
{
"endIndex": 81192,
"paragraph": {
"elements": [
{
"endIndex": 81192,
"startIndex": 81179,
"textRun": {
"content": " // to here\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81179
},
{
"endIndex": 81193,
"paragraph": {
"elements": [
{
"endIndex": 81193,
"startIndex": 81192,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81192
},
{
"endIndex": 81194,
"paragraph": {
"elements": [
{
"endIndex": 81194,
"startIndex": 81193,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81193
},
{
"endIndex": 81205,
"paragraph": {
"elements": [
{
"endIndex": 81205,
"startIndex": 81194,
"textRun": {
"content": " return {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81194
},
{
"endIndex": 81251,
"paragraph": {
"elements": [
{
"endIndex": 81251,
"startIndex": 81205,
"textRun": {
"content": " 'google_play': GooglePlayPurchaseHandler(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81205
},
{
"endIndex": 81275,
"paragraph": {
"elements": [
{
"endIndex": 81275,
"startIndex": 81251,
"textRun": {
"content": " androidPublisher,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81251
},
{
"endIndex": 81296,
"paragraph": {
"elements": [
{
"endIndex": 81296,
"startIndex": 81275,
"textRun": {
"content": " iapRepository,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81275
},
{
"endIndex": 81313,
"paragraph": {
"elements": [
{
"endIndex": 81313,
"startIndex": 81296,
"textRun": {
"content": " pubsubApi,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81296
},
{
"endIndex": 81320,
"paragraph": {
"elements": [
{
"endIndex": 81320,
"startIndex": 81313,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81313
},
{
"endIndex": 81362,
"paragraph": {
"elements": [
{
"endIndex": 81362,
"startIndex": 81320,
"textRun": {
"content": " 'app_store': AppStorePurchaseHandler(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81320
},
{
"endIndex": 81383,
"paragraph": {
"elements": [
{
"endIndex": 81383,
"startIndex": 81362,
"textRun": {
"content": " iapRepository,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81362
},
{
"endIndex": 81415,
"paragraph": {
"elements": [
{
"endIndex": 81415,
"startIndex": 81383,
"textRun": {
"content": " appStoreServerAPI, // new\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81383
},
{
"endIndex": 81422,
"paragraph": {
"elements": [
{
"endIndex": 81422,
"startIndex": 81415,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81415
},
{
"endIndex": 81427,
"paragraph": {
"elements": [
{
"endIndex": 81427,
"startIndex": 81422,
"textRun": {
"content": " };\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81422
}
],
"endIndex": 81427,
"startIndex": 80377,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 81429,
"paragraph": {
"elements": [
{
"endIndex": 81429,
"startIndex": 81428,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 81428
},
{
"endIndex": 81445,
"paragraph": {
"elements": [
{
"endIndex": 81445,
"startIndex": 81429,
"textRun": {
"content": "App Store setup\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.easdahjt03hd",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 81429
},
{
"endIndex": 81446,
"paragraph": {
"elements": [
{
"endIndex": 81446,
"startIndex": 81445,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 81445
},
{
"endIndex": 81474,
"paragraph": {
"elements": [
{
"endIndex": 81474,
"startIndex": 81446,
"textRun": {
"content": "Next, set up the App Store:\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 81446
},
{
"endIndex": 81475,
"paragraph": {
"elements": [
{
"endIndex": 81475,
"startIndex": 81474,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 81474
},
{
"endIndex": 81533,
"paragraph": {
"bullet": {
"listId": "kix.dvi16evrie1w",
"textStyle": {}
},
"elements": [
{
"endIndex": 81485,
"startIndex": 81475,
"textRun": {
"content": "Log in to ",
"textStyle": {}
}
},
{
"endIndex": 81502,
"startIndex": 81485,
"textRun": {
"content": "App Store Connect",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://appstoreconnect.apple.com/"
},
"underline": true
}
}
},
{
"endIndex": 81515,
"startIndex": 81502,
"textRun": {
"content": ", and select ",
"textStyle": {}
}
},
{
"endIndex": 81531,
"startIndex": 81515,
"textRun": {
"content": "Users and Access",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 81533,
"startIndex": 81531,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81475
},
{
"endIndex": 81567,
"paragraph": {
"bullet": {
"listId": "kix.dvi16evrie1w",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 81538,
"startIndex": 81533,
"textRun": {
"content": "Go to",
"textStyle": {}
}
},
{
"endIndex": 81565,
"startIndex": 81538,
"textRun": {
"content": " Key Type > In-App Purchase",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 81567,
"startIndex": 81565,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81533
},
{
"endIndex": 81608,
"paragraph": {
"bullet": {
"listId": "kix.dvi16evrie1w",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 81608,
"startIndex": 81567,
"textRun": {
"content": "Tap on the βplusβ icon to add a new one.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81567
},
{
"endIndex": 81644,
"paragraph": {
"bullet": {
"listId": "kix.dvi16evrie1w",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 81644,
"startIndex": 81608,
"textRun": {
"content": "Give it a name, e.g. βCodelab keyβ.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81608
},
{
"endIndex": 81685,
"paragraph": {
"bullet": {
"listId": "kix.dvi16evrie1w",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 81685,
"startIndex": 81644,
"textRun": {
"content": "Download the p8 file containing the key.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81644
},
{
"endIndex": 81749,
"paragraph": {
"bullet": {
"listId": "kix.dvi16evrie1w",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 81729,
"startIndex": 81685,
"textRun": {
"content": "Copy it to the assets folder, with the name ",
"textStyle": {}
}
},
{
"endIndex": 81747,
"startIndex": 81729,
"textRun": {
"content": "SubscriptionKey.p8",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 81749,
"startIndex": 81747,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81685
},
{
"endIndex": 81861,
"paragraph": {
"bullet": {
"listId": "kix.dvi16evrie1w",
"textStyle": {
"underline": false
}
},
"elements": [
{
"endIndex": 81806,
"startIndex": 81749,
"textRun": {
"content": "Copy the key ID from the newly created key and set it to ",
"textStyle": {}
}
},
{
"endIndex": 81819,
"startIndex": 81806,
"textRun": {
"content": "appStoreKeyId",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 81835,
"startIndex": 81819,
"textRun": {
"content": " constant in the",
"textStyle": {}
}
},
{
"endIndex": 81854,
"startIndex": 81835,
"textRun": {
"content": " lib/constants.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 81861,
"startIndex": 81854,
"textRun": {
"content": " file.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81749
},
{
"endIndex": 81987,
"paragraph": {
"bullet": {
"listId": "kix.dvi16evrie1w",
"textStyle": {}
},
"elements": [
{
"endIndex": 81929,
"startIndex": 81861,
"textRun": {
"content": "Copy the Issuer ID right at the top of the keys list, and set it to ",
"textStyle": {}
}
},
{
"endIndex": 81945,
"startIndex": 81929,
"textRun": {
"content": "appStoreIssuerId",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 81961,
"startIndex": 81945,
"textRun": {
"content": " constant in the",
"textStyle": {}
}
},
{
"endIndex": 81980,
"startIndex": 81961,
"textRun": {
"content": " lib/constants.dart",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 81986,
"startIndex": 81980,
"textRun": {
"content": " file.",
"textStyle": {}
}
},
{
"endIndex": 81987,
"startIndex": 81986,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81861
},
{
"endIndex": 81988,
"paragraph": {
"elements": [
{
"endIndex": 81988,
"startIndex": 81987,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 81987
},
{
"endIndex": 82128,
"startIndex": 81988,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 82127,
"startIndex": 81989,
"tableCells": [
{
"content": [
{
"endIndex": 82127,
"paragraph": {
"elements": [
{
"endIndex": 81996,
"startIndex": 81991,
"textRun": {
"content": "Note:",
"textStyle": {
"bold": true
}
}
},
{
"endIndex": 82127,
"startIndex": 81996,
"textRun": {
"content": " The generated key can only be downloaded once, create a new one if you lose it. Never share your App Store Server API key online.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 81991
}
],
"endIndex": 82127,
"startIndex": 81990,
"tableCellStyle": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 0.8039216,
"green": 0.8980392,
"red": 0.9882353
}
}
},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 82129,
"paragraph": {
"elements": [
{
"endIndex": 82129,
"startIndex": 82128,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 82128
},
{
"endIndex": 82131,
"paragraph": {
"elements": [
{
"endIndex": 82130,
"inlineObjectElement": {
"inlineObjectId": "kix.uca4yzl4krz9",
"textStyle": {}
},
"startIndex": 82129
},
{
"endIndex": 82131,
"startIndex": 82130,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT"
}
},
"startIndex": 82129
},
{
"endIndex": 82132,
"paragraph": {
"elements": [
{
"endIndex": 82132,
"startIndex": 82131,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 82131
},
{
"endIndex": 82162,
"paragraph": {
"elements": [
{
"endIndex": 82162,
"startIndex": 82132,
"textRun": {
"content": "Track purchases on the device\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.iuugivjoy0l3",
"namedStyleType": "HEADING_2",
"pageBreakBefore": false
}
},
"startIndex": 82132
},
{
"endIndex": 82163,
"paragraph": {
"elements": [
{
"endIndex": 82163,
"startIndex": 82162,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 82162
},
{
"endIndex": 82515,
"paragraph": {
"elements": [
{
"endIndex": 82515,
"startIndex": 82163,
"textRun": {
"content": "The most secure way to track your purchases is on the server side because the client is hard to secure, but you need to have some way to get the information back to the client so the app can act on the subscription status information. By storing the purchases in Firestore, you can easily sync the data to the client and keep it updated automatically.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 82163
},
{
"endIndex": 82516,
"paragraph": {
"elements": [
{
"endIndex": 82516,
"startIndex": 82515,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 82515
},
{
"endIndex": 82887,
"paragraph": {
"elements": [
{
"endIndex": 82541,
"startIndex": 82516,
"textRun": {
"content": "You already included the ",
"textStyle": {}
}
},
{
"endIndex": 82548,
"startIndex": 82541,
"textRun": {
"content": "IAPRepo",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/app/lib/repo/iap_repo.dart"
},
"underline": true
}
}
},
{
"endIndex": 82645,
"startIndex": 82548,
"textRun": {
"content": " in the app, which is the Firestore repository that contains all of the userβs purchase data in ",
"textStyle": {}
}
},
{
"endIndex": 82673,
"startIndex": 82645,
"textRun": {
"content": "List<PastPurchase> purchases",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 82704,
"startIndex": 82673,
"textRun": {
"content": ". The repository also contains ",
"textStyle": {}
}
},
{
"endIndex": 82726,
"startIndex": 82704,
"textRun": {
"content": "hasActiveSubscription,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 82771,
"startIndex": 82726,
"textRun": {
"content": " which is true when there is a purchase with ",
"textStyle": {}
}
},
{
"endIndex": 82801,
"startIndex": 82771,
"textRun": {
"content": "productId storeKeySubscription",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 82887,
"startIndex": 82801,
"textRun": {
"content": " with a status that is not expired. When the user isnβt logged in, the list is empty.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 82516
},
{
"endIndex": 82910,
"paragraph": {
"elements": [
{
"endIndex": 82909,
"startIndex": 82887,
"textRun": {
"content": "lib/repo/iap_repo.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/app/lib/repo/iap_repo.dart#L40-L70"
},
"underline": true
}
}
},
{
"endIndex": 82910,
"startIndex": 82909,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.xgm7m0la00z6",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 82887
},
{
"endIndex": 83793,
"startIndex": 82910,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 83792,
"startIndex": 82911,
"tableCells": [
{
"content": [
{
"endIndex": 82940,
"paragraph": {
"elements": [
{
"endIndex": 82940,
"startIndex": 82913,
"textRun": {
"content": " void updatePurchases() {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 82913
},
{
"endIndex": 82977,
"paragraph": {
"elements": [
{
"endIndex": 82977,
"startIndex": 82940,
"textRun": {
"content": " _purchaseSubscription?.cancel();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 82940
},
{
"endIndex": 82999,
"paragraph": {
"elements": [
{
"endIndex": 82999,
"startIndex": 82977,
"textRun": {
"content": " var user = _user;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 82977
},
{
"endIndex": 83023,
"paragraph": {
"elements": [
{
"endIndex": 83023,
"startIndex": 82999,
"textRun": {
"content": " if (user == null) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 82999
},
{
"endIndex": 83045,
"paragraph": {
"elements": [
{
"endIndex": 83045,
"startIndex": 83023,
"textRun": {
"content": " purchases = [];\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83023
},
{
"endIndex": 83082,
"paragraph": {
"elements": [
{
"endIndex": 83082,
"startIndex": 83045,
"textRun": {
"content": " hasActiveSubscription = false;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83045
},
{
"endIndex": 83108,
"paragraph": {
"elements": [
{
"endIndex": 83108,
"startIndex": 83082,
"textRun": {
"content": " hasUpgrade = false;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83082
},
{
"endIndex": 83122,
"paragraph": {
"elements": [
{
"endIndex": 83122,
"startIndex": 83108,
"textRun": {
"content": " return;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83108
},
{
"endIndex": 83128,
"paragraph": {
"elements": [
{
"endIndex": 83128,
"startIndex": 83122,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83122
},
{
"endIndex": 83164,
"paragraph": {
"elements": [
{
"endIndex": 83164,
"startIndex": 83128,
"textRun": {
"content": " var purchaseStream = _firestore\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83128
},
{
"endIndex": 83197,
"paragraph": {
"elements": [
{
"endIndex": 83197,
"startIndex": 83164,
"textRun": {
"content": " .collection('purchases')\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83164
},
{
"endIndex": 83243,
"paragraph": {
"elements": [
{
"endIndex": 83243,
"startIndex": 83197,
"textRun": {
"content": " .where('userId', isEqualTo: user.uid)\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83197
},
{
"endIndex": 83265,
"paragraph": {
"elements": [
{
"endIndex": 83265,
"startIndex": 83243,
"textRun": {
"content": " .snapshots();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83243
},
{
"endIndex": 83328,
"paragraph": {
"elements": [
{
"endIndex": 83328,
"startIndex": 83265,
"textRun": {
"content": " _purchaseSubscription = purchaseStream.listen((snapshot) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83265
},
{
"endIndex": 83394,
"paragraph": {
"elements": [
{
"endIndex": 83394,
"startIndex": 83328,
"textRun": {
"content": " purchases = snapshot.docs.map((DocumentSnapshot document) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83328
},
{
"endIndex": 83430,
"paragraph": {
"elements": [
{
"endIndex": 83430,
"startIndex": 83394,
"textRun": {
"content": " var data = document.data();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83394
},
{
"endIndex": 83474,
"paragraph": {
"elements": [
{
"endIndex": 83474,
"startIndex": 83430,
"textRun": {
"content": " return PastPurchase.fromJson(data);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83430
},
{
"endIndex": 83493,
"paragraph": {
"elements": [
{
"endIndex": 83493,
"startIndex": 83474,
"textRun": {
"content": " }).toList();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83474
},
{
"endIndex": 83494,
"paragraph": {
"elements": [
{
"endIndex": 83494,
"startIndex": 83493,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83493
},
{
"endIndex": 83551,
"paragraph": {
"elements": [
{
"endIndex": 83551,
"startIndex": 83494,
"textRun": {
"content": " hasActiveSubscription = purchases.any((element) =>\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83494
},
{
"endIndex": 83606,
"paragraph": {
"elements": [
{
"endIndex": 83606,
"startIndex": 83551,
"textRun": {
"content": " element.productId == storeKeySubscription &&\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83551
},
{
"endIndex": 83651,
"paragraph": {
"elements": [
{
"endIndex": 83651,
"startIndex": 83606,
"textRun": {
"content": " element.status != Status.expired);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83606
},
{
"endIndex": 83652,
"paragraph": {
"elements": [
{
"endIndex": 83652,
"startIndex": 83651,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83651
},
{
"endIndex": 83686,
"paragraph": {
"elements": [
{
"endIndex": 83686,
"startIndex": 83652,
"textRun": {
"content": " hasUpgrade = purchases.any(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83652
},
{
"endIndex": 83745,
"paragraph": {
"elements": [
{
"endIndex": 83745,
"startIndex": 83686,
"textRun": {
"content": " (element) => element.productId == storeKeyUpgrade,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83686
},
{
"endIndex": 83754,
"paragraph": {
"elements": [
{
"endIndex": 83754,
"startIndex": 83745,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83745
},
{
"endIndex": 83755,
"paragraph": {
"elements": [
{
"endIndex": 83755,
"startIndex": 83754,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83754
},
{
"endIndex": 83780,
"paragraph": {
"elements": [
{
"endIndex": 83780,
"startIndex": 83755,
"textRun": {
"content": " notifyListeners();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83755
},
{
"endIndex": 83788,
"paragraph": {
"elements": [
{
"endIndex": 83788,
"startIndex": 83780,
"textRun": {
"content": " });\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83780
},
{
"endIndex": 83792,
"paragraph": {
"elements": [
{
"endIndex": 83792,
"startIndex": 83788,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 83788
}
],
"endIndex": 83792,
"startIndex": 82912,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 83794,
"paragraph": {
"elements": [
{
"endIndex": 83794,
"startIndex": 83793,
"textRun": {
"content": "\n",
"textStyle": {
"bold": true
}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 83793
},
{
"endIndex": 84343,
"paragraph": {
"elements": [
{
"endIndex": 83823,
"startIndex": 83794,
"textRun": {
"content": "All purchase logic is in the ",
"textStyle": {}
}
},
{
"endIndex": 83837,
"startIndex": 83823,
"textRun": {
"content": "DashPurchases ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 83912,
"startIndex": 83837,
"textRun": {
"content": "class and is where subscriptions should be applied or removed. So, add the ",
"textStyle": {}
}
},
{
"endIndex": 83920,
"startIndex": 83912,
"textRun": {
"content": "iapRepo ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 83962,
"startIndex": 83920,
"textRun": {
"content": "as a property in the class and assign the ",
"textStyle": {}
}
},
{
"endIndex": 83970,
"startIndex": 83962,
"textRun": {
"content": "iapRepo ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 84072,
"startIndex": 83970,
"textRun": {
"content": "in the constructor. Next, directly add a listener in the constructor, and remove the listener in the ",
"textStyle": {}
}
},
{
"endIndex": 84081,
"startIndex": 84072,
"textRun": {
"content": "dispose()",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 84088,
"startIndex": 84081,
"textRun": {
"content": " method",
"textStyle": {}
}
},
{
"endIndex": 84156,
"startIndex": 84088,
"textRun": {
"content": ". At first, the listener can just be an empty function. Because the ",
"textStyle": {}
}
},
{
"endIndex": 84164,
"startIndex": 84156,
"textRun": {
"content": "IAPRepo ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 84169,
"startIndex": 84164,
"textRun": {
"content": "is a ",
"textStyle": {}
}
},
{
"endIndex": 84184,
"startIndex": 84169,
"textRun": {
"content": "ChangeNotifier ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 84197,
"startIndex": 84184,
"textRun": {
"content": "and you call ",
"textStyle": {}
}
},
{
"endIndex": 84214,
"startIndex": 84197,
"textRun": {
"content": "notifyListeners()",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 84265,
"startIndex": 84214,
"textRun": {
"content": " every time the purchases in Firestore change, the ",
"textStyle": {}
}
},
{
"endIndex": 84283,
"startIndex": 84265,
"textRun": {
"content": "purchasesUpdate() ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 84289,
"startIndex": 84283,
"textRun": {
"content": "method",
"textStyle": {}
}
},
{
"endIndex": 84342,
"startIndex": 84289,
"textRun": {
"content": " is always called when the purchased products change.",
"textStyle": {}
}
},
{
"endIndex": 84343,
"startIndex": 84342,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 83794
},
{
"endIndex": 84373,
"paragraph": {
"elements": [
{
"endIndex": 84372,
"startIndex": 84343,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/app/lib/logic/dash_purchases.dart#L26-L35"
},
"underline": true
}
}
},
{
"endIndex": 84373,
"startIndex": 84372,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.2jm5f1b6gkhx",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 84343
},
{
"endIndex": 84935,
"startIndex": 84373,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 84934,
"startIndex": 84374,
"tableCells": [
{
"content": [
{
"endIndex": 84395,
"paragraph": {
"elements": [
{
"endIndex": 84395,
"startIndex": 84376,
"textRun": {
"content": " IAPRepo iapRepo;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84376
},
{
"endIndex": 84396,
"paragraph": {
"elements": [
{
"endIndex": 84396,
"startIndex": 84395,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84395
},
{
"endIndex": 84465,
"paragraph": {
"elements": [
{
"endIndex": 84465,
"startIndex": 84396,
"textRun": {
"content": " DashPurchases(this.counter, this.firebaseNotifier, this.iapRepo) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84396
},
{
"endIndex": 84493,
"paragraph": {
"elements": [
{
"endIndex": 84493,
"startIndex": 84465,
"textRun": {
"content": " final purchaseUpdated =\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84465
},
{
"endIndex": 84531,
"paragraph": {
"elements": [
{
"endIndex": 84531,
"startIndex": 84493,
"textRun": {
"content": " iapConnection.purchaseStream;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84493
},
{
"endIndex": 84575,
"paragraph": {
"elements": [
{
"endIndex": 84575,
"startIndex": 84531,
"textRun": {
"content": " _subscription = purchaseUpdated.listen(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84531
},
{
"endIndex": 84600,
"paragraph": {
"elements": [
{
"endIndex": 84600,
"startIndex": 84575,
"textRun": {
"content": " _onPurchaseUpdate,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84575
},
{
"endIndex": 84635,
"paragraph": {
"elements": [
{
"endIndex": 84635,
"startIndex": 84600,
"textRun": {
"content": " onDone: _updateStreamOnDone,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84600
},
{
"endIndex": 84672,
"paragraph": {
"elements": [
{
"endIndex": 84672,
"startIndex": 84635,
"textRun": {
"content": " onError: _updateStreamOnError,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84635
},
{
"endIndex": 84679,
"paragraph": {
"elements": [
{
"endIndex": 84679,
"startIndex": 84672,
"textRun": {
"content": " );\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84672
},
{
"endIndex": 84721,
"paragraph": {
"elements": [
{
"endIndex": 84721,
"startIndex": 84679,
"textRun": {
"content": " iapRepo.addListener(purchasesUpdate);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84679
},
{
"endIndex": 84742,
"paragraph": {
"elements": [
{
"endIndex": 84742,
"startIndex": 84721,
"textRun": {
"content": " loadPurchases();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84721
},
{
"endIndex": 84746,
"paragraph": {
"elements": [
{
"endIndex": 84746,
"startIndex": 84742,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84742
},
{
"endIndex": 84747,
"paragraph": {
"elements": [
{
"endIndex": 84747,
"startIndex": 84746,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84746
},
{
"endIndex": 84759,
"paragraph": {
"elements": [
{
"endIndex": 84759,
"startIndex": 84747,
"textRun": {
"content": " @override\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84747
},
{
"endIndex": 84778,
"paragraph": {
"elements": [
{
"endIndex": 84778,
"startIndex": 84759,
"textRun": {
"content": " void dispose() {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84759
},
{
"endIndex": 84823,
"paragraph": {
"elements": [
{
"endIndex": 84823,
"startIndex": 84778,
"textRun": {
"content": " iapRepo.removeListener(purchasesUpdate);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84778
},
{
"endIndex": 84851,
"paragraph": {
"elements": [
{
"endIndex": 84851,
"startIndex": 84823,
"textRun": {
"content": " _subscription.cancel();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84823
},
{
"endIndex": 84872,
"paragraph": {
"elements": [
{
"endIndex": 84872,
"startIndex": 84851,
"textRun": {
"content": " super.dispose();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84851
},
{
"endIndex": 84876,
"paragraph": {
"elements": [
{
"endIndex": 84876,
"startIndex": 84872,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84872
},
{
"endIndex": 84877,
"paragraph": {
"elements": [
{
"endIndex": 84877,
"startIndex": 84876,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84876
},
{
"endIndex": 84904,
"paragraph": {
"elements": [
{
"endIndex": 84904,
"startIndex": 84877,
"textRun": {
"content": " void purchasesUpdate() {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84877
},
{
"endIndex": 84930,
"paragraph": {
"elements": [
{
"endIndex": 84930,
"startIndex": 84904,
"textRun": {
"content": " //TODO manage updates\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84904
},
{
"endIndex": 84934,
"paragraph": {
"elements": [
{
"endIndex": 84934,
"startIndex": 84930,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 84930
}
],
"endIndex": 84934,
"startIndex": 84375,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 84936,
"paragraph": {
"elements": [
{
"endIndex": 84936,
"startIndex": 84935,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 84935
},
{
"endIndex": 84937,
"paragraph": {
"elements": [
{
"endIndex": 84937,
"startIndex": 84936,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 84936
},
{
"endIndex": 85088,
"paragraph": {
"elements": [
{
"endIndex": 84954,
"startIndex": 84937,
"textRun": {
"content": "Next, supply the ",
"textStyle": {}
}
},
{
"endIndex": 84962,
"startIndex": 84954,
"textRun": {
"content": "IAPRepo ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 84984,
"startIndex": 84962,
"textRun": {
"content": "to the constructor in ",
"textStyle": {}
}
},
{
"endIndex": 84994,
"startIndex": 84984,
"textRun": {
"content": "main.dart.",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 85031,
"startIndex": 84994,
"textRun": {
"content": " You can get the repository by using ",
"textStyle": {}
}
},
{
"endIndex": 85043,
"startIndex": 85031,
"textRun": {
"content": "context.read",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 85078,
"startIndex": 85043,
"textRun": {
"content": " because itβs already created in a ",
"textStyle": {}
}
},
{
"endIndex": 85086,
"startIndex": 85078,
"textRun": {
"content": "Provider",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 85088,
"startIndex": 85086,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 84937
},
{
"endIndex": 85102,
"paragraph": {
"elements": [
{
"endIndex": 85101,
"startIndex": 85088,
"textRun": {
"content": "lib/main.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/app/lib/main.dart#L79-L86"
},
"underline": true
}
}
},
{
"endIndex": 85102,
"startIndex": 85101,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.6ifsfvloq7cr",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 85088
},
{
"endIndex": 85370,
"startIndex": 85102,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 85369,
"startIndex": 85103,
"tableCells": [
{
"content": [
{
"endIndex": 85152,
"paragraph": {
"elements": [
{
"endIndex": 85152,
"startIndex": 85105,
"textRun": {
"content": " ChangeNotifierProvider<DashPurchases>(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 85105
},
{
"endIndex": 85198,
"paragraph": {
"elements": [
{
"endIndex": 85198,
"startIndex": 85152,
"textRun": {
"content": " create: (context) => DashPurchases(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 85152
},
{
"endIndex": 85239,
"paragraph": {
"elements": [
{
"endIndex": 85239,
"startIndex": 85198,
"textRun": {
"content": " context.read<DashCounter>(),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 85198
},
{
"endIndex": 85285,
"paragraph": {
"elements": [
{
"endIndex": 85285,
"startIndex": 85239,
"textRun": {
"content": " context.read<FirebaseNotifier>(),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 85239
},
{
"endIndex": 85322,
"paragraph": {
"elements": [
{
"endIndex": 85322,
"startIndex": 85285,
"textRun": {
"content": " context.read<IAPRepo>(),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 85285
},
{
"endIndex": 85335,
"paragraph": {
"elements": [
{
"endIndex": 85335,
"startIndex": 85322,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 85322
},
{
"endIndex": 85358,
"paragraph": {
"elements": [
{
"endIndex": 85358,
"startIndex": 85335,
"textRun": {
"content": " lazy: false,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 85335
},
{
"endIndex": 85369,
"paragraph": {
"elements": [
{
"endIndex": 85369,
"startIndex": 85358,
"textRun": {
"content": " ),\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 85358
}
],
"endIndex": 85369,
"startIndex": 85104,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 85371,
"paragraph": {
"elements": [
{
"endIndex": 85371,
"startIndex": 85370,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 85370
},
{
"endIndex": 85858,
"paragraph": {
"elements": [
{
"endIndex": 85400,
"startIndex": 85371,
"textRun": {
"content": "Next, write the code for the ",
"textStyle": {}
}
},
{
"endIndex": 85416,
"startIndex": 85400,
"textRun": {
"content": "purchaseUpdate()",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 85430,
"startIndex": 85416,
"textRun": {
"content": " function. In ",
"textStyle": {}
}
},
{
"endIndex": 85448,
"startIndex": 85430,
"textRun": {
"content": "dash_counter.dart,",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 85453,
"startIndex": 85448,
"textRun": {
"content": " the ",
"textStyle": {}
}
},
{
"endIndex": 85473,
"startIndex": 85453,
"textRun": {
"content": "applyPaidMultiplier ",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 85477,
"startIndex": 85473,
"textRun": {
"content": "and ",
"textStyle": {}
}
},
{
"endIndex": 85497,
"startIndex": 85477,
"textRun": {
"content": "removePaidMultiplier",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 85498,
"startIndex": 85497,
"textRun": {
"content": " ",
"textStyle": {}
}
},
{
"endIndex": 85786,
"startIndex": 85498,
"textRun": {
"content": "methods set the multiplier to 10 or 1, respectively, so you donβt have to check whether the subscription is already applied. When the subscription status changes, you also update the status of the purchasable product so you can show in the purchase page that itβs already active. Set the ",
"textStyle": {}
}
},
{
"endIndex": 85808,
"startIndex": 85786,
"textRun": {
"content": "_beautifiedDashUpgrade",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
},
{
"endIndex": 85857,
"startIndex": 85808,
"textRun": {
"content": " property based on whether the upgrade is bought.",
"textStyle": {}
}
},
{
"endIndex": 85858,
"startIndex": 85857,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 85371
},
{
"endIndex": 85888,
"paragraph": {
"elements": [
{
"endIndex": 85887,
"startIndex": 85858,
"textRun": {
"content": "lib/logic/dash_purchases.dart",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
}
},
"link": {
"url": "https://github.com/flutter/codelabs/blob/master/in_app_purchases/complete/app/lib/logic/dash_purchases.dart#L146-L190"
},
"underline": true
}
}
},
{
"endIndex": 85888,
"startIndex": 85887,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.br9j03ile7e3",
"namedStyleType": "HEADING_3",
"pageBreakBefore": false
}
},
"startIndex": 85858
},
{
"endIndex": 87511,
"startIndex": 85888,
"table": {
"columns": 1,
"rows": 1,
"tableRows": [
{
"endIndex": 87510,
"startIndex": 85889,
"tableCells": [
{
"content": [
{
"endIndex": 85916,
"paragraph": {
"elements": [
{
"endIndex": 85916,
"startIndex": 85891,
"textRun": {
"content": "void purchasesUpdate() {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 85891
},
{
"endIndex": 85964,
"paragraph": {
"elements": [
{
"endIndex": 85964,
"startIndex": 85916,
"textRun": {
"content": " var subscriptions = <PurchasableProduct>[];\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 85916
},
{
"endIndex": 86007,
"paragraph": {
"elements": [
{
"endIndex": 86007,
"startIndex": 85964,
"textRun": {
"content": " var upgrades = <PurchasableProduct>[];\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 85964
},
{
"endIndex": 86083,
"paragraph": {
"elements": [
{
"endIndex": 86083,
"startIndex": 86007,
"textRun": {
"content": " // Get a list of purchasable products for the subscription and upgrade.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86007
},
{
"endIndex": 86117,
"paragraph": {
"elements": [
{
"endIndex": 86117,
"startIndex": 86083,
"textRun": {
"content": " // This should be 1 per type.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86083
},
{
"endIndex": 86148,
"paragraph": {
"elements": [
{
"endIndex": 86148,
"startIndex": 86117,
"textRun": {
"content": " if (products.isNotEmpty) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86117
},
{
"endIndex": 86179,
"paragraph": {
"elements": [
{
"endIndex": 86179,
"startIndex": 86148,
"textRun": {
"content": " subscriptions = products\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86148
},
{
"endIndex": 86260,
"paragraph": {
"elements": [
{
"endIndex": 86260,
"startIndex": 86179,
"textRun": {
"content": " .where((element) => element.productDetails.id == storeKeySubscription)\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86179
},
{
"endIndex": 86281,
"paragraph": {
"elements": [
{
"endIndex": 86281,
"startIndex": 86260,
"textRun": {
"content": " .toList();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86260
},
{
"endIndex": 86307,
"paragraph": {
"elements": [
{
"endIndex": 86307,
"startIndex": 86281,
"textRun": {
"content": " upgrades = products\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86281
},
{
"endIndex": 86383,
"paragraph": {
"elements": [
{
"endIndex": 86383,
"startIndex": 86307,
"textRun": {
"content": " .where((element) => element.productDetails.id == storeKeyUpgrade)\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86307
},
{
"endIndex": 86404,
"paragraph": {
"elements": [
{
"endIndex": 86404,
"startIndex": 86383,
"textRun": {
"content": " .toList();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86383
},
{
"endIndex": 86410,
"paragraph": {
"elements": [
{
"endIndex": 86410,
"startIndex": 86404,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86404
},
{
"endIndex": 86411,
"paragraph": {
"elements": [
{
"endIndex": 86411,
"startIndex": 86410,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86410
},
{
"endIndex": 86491,
"paragraph": {
"elements": [
{
"endIndex": 86491,
"startIndex": 86411,
"textRun": {
"content": " // Set the subscription in the counter logic and show/hide purchased on the\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86411
},
{
"endIndex": 86514,
"paragraph": {
"elements": [
{
"endIndex": 86514,
"startIndex": 86491,
"textRun": {
"content": " // purchases page.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86491
},
{
"endIndex": 86555,
"paragraph": {
"elements": [
{
"endIndex": 86555,
"startIndex": 86514,
"textRun": {
"content": " if (iapRepo.hasActiveSubscription) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86514
},
{
"endIndex": 86592,
"paragraph": {
"elements": [
{
"endIndex": 86592,
"startIndex": 86555,
"textRun": {
"content": " counter.applyPaidMultiplier();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86555
},
{
"endIndex": 86635,
"paragraph": {
"elements": [
{
"endIndex": 86635,
"startIndex": 86592,
"textRun": {
"content": " for (var element in subscriptions) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86592
},
{
"endIndex": 86692,
"paragraph": {
"elements": [
{
"endIndex": 86692,
"startIndex": 86635,
"textRun": {
"content": " _updateStatus(element, ProductStatus.purchased);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86635
},
{
"endIndex": 86700,
"paragraph": {
"elements": [
{
"endIndex": 86700,
"startIndex": 86692,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86692
},
{
"endIndex": 86713,
"paragraph": {
"elements": [
{
"endIndex": 86713,
"startIndex": 86700,
"textRun": {
"content": " } else {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86700
},
{
"endIndex": 86751,
"paragraph": {
"elements": [
{
"endIndex": 86751,
"startIndex": 86713,
"textRun": {
"content": " counter.removePaidMultiplier();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86713
},
{
"endIndex": 86794,
"paragraph": {
"elements": [
{
"endIndex": 86794,
"startIndex": 86751,
"textRun": {
"content": " for (var element in subscriptions) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86751
},
{
"endIndex": 86853,
"paragraph": {
"elements": [
{
"endIndex": 86853,
"startIndex": 86794,
"textRun": {
"content": " _updateStatus(element, ProductStatus.purchasable);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86794
},
{
"endIndex": 86861,
"paragraph": {
"elements": [
{
"endIndex": 86861,
"startIndex": 86853,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86853
},
{
"endIndex": 86867,
"paragraph": {
"elements": [
{
"endIndex": 86867,
"startIndex": 86861,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86861
},
{
"endIndex": 86868,
"paragraph": {
"elements": [
{
"endIndex": 86868,
"startIndex": 86867,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86867
},
{
"endIndex": 86926,
"paragraph": {
"elements": [
{
"endIndex": 86926,
"startIndex": 86868,
"textRun": {
"content": " // Set the Dash beautifier and show/hide purchased on\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86868
},
{
"endIndex": 86953,
"paragraph": {
"elements": [
{
"endIndex": 86953,
"startIndex": 86926,
"textRun": {
"content": " // the purchases page.\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86926
},
{
"endIndex": 87009,
"paragraph": {
"elements": [
{
"endIndex": 87009,
"startIndex": 86953,
"textRun": {
"content": " if (iapRepo.hasUpgrade != _beautifiedDashUpgrade) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 86953
},
{
"endIndex": 87060,
"paragraph": {
"elements": [
{
"endIndex": 87060,
"startIndex": 87009,
"textRun": {
"content": " _beautifiedDashUpgrade = iapRepo.hasUpgrade;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87009
},
{
"endIndex": 87098,
"paragraph": {
"elements": [
{
"endIndex": 87098,
"startIndex": 87060,
"textRun": {
"content": " for (var element in upgrades) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87060
},
{
"endIndex": 87121,
"paragraph": {
"elements": [
{
"endIndex": 87121,
"startIndex": 87098,
"textRun": {
"content": " _updateStatus(\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87098
},
{
"endIndex": 87140,
"paragraph": {
"elements": [
{
"endIndex": 87140,
"startIndex": 87121,
"textRun": {
"content": " element,\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87121
},
{
"endIndex": 87173,
"paragraph": {
"elements": [
{
"endIndex": 87173,
"startIndex": 87140,
"textRun": {
"content": " _beautifiedDashUpgrade\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87140
},
{
"endIndex": 87213,
"paragraph": {
"elements": [
{
"endIndex": 87213,
"startIndex": 87173,
"textRun": {
"content": " ? ProductStatus.purchased\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87173
},
{
"endIndex": 87257,
"paragraph": {
"elements": [
{
"endIndex": 87257,
"startIndex": 87213,
"textRun": {
"content": " : ProductStatus.purchasable);\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87213
},
{
"endIndex": 87265,
"paragraph": {
"elements": [
{
"endIndex": 87265,
"startIndex": 87257,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87257
},
{
"endIndex": 87290,
"paragraph": {
"elements": [
{
"endIndex": 87290,
"startIndex": 87265,
"textRun": {
"content": " notifyListeners();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87265
},
{
"endIndex": 87296,
"paragraph": {
"elements": [
{
"endIndex": 87296,
"startIndex": 87290,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87290
},
{
"endIndex": 87300,
"paragraph": {
"elements": [
{
"endIndex": 87300,
"startIndex": 87296,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87296
},
{
"endIndex": 87301,
"paragraph": {
"elements": [
{
"endIndex": 87301,
"startIndex": 87300,
"textRun": {
"content": "\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87300
},
{
"endIndex": 87374,
"paragraph": {
"elements": [
{
"endIndex": 87374,
"startIndex": 87301,
"textRun": {
"content": " void _updateStatus(PurchasableProduct product, ProductStatus status) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87301
},
{
"endIndex": 87427,
"paragraph": {
"elements": [
{
"endIndex": 87427,
"startIndex": 87374,
"textRun": {
"content": " if (product.status != ProductStatus.purchased) {\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87374
},
{
"endIndex": 87475,
"paragraph": {
"elements": [
{
"endIndex": 87475,
"startIndex": 87427,
"textRun": {
"content": " product.status = ProductStatus.purchased;\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87427
},
{
"endIndex": 87500,
"paragraph": {
"elements": [
{
"endIndex": 87500,
"startIndex": 87475,
"textRun": {
"content": " notifyListeners();\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87475
},
{
"endIndex": 87506,
"paragraph": {
"elements": [
{
"endIndex": 87506,
"startIndex": 87500,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87500
},
{
"endIndex": 87510,
"paragraph": {
"elements": [
{
"endIndex": 87510,
"startIndex": 87506,
"textRun": {
"content": " }\n",
"textStyle": {
"weightedFontFamily": {
"fontFamily": "Courier New",
"weight": 400
}
}
}
}
],
"paragraphStyle": {
"avoidWidowAndOrphan": false,
"direction": "LEFT_TO_RIGHT",
"lineSpacing": 100.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spacingMode": "COLLAPSE_LISTS"
}
},
"startIndex": 87506
}
],
"endIndex": 87510,
"startIndex": 85890,
"tableCellStyle": {
"backgroundColor": {},
"columnSpan": 1,
"contentAlignment": "TOP",
"paddingBottom": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingLeft": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingRight": {
"magnitude": 5.0,
"unit": "PT"
},
"paddingTop": {
"magnitude": 5.0,
"unit": "PT"
},
"rowSpan": 1
}
}
],
"tableRowStyle": {
"minRowHeight": {
"unit": "PT"
}
}
}
],
"tableStyle": {
"tableColumnProperties": [
{
"widthType": "EVENLY_DISTRIBUTED"
}
]
}
}
},
{
"endIndex": 87512,
"paragraph": {
"elements": [
{
"endIndex": 87512,
"startIndex": 87511,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 87511
},
{
"endIndex": 87748,
"paragraph": {
"elements": [
{
"endIndex": 87748,
"startIndex": 87512,
"textRun": {
"content": "You have now ensured that the subscription and upgrade status is always current in the backend service and synchronized with the app. The app acts accordingly and applies the subscription and upgrade features to your Dash clicker game.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 87512
},
{
"endIndex": 87749,
"paragraph": {
"elements": [
{
"endIndex": 87749,
"startIndex": 87748,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.75bij8b5w8zu",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 87748
},
{
"endIndex": 87750,
"paragraph": {
"elements": [
{
"endIndex": 87750,
"startIndex": 87749,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false
}
},
"startIndex": 87749
},
{
"endIndex": 87752,
"paragraph": {
"elements": [
{
"endIndex": 87751,
"pageBreak": {
"textStyle": {}
},
"startIndex": 87750
},
{
"endIndex": 87752,
"startIndex": 87751,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ktyvuy8ff6gv",
"lineSpacing": 100.0,
"namedStyleType": "HEADING_1",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 15.0,
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
}
}
},
"startIndex": 87750
},
{
"endIndex": 87762,
"paragraph": {
"elements": [
{
"endIndex": 87762,
"startIndex": 87752,
"textRun": {
"content": "All done!\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.b777ki4f2xms",
"lineSpacing": 100.0,
"namedStyleType": "HEADING_1",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 15.0,
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
}
}
},
"startIndex": 87752
},
{
"endIndex": 87887,
"paragraph": {
"elements": [
{
"endIndex": 87869,
"startIndex": 87762,
"textRun": {
"content": "Congratulations!!! You have completed the codelab. You can find the completed code for this codelab in the ",
"textStyle": {}
}
},
{
"endIndex": 87870,
"inlineObjectElement": {
"inlineObjectId": "kix.h0phbrfzr2hj",
"textStyle": {}
},
"startIndex": 87869
},
{
"endIndex": 87887,
"startIndex": 87870,
"textRun": {
"content": "complete folder.\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 12.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 12.0,
"unit": "PT"
}
}
},
"startIndex": 87762
},
{
"endIndex": 87934,
"paragraph": {
"elements": [
{
"endIndex": 87916,
"startIndex": 87887,
"textRun": {
"content": "To learn more, try the other ",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
},
{
"endIndex": 87932,
"startIndex": 87916,
"textRun": {
"content": "Flutter codelabs",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.9098039,
"green": 0.4509804,
"red": 0.101960786
}
}
},
"link": {
"url": "https://flutter.dev/docs/codelabs"
},
"underline": true
}
}
},
{
"endIndex": 87934,
"startIndex": 87932,
"textRun": {
"content": ".\n",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
}
}
}
}
],
"paragraphStyle": {
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {
"color": {
"rgbColor": {
"blue": 1.0,
"green": 1.0,
"red": 1.0
}
}
}
},
"spaceAbove": {
"magnitude": 12.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 12.0,
"unit": "PT"
}
}
},
"startIndex": 87887
},
{
"endIndex": 87935,
"paragraph": {
"elements": [
{
"endIndex": 87935,
"startIndex": 87934,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.7dw9tpdpl689",
"namedStyleType": "HEADING_1",
"pageBreakBefore": false
}
},
"startIndex": 87934
}
]
},
"documentId": "1EQtDsZv6vkvgreuOrF0KMo6kiKJ-534DShEFGankv20",
"documentStyle": {
"background": {
"color": {}
},
"marginBottom": {
"magnitude": 72.0,
"unit": "PT"
},
"marginFooter": {
"magnitude": 36.0,
"unit": "PT"
},
"marginHeader": {
"magnitude": 36.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 72.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 72.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 72.0,
"unit": "PT"
},
"pageNumberStart": 1,
"pageSize": {
"height": {
"magnitude": 792.0,
"unit": "PT"
},
"width": {
"magnitude": 612.0,
"unit": "PT"
}
},
"useCustomHeaderFooterMargins": true
},
"inlineObjects": {
"kix.16xo8udq7e3c": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/4qgynG9-U14a51LvsOxmR1fD1Shsfi1UwDbvOz9RsQDKLQ-lTFnVRKc_Cg07FHiPTYZEydUPZfxc6BCwyfJGEk67DoyoAYnnACXTQL_Edysr7jU0zrFTyQbU5z1rfhayMcv7p47NhLJCqan3uS6fxNb7N5sT6rIq",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 114.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.16xo8udq7e3c"
},
"kix.1bvcn5cpml5v": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/zGfmNAzFvjrGDW-fe-vXWUxDjaZLYHP6mzO9rU13ht5TYEpAGyd7L3kI50qr53r6Juwoy5fnfPU7H9A_AFakxUQr9LGz-y04kO-RqYVUee7Zb78VrBa9s8nx0vt57UepIeUPxv29i81psq1-62MaGge5Dzqini-Y",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 347.625,
"unit": "PT"
},
"width": {
"magnitude": 426.16502946954813,
"unit": "PT"
}
}
}
},
"objectId": "kix.1bvcn5cpml5v"
},
"kix.1ewb15mdsw1y": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/Wn9y4dB3-FlRUUlUO1YaZszCdwc9lPJRbeeGp5F2ddzDj_dJqurMOXJ8QboPGuLqWTXpcOYuVPWCR_nwMoRI1ezK1Obm4AMNWxHF-Ermr0R9LOb6h8JfGBHre5P-1mDSi6K56AKD5pTqRBDZVYizuUsEbWF3TwtX",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 182.625,
"unit": "PT"
},
"width": {
"magnitude": 311.7133561643836,
"unit": "PT"
}
}
}
},
"objectId": "kix.1ewb15mdsw1y"
},
"kix.2cd8z374al3f": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/WLlEo_30SAAQgHYuWasx2Yo6QB9HQ_iVp4zZTYsqwn4S1luqLmDubLljNcQ9dhyt1fZlPxKmNUXmQ3yFeRbms9_Kzakfvku00Ra2zTxsE_pAC9lg6LRH7DlcZ1SP4O5GUSiWiBcPdA7A25hfS0OzX8qiGKquvYbP",
"cropProperties": {
"offsetLeft": 0.0021476997,
"offsetRight": 0.0021476997
}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 113.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.2cd8z374al3f"
},
"kix.2egsspufz1c8": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/pjjC61qsjdeEPNAI1ZsgpjRSuUj-LRE_Axy3ptEqpZPuUYfatG0HSA4w9gyPTIuWyHQMzkeffcJq8dq-v0QFmzF7dtQd1XoIO9B_tg8If3w-NnLLl6wngJ1v8jrvxSAidd1TNGEaBM7UxT9eAM_jABBBR3hDgDzm",
"cropProperties": {
"offsetLeft": 0.0043220613,
"offsetRight": 0.0043220613
}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 103.48232421875036,
"unit": "PT"
},
"width": {
"magnitude": 463.2526476708544,
"unit": "PT"
}
}
}
},
"objectId": "kix.2egsspufz1c8"
},
"kix.30fj9inmygy5": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/iDrW9lN1cvK98Dx4Dp97QQiQHa31Zsqm9EogyJX5D9rYmdDrHIsfkpczU9dWIq6qM-3u4-ktThq48R-hewY5L8wdWxH0BWwhsp50PfubsgKwZxpUWxPYinNhqNTaMZsqQ4LjB-v35wixoOGO_EVrxJQtY5BuDUXO",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 115.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.30fj9inmygy5"
},
"kix.3bd123g21oey": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/o3AByd4gmIAOzCoWeD48ca5XQgr9-TPMiY85VBPQfL8djzsDY2iQ4U7r876nVYSgzDZwfiiQUMWgX1UFSPBeCkUIJfhqENU2i_XSQno6LEBXaTS320Fw2exm5jDRGilSucEj9KpQjQJGU2kLfgk8IQxBS4T34pMp",
"cropProperties": {
"offsetBottom": 0.0001915154,
"offsetTop": 0.0001915154
}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 126.78316953316953,
"unit": "PT"
},
"width": {
"magnitude": 241.125,
"unit": "PT"
}
}
}
},
"objectId": "kix.3bd123g21oey"
},
"kix.3vn591ev65x6": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/2K-bWnSjeU-xLNzMPPnZ7RH_tk-hf2Pwva2zdUb5GWr3l1ZVYUpP9gqmRk2CiDx0Fb9FwYZRBminLXUQTJgaaMgLgqa8PwnmXjsi4l5yF5issYU7UuFJp5TnIp3hXSFWTruX3rhZhbJOCrghdYBtnE8HetPrJGlM",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 139.0383738601824,
"unit": "PT"
},
"width": {
"magnitude": 208.875,
"unit": "PT"
}
}
}
},
"objectId": "kix.3vn591ev65x6"
},
"kix.4lnpl4yh01t0": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/8w2X5qcZqXQS3lklLM-q7jDvNLPuOwv7ZEsIE0RVyssIAektmQ14PWkvyUJHBxROPLVOxn-40ujpLSdOwaB5LQSY3Iu1b0bcWOvCK_tO_zsGDhmfSa2vD2ZcOUUZujWDVbZSWD4qsh9qJpY1UA6AUjRf88G5cBmJ",
"cropProperties": {
"offsetLeft": 0.0005589396,
"offsetRight": 0.0005589396
}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 113.1436298076923,
"unit": "PT"
},
"width": {
"magnitude": 412.875,
"unit": "PT"
}
}
}
},
"objectId": "kix.4lnpl4yh01t0"
},
"kix.4nqtsh4zysec": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/_QM6ZjMMNZkPqAxhRaWBU7KQap8FUtjOH9PI4Le-1NOCMMD-d_5MI-uMDVUD718H8L9_qEuVT-WDWtrYZ75aXWalzDTXHmg93RePd5DYRsSpHw1McwaWspGLcMW31skA14dZJ1O1_JMGrc4qmRv6ZubwvcW5cAEZ",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 367.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.4nqtsh4zysec"
},
"kix.5fekoxtber2j": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/sdgasCYbBWbUNvT2a7loCtN1c_AuKWkvXyEtf301iHSpIfyyuN6gEOM02raiLbE5LOI1xvbAMl4t-MuxcDYXN9b9GR9KXRGt7YG6gEeXaW4tbRvGKYmWqA6Hl_THKZB9lE1K0MR-Bwc1T6Tlg9cYeBSFHsSFRJX7",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 37.69542253521127,
"unit": "PT"
},
"width": {
"magnitude": 297.375,
"unit": "PT"
}
}
}
},
"objectId": "kix.5fekoxtber2j"
},
"kix.5vhpoytm1398": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/4ZNIQ1LRCDRDVYgVK2pQf4994YBD3al46jItN5KwdGu7uf766vK5IR05V1ZAjjcGjr_avIlPWu_BVodN04o9XlJvKgl-ap4NMEaLsYFkPVpXIbEmwGcI6ACd7ePlD4G4eoXDM5rQbn9Y5Sy1yXe1tKD-2PcvBqOa",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 280.875,
"unit": "PT"
},
"width": {
"magnitude": 369.05668604651163,
"unit": "PT"
}
}
}
},
"objectId": "kix.5vhpoytm1398"
},
"kix.5xdu2wapi4y2": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/tMyns4X0N4JlOAWFHYY4Q6jHSd4Hy-Js-QoCibrovtdzHP0qzoUqQ8rN9d-kzpEfzLcfxGAIHZWtHmlQjzPj7Wp_EK7A9JvT5_aMjNlQwKQwYj8Uki7AR0THxzKyDVX33ZpsLdEs-iAJlLJMR9O8kueM9zFUEJhL",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 215.05588942307693,
"unit": "PT"
},
"width": {
"magnitude": 298.875,
"unit": "PT"
}
}
}
},
"objectId": "kix.5xdu2wapi4y2"
},
"kix.6pb13kk3wfit": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/wKTHV7YycFfOWlwPVR0B7vAnvJdieZY9KRm6K1abMNC_s4yG5fssjh87vI4ZFlufvhAXLTH8CnzStzmdx_JQjm-9viO69fLXkh-NaRQfp75Lpnp5C03LtFZxKCDoPpMuUjsEf7_7BDMW8dBBiP4UrRbGkbEkAxRz",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 363.10929230769233,
"unit": "PT"
},
"width": {
"magnitude": 369.36,
"unit": "PT"
}
}
}
},
"objectId": "kix.6pb13kk3wfit"
},
"kix.71g2qymec6v9": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/8Kmd5EJUhy5cmWz84jGJE-36h2t-BUQxBV0j1loUtBOy65tktjWnQnaIOMPciWXeYpU7U8c9Wh6QyWTRHbkPsK7z2xcHv6AZUyNQUxQhP16wt5PnYeTXjO8NmJEH2OEkiBDcETYH2MQOP0Q9z0wWoruiOk0rmo-V",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 211.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.71g2qymec6v9"
},
"kix.7ner1pebor2s": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/AJt9j7mlt8mdfcmrWFKUNz0Iu62KjaVGhTOq50LBfV53whWlucahFizqKHqrLyKXZ13L1DtwW6ZCvmh-1C2WYweSUKMrl6JjKGwd2TlXuAkvkhH3JpNBcrGblvLckAHiuAdlpddah5bEfhH4m5qBXwVaFYliNWFy",
"cropProperties": {
"offsetBottom": 0.0011998167,
"offsetTop": 0.0011998167
}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 185.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.7ner1pebor2s"
},
"kix.8jh32bs85q1q": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/RRrhD4fj-bCq57qL1WHwICaBoIf4ouSBRdN2XAGEUwj-Ohd-lHg-fymdYBSBaPCdwVbrEv6C6-PFhcMPJRgunpPOmI2yi1NGRstUuQrnbwbX1pEnU6FI0-I3LYFUfA2wx9OJl3Lo3Buzh9WiOB61_qoNTNbgHjm0",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 370.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.8jh32bs85q1q"
},
"kix.8o06if5zrj4p": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/f_A2bGTS4sKFKZCfHsJ5FJREdgGAIMW4_WMKmsvvpCqkH4eN6okvUCswptTbscwoVPiYf_zN315JxSwJ2eWuMG-W6r2N9pF-wHu5g11MIxlNyAoK0YLCQpdDHEGeA6YEMdlzjqgjOOsCZSoniNDq0BWT9by5rHTR",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 189.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.8o06if5zrj4p"
},
"kix.9einmm88jss2": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/LMb47Tlc2E8AdDII3pymd7ntKYM9dQOpoW3UvSdGYyIx0WaK-GBGgyjJt_YsnmeZ98YBHeUCVvzZFV3rdgtFZrDe9LMsi0K1qmkn5Cs3elNLBPyG95lD1IjAe5nAU9g3FRUiryA8nv7uME3dHWIjvzUc_ZVaWayI",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 188.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.9einmm88jss2"
},
"kix.9fz92ja09nmf": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/on2O04HkDI5ycXN-TXgpRhxaGL8_mWNyQC2TyQsgSJFR30T9Ea5yEOff7g6BfbRvyjrBUaGFFZz742ng5830jDj4gzIGzX9njjymBVSCazpZV63jXL9uf-N-_wImpZPpR1oXC5cQR8yae8ES4EZCs1PKwMNA78OG",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 27.08653846153846,
"unit": "PT"
},
"width": {
"magnitude": 352.125,
"unit": "PT"
}
}
}
},
"objectId": "kix.9fz92ja09nmf"
},
"kix.9qju374jwmgw": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh6.googleusercontent.com/fPIxPvqx-3I2rd2-wcmhqFhKY4-4HuU8L1s3Q6hI2LY9m_yo2_MVsCBRoJLdHm7K1LXK5cmZBKJKy-3bIUb8YqDyPelL0cdrjaysvz3Vz3TCS46qqWzW3y2UbE4zyDICVDWMx2DBIQ7y216EmOULYfkN38HrLTIl",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 328.125,
"unit": "PT"
},
"width": {
"magnitude": 151.37936408977558,
"unit": "PT"
}
}
}
},
"objectId": "kix.9qju374jwmgw"
},
"kix.bezjpjdxf6ua": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/EDI-h8bg8qVmsu2xo48XNm2edRHonB77ZtZ7on58G7c1nrcAQqwBqeJPma71SSYkUmpzmPgf2H8pQMUCd4pb1cPdbwkUQDmEoOP0hBY-BXABSS2NY3N_J-f_VKa2yEBQxkqDH_0Ruj0O3rgo-K5Hzj36WMyGfwew",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 228.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.bezjpjdxf6ua"
},
"kix.bqwp3g2c0vyr": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/4haCPCqT31DzpQ6gfh9irYUCLJ_7dJijwhX70oCYbtTUUbTkN2WuPh1cFBplqNmd_c8p-FP9Zx1Bu-PfY-qmmvca6waZkncpZtYp_OM-G7awcBfXuNJSbufwtNV_9vqc70sszxBeTVXYNcIBFl2Lwtlzz_ALPOUr",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 112.52163461538463,
"unit": "PT"
},
"width": {
"magnitude": 278.625,
"unit": "PT"
}
}
}
},
"objectId": "kix.bqwp3g2c0vyr"
},
"kix.chh2m1xhxh1i": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/mJxKitjSBPCwd-50IX-RRkKU4Mv9QIK744SJLM2BgoMSIIW2sW910T3jskJNrALWMyuvj6GbVGvYRO_gBdu0ilVNj_TAn_nt7iBfcbq5c7qGTQeV5QWGLbzZ6eeuOxqtmJvwJgGqy8f96rR0ycqKx9U_zqK7i6fN",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 235.25000000000003,
"unit": "PT"
},
"width": {
"magnitude": 352.875,
"unit": "PT"
}
}
}
},
"objectId": "kix.chh2m1xhxh1i"
},
"kix.ed6mdmveygi3": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/xvb5MH--bMcNyad14OnrwPdzq31LdthZnIuF5rrtsdGAzXGcH2R237yKbKwEjHwQyjMu2bJPlHf0tMdBaAh_58jsz8pkrkmwfzVfvKAqpenWSiI54uuAMOetkoHpDVLARVMjFTlJzg7jDP8CtOd2X8JDzQDQnI4C",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 247.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.ed6mdmveygi3"
},
"kix.esxpknacoi32": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh6.googleusercontent.com/igZ_LMxgYrCjOUwBJCKXWNCH388dOh5rWTeusZqXLNX6ABqNgslYOm_RScyrcOFtc9CXcfqXAIKqEFTUlvvNhy2TuEYsZJZFdkTs8VKdoGdbexImXU0Y4ERTykYn_i7Ez366lyXrQqshIgcEGy1nSmTEdBVpMTlx",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 182.86778846153848,
"unit": "PT"
},
"width": {
"magnitude": 224.625,
"unit": "PT"
}
}
}
},
"objectId": "kix.esxpknacoi32"
},
"kix.fqpy0mh0yer0": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/PQ3wB_qA2NLDb3b7UvVctxvPml9zKeUTMbWlbtdE4JdMADJw7pu8BfTYupr5yt_B4e7dj29LiR4CnHpMgzF9As0BiTY5sXFod6cLAqYPedflCoW5DtngYYZVMrf6zA-hc8JQV6JcGtbZmUh6VztJudTsuYzzZ_Xn",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 415.875,
"unit": "PT"
},
"width": {
"magnitude": 415.875,
"unit": "PT"
}
}
}
},
"objectId": "kix.fqpy0mh0yer0"
},
"kix.gc7gqme3obux": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/jaSkZPCsf4BPv3viZr29deQbA8K-B3H_QzgwsmHxopdF2iwSP_L27H87Lyrx6li-vMwERYlMwyEvDUf4pDB_oO-kR_RqczKldMCDcEHHb_8FkalKdfvDQWKlbVzHg7oaCRneEb_sWyXD6-QuLPQzRwgP_I449sRy",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 62.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.gc7gqme3obux"
},
"kix.gmjri93sum2k": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/Y2i-crFbcCCr2OIpEbjRMMpFh1rjwjurSaWR1f-M0Cc7y0u_lKTay6QesaxybZz3pIEOr5ABTmLeL0ZpI5bCXtg9iQi6RAgyp3n1Ngs9ENpXuoL4VNoehrbi5Q6N-HSrixmQnbLCdBySLSqxX-oiravme-XKhdoK",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 104.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.gmjri93sum2k"
},
"kix.h0phbrfzr2hj": {
"inlineObjectProperties": {
"embeddedObject": {
"description": "android_studio_folder.png",
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/HgICZf7oes42UgsvRGsjM-QhzKEwhg-wJKy93VxhuY7PlTy5aS4O-8ZV9MYRDOVHSd-fx_L585MLSOoXxJ_VPX_qi9OOnnPbygApE1FbuAZXsl9SPUGxtPZJyesONM2ShaX68OpjRm3udedxZwugd3D05ipoQFhK",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 24.0,
"unit": "PT"
},
"width": {
"magnitude": 24.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.h0phbrfzr2hj"
},
"kix.i1nagngzzitk": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/UOU3QmfK0CDN3soEi0gkz9lY-bA8xmpB-qY4RmIRkP-PuxuafB-CZonXWfPnDNngQk_8jpBoDtW7JH8xVqwi1uy-EUFpi19M4tnKMmldIVU6YYHatWJimbCFvKkRbZYOCu6Vn6urI9sORg8A8BH__uLEMfX7dxv8",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 88.09055459272098,
"unit": "PT"
},
"width": {
"magnitude": 416.625,
"unit": "PT"
}
}
}
},
"objectId": "kix.i1nagngzzitk"
},
"kix.icoz7xengcze": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/pCwdZCcl2H3-0NhhDIhBi1ADLhhzeDqQI1DeUs-yECGm92QmCJmWgHbpZf4EhSDhdSUxyJ6endn65HsH3PMxEgqgQcGXi9DvsCLSXbf3I5DxYfIXOInPSv119WDvXU0GSXVR6yHj5iViYcLcVw5_nvLgNmC8Ob97",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 130.96192052980135,
"unit": "PT"
},
"width": {
"magnitude": 193.875,
"unit": "PT"
}
}
}
},
"objectId": "kix.icoz7xengcze"
},
"kix.icspy8xsx7cc": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh6.googleusercontent.com/SJ3Mmdn357TWSdr3hBGyIBxV-liomR05D7JSs9mFC_6k-7eNjr0QO1gw-GXz2GCGDMSTO_3XFiej00uvShrpVyAYt1lqn4SqQ3gyf1giBfooi5N4VF9IuKxWy7-N2ihhZKHl9_fCTosgue11kRKKuuQxLtw3wA3W",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 281.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.icspy8xsx7cc"
},
"kix.k2jqdsuz2fno": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh6.googleusercontent.com/5fDi9mVjFmqsbCL1F8mV5ka9xGznU90nGDRnyb-iHPgwpk4fqCivtrSDxvp0qZFEUfr-9JZQcr95G42MCqdNh-1AEUbWn85_liFkEPpDZwe1PqQEeuNq_vCmsSEe_aQMavb6wWm7EPS2bTWivb0MsVECYUXWH2JM",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 130.12920673076925,
"unit": "PT"
},
"width": {
"magnitude": 238.125,
"unit": "PT"
}
}
}
},
"objectId": "kix.k2jqdsuz2fno"
},
"kix.k80ohjcbndwt": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh6.googleusercontent.com/R_khItEsfpKvw7HiCePFa5VzyzP66Ca_qPXjLNBuzku_hzVe8BCz_FZagYpyHkTL5S3WpFPbfhA-gW9_G19ZOyH18cYmSo9VBmYjuM4Xc_MRfCM_Lz-9QqUfNdi_dcIsY4XrYNjWFSpXkYOtn-xYHjPpNsxXDpyI",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 200.15625,
"unit": "PT"
},
"width": {
"magnitude": 297.375,
"unit": "PT"
}
}
}
},
"objectId": "kix.k80ohjcbndwt"
},
"kix.lkvls8vsrau2": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/ZgWs0vGwRLYbZ2c8GNjZUxWzJJH3ChUVQMzfWwlH471tztRt3ZKo0OwcLEsen5dUkomqr-54S3f2WRcQliNzuiY7ylybyuhi4bpLqMUxlJsqvdlGD6HAQyDZ5K0vci4uLqVCiIspPZdFrlUPcOSmffX-_3Bpa1-N",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 112.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.lkvls8vsrau2"
},
"kix.ln0fxrlkwddc": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/TxiQWLhtkcbsa9JydAs1umFixNjWMD--_ZzbaD1EWzz3k-9g49a2a5zVifiIzXR9tecFRNazLf386g61_eWN9nzUOlmfbeyRAX-6c-gC6p3KnHqm___OgC6TLUi8skk4Q3RHbyhnGtLyBzfVBWygQBe6aVT1NzF8",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 120.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.ln0fxrlkwddc"
},
"kix.m510bdgwtm2c": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/j7ucH8boMW65vllzkEQs1NOxR2lv2kUFx5FuUyQNJxhp1EurpHY-LUJ-qtHs2s_KEJoXHD-ZkUrclVZEU39sOd06gUMbH5slgkSIPlGNenc_Ai5hqUccZlK-ym5R31INtJf-osyJD-5VxnOE0kn04jRaKyRr2Yw4",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 219.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.m510bdgwtm2c"
},
"kix.mz7oj06j8ynp": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/ajH_rUkVXIvSEp_At4yGyW25TCPFTrm9EpixG9L45ipstxKus0eAsp3TycWg7vSPMK4q9xby1N-Kf6oqCJRj0OW_77qguUSMmKyRRvVB0RBVmhl1mYaW81T9Zo7sUvH8eHcgLvJH2OWTz8MoiqK6YH2w66Y3HfkU",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 146.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.mz7oj06j8ynp"
},
"kix.oob851rr5dpx": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/UgAJ1zg-IDv5vjtGzs-wtHr4o5Ejq_Yjm69rUz8Mmo4syFFmAcG1y--6IERkxAPg8R8FAFPtib5FjuW-SF_CQvQTPzohppXFshXIFAkwsOmgFJPOZcmd7av7ugtPmNHxRP-FVsMqm8IwXx0Rcl1UaBMozq-JjSmy",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 277.125,
"unit": "PT"
},
"width": {
"magnitude": 127.90384615384616,
"unit": "PT"
}
}
}
},
"objectId": "kix.oob851rr5dpx"
},
"kix.pji8h4xda4e1": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh6.googleusercontent.com/a8yCaCNvRAndkRS0IGap3QZxakHRKBzpGAmmIt4GRF6nmLvrly4MDASCurbJ2hGz0hxciBn1OXb4ZX_l1wS1ZS4iyhkjvCHCejWzlbVgtBv2gEGx2lLE0RzzkhL2tDZqPlIBPzdfmi3jy9BqdoIqys_T4qmArzIY",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 169.04807339449545,
"unit": "PT"
},
"width": {
"magnitude": 329.04,
"unit": "PT"
}
}
}
},
"objectId": "kix.pji8h4xda4e1"
},
"kix.q6qr0div57d4": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/xe1HFMxrKWhUiyo9q8P5WywX64LUigjdWWs31jgvtpQTfnTFzP7-6q6ttcIqQvE1qpbMLGLFXDvkWSwu_-q4-iQGFPv7UIkO2ANVtE5bga-1DfsQHMRlt68HjeY-dNFjwuGN8RxBBFdtmk_LKpk3y84pVGAdPTQn",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 280.5600961538462,
"unit": "PT"
},
"width": {
"magnitude": 344.625,
"unit": "PT"
}
}
}
},
"objectId": "kix.q6qr0div57d4"
},
"kix.qdwextc6ysh": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/CUmhl45oMGODTW1esArR5c8t2wHpErROHvYS6hhomdydxG7fJReL4pq-ETpBqYs_n3jfjyRPCv2eTvzpAZY7qZE9mpNmnJg8CA8PoRRKqWoW0Pt5Iz7LdtRJgXF8OEHFH0Kmsaoe3glRb4EjzJCceLFy0PAvZ_1P",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 189.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.qdwextc6ysh"
},
"kix.qmpm4klwgkv8": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/EnYr0PGkpxRsv5u2FrjD6Ni1ssW7ftY3RmS8vZAbLdQdtT1RU0cO-ttpQG-1n_iyS3o2KS03AIbBlZViqojW_sMFPnb-u-iG2XjTpV5pBUvgtWuSoSNSfVf9ASFsnkBk7eNnZYUXHf_9TfliAV2ZBZ9WnqVMfi0n",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 103.13839285714286,
"unit": "PT"
},
"width": {
"magnitude": 169.875,
"unit": "PT"
}
}
}
},
"objectId": "kix.qmpm4klwgkv8"
},
"kix.qp719ylpm6v9": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/6s75wNPJEalDqpxOg9lw0dEii0c--kU7vJu_PaQvIPnZeYPk6_834WvKZ1GxUwrgxSNw9WhRlTD6X54u6-lHUgwtqzPAmSeFnd23JniaxJGwGVsPux7Takhc1c1tHT89nBv37SfAKNf1TkFQ4T5xlkFec4k1Xt6d",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 324.0,
"unit": "PT"
},
"width": {
"magnitude": 149.85000000000002,
"unit": "PT"
}
}
}
},
"objectId": "kix.qp719ylpm6v9"
},
"kix.qu1stbpqly5r": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/opy3GJLUXtVv7dvKte4LPIRFIdgATHTdiJ6K2P48h2o4ZzXCI0LIn_DnsPpUy4yvGk24Oa_Go80KUEwzj4FPOK0imcSGbBQOARpRKo7469f0gedLVuJh1AitT3w76K0qMFUIt3e04mBlLq6Ff1e-dBIwsHqAu-_W",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 191.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.qu1stbpqly5r"
},
"kix.qu7litrheizj": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/tH7eBejcg7BLYLNk7jYZK9Th0GqEZl3oAIYHc9viuqj_29r40al5uAwlMKpy2C3clnI2kR3oB04zQb9SGThBoz7hold-qq7nI_tZNWo7krA6n2j28l1o8UHkHpQGNwLYn862FJmMzAojJaT1SLKUs_jqyOqnb_8o",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 324.0,
"unit": "PT"
},
"width": {
"magnitude": 149.3217391304348,
"unit": "PT"
}
}
}
},
"objectId": "kix.qu7litrheizj"
},
"kix.s4pnpsjksset": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/Byl_OzK5flu0HoRaZ7DrEf7qJVwvKY8GDoxzGm45sv67ic3IjlVgbbcNx4AVSdiIYvXa1HVeSGPOODSN734ZCJZPHZq4USx0g2XPjH10Oqe-tSbF69Obu7h_unnPBYhdJkn50eIJOrtfgaa_W25eWoTptSBKlNSV",
"cropProperties": {
"offsetBottom": 0.0002119093,
"offsetTop": 0.0002119093
}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 235.82451923076925,
"unit": "PT"
},
"width": {
"magnitude": 231.375,
"unit": "PT"
}
}
}
},
"objectId": "kix.s4pnpsjksset"
},
"kix.u8d6iv97bzy1": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/8pUBv0V78TAbkyjOxevldfjuOcKZwNSgifENC9B8q5jKc_l78lng5Uebv0ZxSuk_fVDGgFITLhjiU3hwv5fWu16Oo5Wwu67INxBzgHKv1QnSunvM_7dLUxd1r79qr5g7SmOqEJV36PiaE50FLlO1Xj903BgdZVhh",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 277.2,
"unit": "PT"
},
"width": {
"magnitude": 127.65789473684211,
"unit": "PT"
}
}
}
},
"objectId": "kix.u8d6iv97bzy1"
},
"kix.uca4yzl4krz9": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/sQVYkXFN-gl5BXB9y4UUbz9gZyzvs_TqKjJ6wOtR56h4KbGfbhVoAtJOnMksHL1XgIv_x68x1NJ4Sq4YSqaY3ZNj1TjC_5V25bjW0vXF0uk8eFkmBOQgG_ZqKGmsaAqGjtM6LjZKds2mP3VTWCD3YW1xsEaqMaq-",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 142.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.uca4yzl4krz9"
},
"kix.v4watl264rvd": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/HRmgOQKEwilFuan7dYQGsqOfyxl2nnzD-rQVnYwXncqLl0GkB30mCr3gBw8NbsphlQI3o08K5WFZd7XAxYycLfZo5sDvgAeTXugSRDk-28K-Aqoj4a-zUqaXY16SX6-jQ5bTF8K1jvscTGvT4KdOtcSFebDCvbpl",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 168.01021634615387,
"unit": "PT"
},
"width": {
"magnitude": 398.625,
"unit": "PT"
}
}
}
},
"objectId": "kix.v4watl264rvd"
},
"kix.vsyt8x9u450c": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/ldAZkq2iNmk5dbsUTpsj4pWR6BipkOi0CWUeiMfyGty9Z9RwyV5955ARY12HUoQNUsqHA27aPjJpXLktmnBxqm6jPTg5SAG1u0V24eRe0ndpTeajGG1uPN_-RXlh8DfDqidfTrf_5PL08b5XT52gVvQUXSUFmq96",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 57.88637695312718,
"unit": "PT"
},
"width": {
"magnitude": 222.63991135818148,
"unit": "PT"
}
}
}
},
"objectId": "kix.vsyt8x9u450c"
},
"kix.vxc4y3subwbz": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/Q2KQrbx8TbIlWG2cekRoy80yfFuRQLV63xDC0QnpVUjKMpxEDbbFR_X_O6ZViuWhxWtT8DmGwSk96eK1sk3tNkHqfDNoJMoK4EOJZ4RSUf7CNN_fJBlPITEyNmGfH3OC4LmYnJe7PO8DncQtO9ws8wnWYydqgtna",
"cropProperties": {
"offsetLeft": 0.0011463414,
"offsetRight": 0.0011463414
}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 105.76005859375073,
"unit": "PT"
},
"width": {
"magnitude": 191.42570605468882,
"unit": "PT"
}
}
}
},
"objectId": "kix.vxc4y3subwbz"
},
"kix.wwxo1r4c7v0g": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/7Nc4Uswj7fzBwXTzcSGgab_U0YiQU9GRlgDmXNzzxoeeWvxnkE0weto2uyabJSMSRC8t3AMbwllZ2e2vbP4zfGlSpriczXVzMy2YK-UWgUxrwmbJK2c40B6A2vdR3fK16LM3Ea46besVXbe8ldSD0yVkHzjT2Zjw",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 83.10737304687427,
"unit": "PT"
},
"width": {
"magnitude": 247.43331520773933,
"unit": "PT"
}
}
}
},
"objectId": "kix.wwxo1r4c7v0g"
},
"kix.wz46ijx4irp7": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/rfV5vj2StrNJNqnreQXzmfKPtB452SE58S17jzWkEJeWdEN5xcWjJbQKrTjutUC9wXX82uC2UCaOOj9koEu-T24H1vg9cr9HhOWOBGr2WV7to7jyR2bhDzRfCqdpn8cTLhVRvb9Fto2XSIFiTMVUytE9At-1B2Gs",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 341.625,
"unit": "PT"
},
"width": {
"magnitude": 296.6614806866953,
"unit": "PT"
}
}
}
},
"objectId": "kix.wz46ijx4irp7"
},
"kix.x8fkh4sa1hxv": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh6.googleusercontent.com/eHPEIILF67nbkoM1QjJTx_xls8Zh34C46kGMqdWCkLGHg6Lp6Sl_SojvxwVIfCkq1qDVP_654CYLqDvi6MGyZ8Cr9sD_T0lSW59vvhvrMjU3svyaqA0KDXybD0GqdzbpY1TMA4OGrQAu3hmz8SWx78txiw4dVJJc",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 53.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.x8fkh4sa1hxv"
},
"kix.xhbjqrseo000": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh3.googleusercontent.com/6TEKwbvtEVqjDW5kloZS8AcnzKFM23PgkyQ52zWM3orQT1DzDayE6Yn-sl-7e7fgReHx-x72qARedOBX6Bvg2-E9b-s14YajUTARZu5nO1LuJPYth6KSAQ-K2vvR7DsJfHZT4GYoFNLc-ESf004oYizuoR38ViLb",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 360.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.xhbjqrseo000"
},
"kix.y56zhtc6tete": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/TX7mYjF1myvh7SZNnQvoIOLV7YYPxGj_E7yebGD9cSSTgH_QqJWACM1ukD_vGcKuezyr7oh7ZCqTx1R_AEDWs7YXzxZcFdA_FZAyL5blk5P1chhEgUIR3B9ZCmLMyPf_0i5Oac3ElryG52E8WlABdhYDYBhmj4_Y",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 277.2,
"unit": "PT"
},
"width": {
"magnitude": 127.65789473684211,
"unit": "PT"
}
}
}
},
"objectId": "kix.y56zhtc6tete"
},
"kix.ybkauijvqfm": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh4.googleusercontent.com/IX3f7bHhcgOp4IyDgjV0w0mlJQs4SfHUzlqAieov7yqiE5u5PSzGRDGZOghRPzu8aoJhTkgUCmPGme3TQLJEccCT7IPCxdUsg_KxP6Z1Tx2U4BngZ5Sf4xjc74DCM-thAoY8lEcmw-_bWBjEWXivwid6c7kO20zO",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 89.14182692307692,
"unit": "PT"
},
"width": {
"magnitude": 295.875,
"unit": "PT"
}
}
}
},
"objectId": "kix.ybkauijvqfm"
},
"kix.yg4ec5m6jurg": {
"inlineObjectProperties": {
"embeddedObject": {
"embeddedObjectBorder": {
"color": {
"color": {
"rgbColor": {}
}
},
"dashStyle": "SOLID",
"propertyState": "NOT_RENDERED",
"width": {
"unit": "PT"
}
},
"imageProperties": {
"contentUri": "https://lh5.googleusercontent.com/rmkwBhxuiG0jlFP1FlzgBrzvxtbWKHSUfdGi4KU7vtcl8JiSMNC8PCnTCmYNxirQ5BOjcXkXIt203AiFZkO-lHXripzSrgYRXZ0AS2eikKFrtCw1xrVmSlUpkzeP71iCLv3SjFd5Q0OMAPl4U3q7H1nIHmyVLiK4",
"cropProperties": {}
},
"marginBottom": {
"magnitude": 9.0,
"unit": "PT"
},
"marginLeft": {
"magnitude": 9.0,
"unit": "PT"
},
"marginRight": {
"magnitude": 9.0,
"unit": "PT"
},
"marginTop": {
"magnitude": 9.0,
"unit": "PT"
},
"size": {
"height": {
"magnitude": 334.0,
"unit": "PT"
},
"width": {
"magnitude": 468.0,
"unit": "PT"
}
}
}
},
"objectId": "kix.yg4ec5m6jurg"
}
},
"lists": {
"kix.1uilxai3pj4c": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.273gbycvqbpv": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.2zlpnbfk4wvt": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.3knqjs5j3c0a": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.3oxmeviaenmj": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.427ii03mgly7": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.48iczhtzcs3b": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.6o706gv3wzlk": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.7lxk6cj2wia5": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.7mxsheck861c": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.8ez3h4yz39jw": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.8vyn4hgvahf0": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.9134weqz4412": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.9n48gbutqkqj": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.a0afkqdhia6w": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.ai6cqz99fg9d": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.bqjvm8ayuf6j": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.cchm97rrif4y": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.csj6uf7em3c1": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"fontSize": {
"magnitude": 10.5,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.2627451,
"green": 0.2509804,
"red": 0.23529412
}
}
},
"underline": false,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.d576od65k8ms": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.dd74uwq4xsf7": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.dvi16evrie1w": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.fhl8uuuumoyx": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.jp9pn1kn09ii": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.kic1o5ute4a9": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.l6dfwvhprcyp": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"fontSize": {
"magnitude": 10.5,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.2627451,
"green": 0.2509804,
"red": 0.23529412
}
}
},
"underline": false,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.m6p9bvttqrj7": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.m7b3lhbn68t8": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.mu523fs8cham": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"fontSize": {
"magnitude": 10.5,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
},
"underline": false,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.nbt6hoj127n1": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"fontSize": {
"magnitude": 10.5,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.36078432,
"green": 0.36078432,
"red": 0.36078432
}
}
},
"underline": false,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphType": "GLYPH_TYPE_UNSPECIFIED",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.nvpgk8rs848i": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.pltqaannoum0": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.ptpqb595bvtz": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.qhr2vepoqj4a": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.qly88kcrr56l": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.qn42jvni1ee0": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.swaau9ft1off": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.ueq2r24kq7ie": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.wd2x8hdc8yp6": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.wd5tola2twcj": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "-",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.x5b9lhuyy497": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.x6zo8jl3cnpv": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%2.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%5.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6.",
"glyphType": "DECIMAL",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7.",
"glyphType": "ALPHA",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "END",
"glyphFormat": "%8.",
"glyphType": "ROMAN",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.y1airoxi6fpx": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
},
"kix.y1tmgniuwb75": {
"listProperties": {
"nestingLevels": [
{
"bulletAlignment": "START",
"glyphFormat": "%0",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 18.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 36.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%1",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 54.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 72.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%2",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 90.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 108.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%3",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 126.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 144.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%4",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 162.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 180.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%5",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 198.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 216.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%6",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 234.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 252.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%7",
"glyphSymbol": "β",
"indentFirstLine": {
"magnitude": 270.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 288.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
},
{
"bulletAlignment": "START",
"glyphFormat": "%8",
"glyphSymbol": "β ",
"indentFirstLine": {
"magnitude": 306.0,
"unit": "PT"
},
"indentStart": {
"magnitude": 324.0,
"unit": "PT"
},
"startNumber": 1,
"textStyle": {
"underline": false
}
}
]
}
}
},
"namedStyles": {
"styles": [
{
"namedStyleType": "NORMAL_TEXT",
"paragraphStyle": {
"alignment": "START",
"avoidWidowAndOrphan": true,
"borderBetween": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderBottom": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderLeft": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderRight": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"borderTop": {
"color": {},
"dashStyle": "SOLID",
"padding": {
"unit": "PT"
},
"width": {
"unit": "PT"
}
},
"direction": "LEFT_TO_RIGHT",
"indentEnd": {
"unit": "PT"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"lineSpacing": 115.0,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"shading": {
"backgroundColor": {}
},
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"spacingMode": "NEVER_COLLAPSE"
},
"textStyle": {
"backgroundColor": {},
"baselineOffset": "NONE",
"bold": false,
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {}
}
},
"italic": false,
"smallCaps": false,
"strikethrough": false,
"underline": false,
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
},
{
"namedStyleType": "HEADING_1",
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.ait8gx84hw5v",
"keepLinesTogether": true,
"keepWithNext": true,
"namedStyleType": "HEADING_1",
"pageBreakBefore": false,
"spaceAbove": {
"magnitude": 10.0,
"unit": "PT"
},
"spacingMode": "NEVER_COLLAPSE"
},
"textStyle": {
"fontSize": {
"magnitude": 16.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
},
{
"namedStyleType": "HEADING_2",
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.d2tafm78btb1",
"keepLinesTogether": true,
"keepWithNext": true,
"namedStyleType": "HEADING_2",
"pageBreakBefore": false,
"spaceAbove": {
"magnitude": 10.0,
"unit": "PT"
},
"spacingMode": "NEVER_COLLAPSE"
},
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 13.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
},
{
"namedStyleType": "HEADING_3",
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.6e7xev3x8hg1",
"keepLinesTogether": true,
"keepWithNext": true,
"namedStyleType": "HEADING_3",
"pageBreakBefore": false,
"spaceAbove": {
"magnitude": 8.0,
"unit": "PT"
}
},
"textStyle": {
"bold": true,
"fontSize": {
"magnitude": 12.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.4,
"green": 0.4,
"red": 0.4
}
}
}
}
},
{
"namedStyleType": "HEADING_4",
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"keepLinesTogether": true,
"keepWithNext": true,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spaceAbove": {
"magnitude": 14.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 4.0,
"unit": "PT"
}
},
"textStyle": {
"fontSize": {
"magnitude": 12.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.4,
"green": 0.4,
"red": 0.4
}
}
}
}
},
{
"namedStyleType": "HEADING_5",
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"keepLinesTogether": true,
"keepWithNext": true,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spaceAbove": {
"magnitude": 12.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 4.0,
"unit": "PT"
}
},
"textStyle": {
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.4,
"green": 0.4,
"red": 0.4
}
}
}
}
},
{
"namedStyleType": "HEADING_6",
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"keepLinesTogether": true,
"keepWithNext": true,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spaceAbove": {
"magnitude": 12.0,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 4.0,
"unit": "PT"
}
},
"textStyle": {
"fontSize": {
"magnitude": 11.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.4,
"green": 0.4,
"red": 0.4
}
}
},
"italic": true
}
},
{
"namedStyleType": "TITLE",
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"headingId": "h.7sa4zxkhmsum",
"keepLinesTogether": true,
"keepWithNext": true,
"namedStyleType": "TITLE",
"pageBreakBefore": false,
"spacingMode": "NEVER_COLLAPSE"
},
"textStyle": {
"fontSize": {
"magnitude": 21.0,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Roboto",
"weight": 400
}
}
},
{
"namedStyleType": "SUBTITLE",
"paragraphStyle": {
"direction": "LEFT_TO_RIGHT",
"keepLinesTogether": true,
"keepWithNext": true,
"namedStyleType": "NORMAL_TEXT",
"pageBreakBefore": false,
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"magnitude": 16.0,
"unit": "PT"
}
},
"textStyle": {
"fontSize": {
"magnitude": 15.0,
"unit": "PT"
},
"foregroundColor": {
"color": {
"rgbColor": {
"blue": 0.4,
"green": 0.4,
"red": 0.4
}
}
},
"italic": false,
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
}
}
]
},
"revisionId": "ANeT5PSZCp-s8kajClx80zHmYb93nUiWQUSvyYR-jZyo3P0gGIPUwHD2BYMRlnfgT1KhFJig_pYHyfck2T37Lw",
"suggestionsViewMode": "PREVIEW_WITHOUT_SUGGESTIONS",
"title": "In-App Purchase codelab (dart server)"
} | codelabs/tooling/claat_export_images/test/data/exports/1EQtDsZv6vkvgreuOrF0KMo6kiKJ-534DShEFGankv20.json/0 | {
"file_path": "codelabs/tooling/claat_export_images/test/data/exports/1EQtDsZv6vkvgreuOrF0KMo6kiKJ-534DShEFGankv20.json",
"repo_id": "codelabs",
"token_count": 2496602
} | 98 |
// Copyright 2022 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:codelab_rebuild/codelab_rebuild.dart';
import 'package:test/test.dart';
void main() {
test('Blueprint.load() from simple blueprint', () {
final input = '''
name: Cupertino Store script
steps:
- name: step_00
steps:
- name: Remove generated code.
rmdir: step_00
- name: Create project.
flutter: create cupertino_store
- name: blueprint
path: cupertino_store/analysis_options.yaml
replace-contents: |
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
include: ../../analysis_options.yaml
- name: Add intl dependency.
path: cupertino_store
flutter: pub add intl
- name: Remove the README.md.
rm: cupertino_store/README.md
- name: Remove the Android, Web, and Desktop runners
path: cupertino_store
rmdirs:
- android
- linux
- macos
- web
- windows
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
expect(blueprint.name, equals('Cupertino Store script'));
expect(blueprint.steps.length, equals(1));
expect(blueprint.steps[0].steps.length, equals(6));
expect(blueprint.steps[0].steps[0].isValid, equals(true));
expect(blueprint.steps[0].steps[0].name, equals('Remove generated code.'));
expect(blueprint.steps[0].steps[0].rmdir, equals('step_00'));
expect(blueprint.steps[0].steps[1].isValid, equals(true));
expect(blueprint.steps[0].steps[2].isValid, equals(true));
expect(blueprint.steps[0].steps[2].name, equals('blueprint'));
expect(blueprint.steps[0].steps[2].path,
equals('cupertino_store/analysis_options.yaml'));
expect(blueprint.steps[0].steps[2].replaceContents, equals('''
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
include: ../../analysis_options.yaml
'''));
expect(blueprint.steps[0].steps[3].isValid, equals(true));
expect(blueprint.steps[0].steps[4].isValid, equals(true));
expect(blueprint.steps[0].steps[5].isValid, equals(true));
expect(blueprint.steps[0].steps[5].name,
equals('Remove the Android, Web, and Desktop runners'));
expect(
blueprint.steps[0].steps[5].path,
equals('cupertino_store'),
);
expect(
blueprint.steps[0].steps[5].rmdirs,
equals(['android', 'linux', 'macos', 'web', 'windows']),
);
});
test('Valid base64-contents blueprint', () {
final input = '''
name: Valid base64-contents blueprint
steps:
- name: step_00
steps:
- name: base64-contents.
path: some-file.txt
base64-contents: SGVsbG8sIHdvcmxkIQo=
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('Valid replace-contents blueprint', () {
final input = '''
name: Valid base64-contents blueprint
steps:
- name: step_00
steps:
- name: replace-contents.
path: some-file.txt
replace-contents: Hello world!
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('Valid patch blueprint', () {
final input = '''
name: Valid patch blueprint
steps:
- name: step_00
steps:
- name: replace-contents.
path: some-file.txt
patch: Not actually a delta
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('Valid patch-u blueprint', () {
final input = '''
name: Valid patch-u blueprint
steps:
- name: step_00
steps:
- name: replace-contents.
path: some-file.txt
patch-u: Not actually a delta
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('Valid patch-c blueprint', () {
final input = '''
name: Valid patch-c blueprint
steps:
- name: step_00
steps:
- name: replace-contents.
path: some-file.txt
patch-c: Not actually a delta
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('Invalid blueprint, patch without path', () {
final input = '''
name: Cupertino Store script
steps:
- name: step_00
steps:
- name: patch without path.
patch: foo
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(false));
});
test('Invalid blueprint, patch-u without path', () {
final input = '''
name: Cupertino Store script
steps:
- name: step_00
steps:
- name: patch without path.
patch-u: foo
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(false));
});
test('Invalid blueprint, patch-c without path', () {
final input = '''
name: Cupertino Store script
steps:
- name: step_00
steps:
- name: patch without path.
patch-c: foo
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(false));
});
test('Invalid blueprint, replace-contents without path', () {
final input = '''
name: replace-contents without path
steps:
- name: step_00
steps:
- name: replace-contents without path.
replace-contents: contents
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(false));
});
test('Valid sub-step blueprint', () {
final input = '''
name: Valid sub-step blueprint
steps:
- name: Steps
steps:
- name: Random valid patch
path: some/dir
patch: foo
- name: Sub Steps
steps:
- name: Random valid patch
path: some/other/dir
patch: bar
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('Invalid sub-step blueprint', () {
final input = '''
name: Invalid sub-step blueprint
steps:
- name: Steps
steps:
- name: Random valid patch
path: some/dir
patch: foo
- name: Sub Steps
steps:
- name: Random valid patch
path: some/other/dir
patch: bar
- name: replace-contents without path.
replace-contents: contents
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(false));
});
test('valid pod blueprint', () {
final input = '''
name: Cupertino Store script
steps:
- name: Rebuild ios/Podfile.lock
path: adaptive_app/ios
pod: update
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('valid rm blueprint', () {
final input = '''
name: Cupertino Store script
steps:
- name: valid rm
rm: foo
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('valid dart blueprint', () {
final input = '''
name: Cupertino Store script
steps:
- name: valid dart
dart: foo
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('valid flutter blueprint', () {
final input = '''
name: Cupertino Store script
steps:
- name: valid flutter
flutter: foo
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('valid git blueprint', () {
final input = '''
name: Cupertino Store script
steps:
- name: valid git
git: foo
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('Platform depenedant flutter', () {
final input = '''
name: Cupertino Store script
steps:
- name: valid flutter on macOS and Windows
platforms:
- macos
- windows
flutter: foo
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('retrieve http', () {
final input = '''
name: Retrieve http
steps:
- name: Retrieve duktape
path: ffigen_app/src
retrieve-url: https://duktape.org/duktape-2.7.0.tar.xz
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('unarchive with tar', () {
final input = '''
name: Unarchive
steps:
- name: Unarchive duktape
path: ffigen_app/src
tar: xvf duktape-2.7.0.tar.xz
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('unarchive with 7z', () {
final input = '''
name: Unarchive
steps:
- name: Unarchive duktape
path: ffigen_app/src
7z: x duktape-2.7.0.tar.xz
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('Add file to Xcode project, missing path', () {
final input = '''
name: Update Xcode configuration
steps:
- name: Add file to xcode
xcode-add-file: AccelerometerStreamHandler.swift
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(false));
});
test('Add file to Xcode project', () {
final input = '''
name: Update Xcode configuration
steps:
- name: Add file to xcode
xcode-add-file: AccelerometerStreamHandler.swift
xcode-project-path: ios/Runner.xcodeproj
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
test('Strip lines containing "DEVELOPMENT_TEAM ="', () {
final input = '''
name: Strip lines
steps:
- name: Strip DEVELOPMENT_TEAM
strip-lines-containing: DEVELOPMENT_TEAM =
path: codelab_app/ios/Runner.xcodeproj/project.pbxproj
''';
final blueprint = Blueprint.fromString(input);
expect(blueprint.isValid, equals(true));
});
}
| codelabs/tooling/codelab_rebuild/test/load_config_test.dart/0 | {
"file_path": "codelabs/tooling/codelab_rebuild/test/load_config_test.dart",
"repo_id": "codelabs",
"token_count": 4148
} | 99 |
#import "GeneratedPluginRegistrant.h"
| codelabs/webview_flutter/step_06/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/webview_flutter/step_06/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 100 |
include: ../../analysis_options.yaml
| codelabs/webview_flutter/step_10/analysis_options.yaml/0 | {
"file_path": "codelabs/webview_flutter/step_10/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 101 |
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
enum _MenuOptions {
navigationDelegate,
userAgent,
javascriptChannel,
listCookies,
clearCookies,
addCookie,
setCookie,
removeCookie,
}
class Menu extends StatefulWidget {
const Menu({required this.controller, super.key});
final WebViewController controller;
@override
State<Menu> createState() => _MenuState();
}
class _MenuState extends State<Menu> {
final cookieManager = WebViewCookieManager();
@override
Widget build(BuildContext context) {
return PopupMenuButton<_MenuOptions>(
onSelected: (value) async {
switch (value) {
case _MenuOptions.navigationDelegate:
await widget.controller
.loadRequest(Uri.parse('https://youtube.com'));
case _MenuOptions.userAgent:
final userAgent = await widget.controller
.runJavaScriptReturningResult('navigator.userAgent');
if (!context.mounted) return;
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text('$userAgent'),
));
case _MenuOptions.javascriptChannel:
await widget.controller.runJavaScript('''
var req = new XMLHttpRequest();
req.open('GET', "https://api.ipify.org/?format=json");
req.onload = function() {
if (req.status == 200) {
let response = JSON.parse(req.responseText);
SnackBar.postMessage("IP Address: " + response.ip);
} else {
SnackBar.postMessage("Error: " + req.status);
}
}
req.send();''');
case _MenuOptions.clearCookies:
await _onClearCookies();
case _MenuOptions.listCookies:
await _onListCookies(widget.controller);
case _MenuOptions.addCookie:
await _onAddCookie(widget.controller);
case _MenuOptions.setCookie:
await _onSetCookie(widget.controller);
case _MenuOptions.removeCookie:
await _onRemoveCookie(widget.controller);
}
},
itemBuilder: (context) => [
const PopupMenuItem<_MenuOptions>(
value: _MenuOptions.navigationDelegate,
child: Text('Navigate to YouTube'),
),
const PopupMenuItem<_MenuOptions>(
value: _MenuOptions.userAgent,
child: Text('Show user-agent'),
),
const PopupMenuItem<_MenuOptions>(
value: _MenuOptions.javascriptChannel,
child: Text('Lookup IP Address'),
),
const PopupMenuItem<_MenuOptions>(
value: _MenuOptions.clearCookies,
child: Text('Clear cookies'),
),
const PopupMenuItem<_MenuOptions>(
value: _MenuOptions.listCookies,
child: Text('List cookies'),
),
const PopupMenuItem<_MenuOptions>(
value: _MenuOptions.addCookie,
child: Text('Add cookie'),
),
const PopupMenuItem<_MenuOptions>(
value: _MenuOptions.setCookie,
child: Text('Set cookie'),
),
const PopupMenuItem<_MenuOptions>(
value: _MenuOptions.removeCookie,
child: Text('Remove cookie'),
),
],
);
}
Future<void> _onListCookies(WebViewController controller) async {
final String cookies = await controller
.runJavaScriptReturningResult('document.cookie') as String;
if (!mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(cookies.isNotEmpty ? cookies : 'There are no cookies.'),
),
);
}
Future<void> _onClearCookies() async {
final hadCookies = await cookieManager.clearCookies();
String message = 'There were cookies. Now, they are gone!';
if (!hadCookies) {
message = 'There were no cookies to clear.';
}
if (!mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(message),
),
);
}
Future<void> _onAddCookie(WebViewController controller) async {
await controller.runJavaScript('''var date = new Date();
date.setTime(date.getTime()+(30*24*60*60*1000));
document.cookie = "FirstName=John; expires=" + date.toGMTString();''');
if (!mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Custom cookie added.'),
),
);
}
Future<void> _onSetCookie(WebViewController controller) async {
await cookieManager.setCookie(
const WebViewCookie(name: 'foo', value: 'bar', domain: 'flutter.dev'),
);
if (!mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Custom cookie is set.'),
),
);
}
Future<void> _onRemoveCookie(WebViewController controller) async {
await controller.runJavaScript(
'document.cookie="FirstName=John; expires=Thu, 01 Jan 1970 00:00:00 UTC" ');
if (!mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Custom cookie removed.'),
),
);
}
}
| codelabs/webview_flutter/step_11/lib/src/menu.dart/0 | {
"file_path": "codelabs/webview_flutter/step_11/lib/src/menu.dart",
"repo_id": "codelabs",
"token_count": 2139
} | 102 |
This directory holds optimized versions of the applications in
`case_study/code_size/unoptimized/`.
| devtools/case_study/code_size/optimized/README.md/0 | {
"file_path": "devtools/case_study/code_size/optimized/README.md",
"repo_id": "devtools",
"token_count": 25
} | 103 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| devtools/case_study/code_size/optimized/code_size_images/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "devtools/case_study/code_size/optimized/code_size_images/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "devtools",
"token_count": 32
} | 104 |
# code_size_package
A Flutter project demonstrating code size issues with packages.
| devtools/case_study/code_size/optimized/code_size_package/README.md/0 | {
"file_path": "devtools/case_study/code_size/optimized/code_size_package/README.md",
"repo_id": "devtools",
"token_count": 20
} | 105 |
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
| devtools/case_study/code_size/unoptimized/code_size_package/android/gradle.properties/0 | {
"file_path": "devtools/case_study/code_size/unoptimized/code_size_package/android/gradle.properties",
"repo_id": "devtools",
"token_count": 39
} | 106 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| devtools/case_study/memory_leaks/images_1/android/gradle.properties/0 | {
"file_path": "devtools/case_study/memory_leaks/images_1/android/gradle.properties",
"repo_id": "devtools",
"token_count": 31
} | 107 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| devtools/case_study/memory_leaks/leaking_counter_1/android/gradle.properties/0 | {
"file_path": "devtools/case_study/memory_leaks/leaking_counter_1/android/gradle.properties",
"repo_id": "devtools",
"token_count": 31
} | 108 |
name: memory_leak
description: Flutter memory leak example app to serve as a DevTools case study.
environment:
sdk: ^3.0.0
dependencies:
flutter:
sdk: flutter
http: ^1.1.0
intl: any
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
| devtools/case_study/memory_leaks/memory_leak_app/pubspec.yaml/0 | {
"file_path": "devtools/case_study/memory_leaks/memory_leak_app/pubspec.yaml",
"repo_id": "devtools",
"token_count": 112
} | 109 |
---
redirect_to: https://flutter.dev/docs/development/tools/devtools/debugger
---
| devtools/docs/debugger.md/0 | {
"file_path": "devtools/docs/debugger.md",
"repo_id": "devtools",
"token_count": 28
} | 110 |
## What is this?
This is a companion repo to the main Flutter repo. It contains the source code
for a suite of performance tools for Dart and Flutter. All of the core logic for
the devtools app is in package:devtools_app.
## Getting started
For documentation on installing and trying out DevTools, please see our
[docs](https://flutter.dev/docs/development/tools/devtools/).
## Feedback
Feedback and issues are best reported at
https://github.com/flutter/devtools/issues. Thanks for trying out DevTools!
## Terms and Privacy
By using Dart DevTools, you agree to the
[Google Terms of Service](https://policies.google.com/terms).
| devtools/packages/devtools_app/README.md/0 | {
"file_path": "devtools/packages/devtools_app/README.md",
"repo_id": "devtools",
"token_count": 172
} | 111 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.