Skip to content

Commit 39a77c2

Browse files
implement shorebird, debugging
1 parent 31f43da commit 39a77c2

17 files changed

Lines changed: 925 additions & 560 deletions

File tree

school_data_hub_client/lib/src/protocol/client.dart

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,20 @@ class EndpointAdmin extends _i1.EndpointRef {
170170
);
171171
}
172172

173+
/// {@category Endpoint}
174+
class EndpointDevOps extends _i1.EndpointRef {
175+
EndpointDevOps(_i1.EndpointCaller caller) : super(caller);
176+
177+
@override
178+
String get name => 'devOps';
179+
180+
_i2.Future<void> resetDbAndCreateAdmin() => caller.callServerEndpoint<void>(
181+
'devOps',
182+
'resetDbAndCreateAdmin',
183+
{},
184+
);
185+
}
186+
173187
/// {@category Endpoint}
174188
class EndpointMissedSchoolday extends _i1.EndpointRef {
175189
EndpointMissedSchoolday(_i1.EndpointCaller caller) : super(caller);
@@ -1689,6 +1703,7 @@ class Client extends _i1.ServerpodClientShared {
16891703
disconnectStreamsOnLostInternetConnection,
16901704
) {
16911705
admin = EndpointAdmin(this);
1706+
devOps = EndpointDevOps(this);
16921707
missedSchoolday = EndpointMissedSchoolday(this);
16931708
auth = EndpointAuth(this);
16941709
authorization = EndpointAuthorization(this);
@@ -1719,6 +1734,8 @@ class Client extends _i1.ServerpodClientShared {
17191734

17201735
late final EndpointAdmin admin;
17211736

1737+
late final EndpointDevOps devOps;
1738+
17221739
late final EndpointMissedSchoolday missedSchoolday;
17231740

17241741
late final EndpointAuth auth;
@@ -1774,6 +1791,7 @@ class Client extends _i1.ServerpodClientShared {
17741791
@override
17751792
Map<String, _i1.EndpointRef> get endpointRefLookup => {
17761793
'admin': admin,
1794+
'devOps': devOps,
17771795
'missedSchoolday': missedSchoolday,
17781796
'auth': auth,
17791797
'authorization': authorization,
Lines changed: 21 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,30 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2-
<application
3-
android:label="school_data_hub_flutter"
4-
android:name="${applicationName}"
5-
android:icon="@mipmap/launcher_icon">
6-
<activity
7-
android:name=".MainActivity"
8-
android:exported="true"
9-
android:launchMode="singleTop"
10-
android:taskAffinity=""
11-
android:theme="@style/LaunchTheme"
12-
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
13-
android:hardwareAccelerated="true"
14-
android:windowSoftInputMode="adjustResize">
15-
<!-- Specifies an Android theme to apply to this Activity as soon as
2+
<application android:label="school_data_hub_flutter" android:name="${applicationName}" android:icon="@mipmap/launcher_icon">
3+
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:taskAffinity="" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
4+
<!-- Specifies an Android theme to apply to this Activity as soon as
165
the Android process has started. This theme is visible to the user
176
while the Flutter UI initializes. After that, this theme continues
187
to determine the Window background behind the Flutter UI. -->
19-
<meta-data
20-
android:name="io.flutter.embedding.android.NormalTheme"
21-
android:resource="@style/NormalTheme"
22-
/>
23-
<intent-filter>
24-
<action android:name="android.intent.action.MAIN"/>
25-
<category android:name="android.intent.category.LAUNCHER"/>
26-
</intent-filter>
27-
</activity>
28-
<!-- Don't delete the meta-data below.
8+
<meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme"/>
9+
<intent-filter>
10+
<action android:name="android.intent.action.MAIN"/>
11+
<category android:name="android.intent.category.LAUNCHER"/>
12+
</intent-filter>
13+
</activity>
14+
<!-- Don't delete the meta-data below.
2915
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
30-
<meta-data
31-
android:name="flutterEmbedding"
32-
android:value="2" />
33-
</application>
34-
<!-- Required to query activities that can process text, see:
16+
<meta-data android:name="flutterEmbedding" android:value="2"/>
17+
</application>
18+
<!-- Required to query activities that can process text, see:
3519
https://developer.android.com/training/package-visibility and
3620
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
3721
3822
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
39-
<queries>
40-
<intent>
41-
<action android:name="android.intent.action.PROCESS_TEXT"/>
42-
<data android:mimeType="text/plain"/>
43-
</intent>
44-
</queries>
45-
</manifest>
23+
<queries>
24+
<intent>
25+
<action android:name="android.intent.action.PROCESS_TEXT"/>
26+
<data android:mimeType="text/plain"/>
27+
</intent>
28+
</queries>
29+
<uses-permission android:name="android.permission.INTERNET"/>
30+
</manifest>

0 commit comments

Comments
 (0)