Skip to content

Commit

Permalink
Remove speech recog and appcenter
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Mar 15, 2024
1 parent 3a5ff58 commit 5572829
Show file tree
Hide file tree
Showing 8 changed files with 298 additions and 194 deletions.
418 changes: 284 additions & 134 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/react": "^3.0.10",
"astro": "^4.4.5",
"@astrojs/react": "^3.1.0",
"astro": "^4.5.4",
"github-slugger": "^2.0.0",
"prismjs": "^1.29.0",
"react-tabs": "^6.0.1",
"starlight": "^0.3.9",
"starlight-blog": "^0.5.0"
"starlight-blog": "^0.5.1"
},
"engines": {
"node": ">=18"
Expand Down
3 changes: 0 additions & 3 deletions src/components/Boilerplate/Components/AndroidManifest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ const AndroidManifest = (props: Props) => {
if (has('httptransfers')) {
src += addP('FOREGROUND_SERVICE_DATA_SYNC');
}
if (has('speech')) {
src += addP("MICROPHONE");
}

src += `
</manifest>`;
Expand Down
3 changes: 0 additions & 3 deletions src/components/Boilerplate/Components/AppleInfoPlist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ const AppleInfoPlist = (props: Props) => {
if (has('blehosting') || has('ble')) {
addKey('NSBluetoothPeripheralUsageDescription');
}
if (has('speech')) {
addKey('NSSpeechRecognitionUsageDescription');
}
if (has('jobs') || Data.usesPush(props.components) || has('gps') || has('geofencing') || has('beacons') || has('bluetoothle') || has('blehosting')) {
src += `
<key>UIBackgroundModes</key>
Expand Down
20 changes: 1 addition & 19 deletions src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ export const ShinyComponents: ShinyComponent[] = [
"androidIntent": "Shiny.ShinyNotificationIntents.NotificationClickAction",
"version": DEFAULT_VERSION
},
{
"id": "speech",
"nuget": "Shiny.SpeechRecognition",
"description": "Speech Recognition",
"version": DEFAULT_VERSION
},
{
"id": "push",
"nuget": "Shiny.Push",
Expand All @@ -135,24 +129,12 @@ export const ShinyComponents: ShinyComponent[] = [
"description": "Configuration",
"version": DEFAULT_VERSION
},
{
"id": "appcenter",
"nuget": "Shiny.Logging.AppCenter",
"description": "AppCenter Logging",
"version": DEFAULT_VERSION
},
{
"id": "sqlite",
"nuget": "Shiny.Logging.SQLite",
"description": "SQLite Logging",
"version": DEFAULT_VERSION
}
// {
// "id": "framework",
// "nuget": "Shiny.Framework",
// "description": "Shiny Framework (Brings Together Prism, ReactiveUI, & Shiny)",
// "version": "3.0.0-alpha-0065"
// }
}
];

export const Data = {
Expand Down
15 changes: 1 addition & 14 deletions src/content/docs/client/logging.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ Logging in Shiny is built into the very core of the framework. We use Microsoft
configuration and providers.

With Shiny and especially background services, it is important to know that providers like debug and console won't work. The reason is simple, when the background
delegates/jobs execute, the debugger is not attached. Thus, we recommend using loggers that write to a file or a database.
delegates/jobs execute, the debugger is not attached. Thus, we recommend using loggers that write to a local file or some online service

Some suggested logging provider nugets:

|Provider|NuGet|
|--------|-----|
|Shiny.Logging.Sqlite|<NugetBadge name="Shiny.Logging.Sqlite" />|
|Shiny.Logging.AppCenter|<NugetBadge name="Shiny.Logging.AppCenter" />|

## Logging Within Your App

Expand All @@ -36,18 +35,6 @@ public class MyThing {
}
```


## App AppCenter

The AppCenter library can be used without any other Shiny module or wiring. It only requires the standing Microsoft.Logging.Extensions wiring

<MauiRegistration componentName="appcenter" />

:::tip
Notice how there is no reference to AppCenter within your actual code other than the registration
:::


## SQLite

SQLite logging is great for local testing of your background delegates as it doesn't require much additional setup
Expand Down
17 changes: 0 additions & 17 deletions src/content/docs/client/other/speechrecognition.mdx

This file was deleted.

10 changes: 9 additions & 1 deletion src/content/docs/release-notes/client/v30.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ import GitHubIssue from '../../../../components/GitHubIssue.tsx';
* <RN type="fix">Characteristic async extension signature fixes</RN><GitHubIssue number={1420} />

## Local Notifications
* <RN type="fix" platform="Android">Use notification audio channel</RN><GitHubIssue number={1392} pr={true} contributor="msousley" />

* <RN type="enhancement" breaking={true}>RequestAccess & RequestRequiredAccess(Notification) now return a NotificationAccessState which includes states for all the various permissions needed for a notification</RN>
* <RN type="enhancement">INotificationManager.GetCurrentAccess added which allows you to get current permission set without requesting access from user</RN>
* <RN type="enhancement" platform="iOS" breaking={true}>IAppleNotificationManager now allows more ways to control the native platform</RN>
* <RN type="fix" platform="Android">Use notification audio channel</RN><GitHubIssue number={1392} pr={true} contributor="msousley" />

## Push
* <RN type="enhancement" breaking={true}>PushDelegate now contains an OnUnRegistered event</RN>
Expand All @@ -36,6 +38,12 @@ import GitHubIssue from '../../../../components/GitHubIssue.tsx';
* <RN type="enhancement">Microsoft.Azure.NotificationHubs updated to 4.2.0 for FCMv1 parameter which is set as default now</RN>
* <RN type="enhancement">IPushManager now access NativeRegistrationToken which is useful for debugging purposes</RN>

## Speech Recognition
* <RN type="enhancement" breaking={true}>This module is now deprecated since Community Toolkit also has an offering in this space</RN>

## AppCenter Logging
* <RN type="enhancement" breaking={true}>AppCenter has officially announced they are shutting down in 2025, so this library has been removed</RN>

# 3.2.4 - February 3, 2024

## Push
Expand Down

0 comments on commit 5572829

Please sign in to comment.