Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

upgrade template to host version 0.3.3 (#521)

Ameya Apte912576c47ab2
diff --git a/plugins/mobile-apps/.claude-plugin/plugin.json b/plugins/mobile-apps/.claude-plugin/plugin.json
index a4b103a5e..49032623c 100644
--- a/plugins/mobile-apps/.claude-plugin/plugin.json
+++ b/plugins/mobile-apps/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "mobile-app",
- "version": "0.2.0",
+ "version": "0.3.0",
"description": "Build and deploy Power Apps code apps for mobile using Expo (React Native), with native device functionality and Power Platform connectors",
"author": {
"name": "Microsoft",
diff --git a/plugins/mobile-apps/.plugin/plugin.json b/plugins/mobile-apps/.plugin/plugin.json
index a4b103a5e..49032623c 100644
--- a/plugins/mobile-apps/.plugin/plugin.json
+++ b/plugins/mobile-apps/.plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "mobile-app",
- "version": "0.2.0",
+ "version": "0.3.0",
"description": "Build and deploy Power Apps code apps for mobile using Expo (React Native), with native device functionality and Power Platform connectors",
"author": {
"name": "Microsoft",
diff --git a/plugins/mobile-apps/template/.gitignore b/plugins/mobile-apps/template/.gitignore
index 798a76bc6..031c286e4 100644
--- a/plugins/mobile-apps/template/.gitignore
+++ b/plugins/mobile-apps/template/.gitignore
@@ -1,3 +1,4 @@
+# POWER APPS MANAGED START - DO NOT REMOVE OR RENAME THE COMMENT
# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
# The following patterns were generated by expo-cli
@@ -18,6 +19,8 @@ web-build/
.env
.env*.local
+# ── Wrap build config (contains secrets — never commit) ──────────────────────
+wrap.config.json
# ── Build output / vendor ────────────────────────────────────────────────────
vendor/
@@ -30,7 +33,7 @@ ios/
# ── Auto-generated files ─────────────────────────────────────────────────────
# Generated by scripts/generate-connector-schemas.js.
src/generated/connectorSchemas.ts
-.powernative/
+power.config.json
# ── Vendor tarballs are committed intentionally — do NOT ignore ───────────────
# vendor/*.tgz
@@ -44,3 +47,4 @@ kc.log
# ── OS ───────────────────────────────────────────────────────────────────────
.DS_Store
Thumbs.db
+# POWER APPS MANAGED END - DO NOT REMOVE OR RENAME THE COMMENT
diff --git a/plugins/mobile-apps/template/README.md b/plugins/mobile-apps/template/README.md
index 0959585e3..d21e52402 100644
--- a/plugins/mobile-apps/template/README.md
+++ b/plugins/mobile-apps/template/README.md
@@ -84,8 +84,8 @@ connector wiring.
### Required API permissions
- The Microsoft Entra app registration requires these delegated permissions from the **Power Platform API**.
- If you create the registration via Power Apps Wrap, it configures these automatically; the list is for reference only.
+ The Microsoft Entra app registration requires these delegated permissions
+ from the **Power Platform API**:
- `PowerApps.Apps.Play`
- `PowerApps.Apps.Read`
@@ -187,7 +187,7 @@ when the app uses Dataverse only.
To publish as a Code App, run `npm run bundle:web`, set `appType` to `CodeApp`
and `distPath` to `dist-web` in `power.config.json`, then run
-`npx power-apps push`.
+`npx power-apps push`. Ensure Code App and the Mobile App have different app id by removing the appId field before pushing the app
To publish to Power Pages, run `npm run bundle:web -- powerpages`, then use the Power Pages
skills to upload the generated `dist-web` directory.
diff --git a/plugins/mobile-apps/template/app.config.js b/plugins/mobile-apps/template/app.config.js
index b136a5212..5c397aa42 100644
--- a/plugins/mobile-apps/template/app.config.js
+++ b/plugins/mobile-apps/template/app.config.js
@@ -1,8 +1,4 @@
-/**
- * Dynamic Expo config for the Power Apps standalone template.
- */
-
-const IS_DEV_CLIENT = process.env.DEV_CLIENT === 'true';
+const { createPowerAppsExpoConfig } = require('@microsoft/power-apps-native-host/config/expoConfig');
// CUSTOMER APP SETTINGS START - DO NOT REMOVE OR RENAME THE COMMENT
// App identity, package names, icon, and version defaults are customer-owned.
@@ -29,71 +25,14 @@ function customizeExpoConfig(config) {
}
// CUSTOMIZATION END - DO NOT REMOVE OR RENAME THE COMMENT
-/** @type {import('expo/config').ExpoConfig} */
-module.exports = ({ config }) => customizeExpoConfig({
- ...config,
+module.exports = ({ config }) => createPowerAppsExpoConfig(config, {
name: APP_NAME,
slug: APP_SLUG,
version: APP_VERSION,
scheme: APP_SCHEME,
- // Icon — only set when APP_ICON_PATH is provided (production builds via wrap.js).
- // Expo generates all required sizes from this single 1024×1024 PNG.
- ...(APP_ICON_PATH ? { icon: APP_ICON_PATH } : {}),
- web: {
- bundler: 'metro',
- output: 'static',
- },
- platforms: ['ios', 'android', 'web'],
- experiments: {
- typedRoutes: true,
- },
- plugins: [
- // expo-dev-client is only included in development builds.
- // Release builds omit it so the Expo launcher screen is not included.
- ...(IS_DEV_CLIENT ? ['expo-dev-client'] : []),
- 'expo-router',
- 'expo-secure-store',
- // power-apps-native-host config plugin: injects the Intune MAM Gradle plugin
- // into android/build.gradle and android/app/build.gradle at prebuild time.
- // Skipped automatically when DEV_CLIENT=true.
- // The host package delegates to its pinned auth/MAM plugin internally.
- '@microsoft/power-apps-native-host',
- // @microsoft/power-apps-native-offline: injects the RNDataverseOffline pod (iOS)
- // and DataverseOfflinePackage (Android), and sets newArchEnabled=false
- // (Podfile.properties.json / gradle.properties) — the offline native module
- // requires the legacy architecture. Self-deactivates (complete no-op) when no
- // valid offline-profile.json exists. Activated by offline-profile.json, NOT power.config.json.
- '@microsoft/power-apps-native-offline',
- '@react-native-community/datetimepicker'],
- android: {
- package: ANDROID_PACKAGE,
- versionCode: APP_VERSION_CODE,
- // Adaptive icon — uses the same source image with a white background.
- // Override adaptiveIcon.backgroundColor in app.config.js if your icon
- // needs a different background (e.g. a branded colour).
- ...(APP_ICON_PATH ? {
- adaptiveIcon: {
- foregroundImage: APP_ICON_PATH,
- backgroundColor: '#ffffff',
- },
- } : {}),
- },
- ios: {
- supportsTablet: true,
- bundleIdentifier: IOS_BUNDLE_IDENTIFIER,
- infoPlist: {
- // Required so the MAM SDK and MSAL can detect Company Portal /
- // Microsoft Authenticator. Baked into the binary — present in both
- // dev client and release base builds.
- LSApplicationQueriesSchemes: [
- 'intunemam',
- 'ms-acompli',
- 'msauthv2',
- 'msauthv3',
- // msauth.<bundleId> for broker - downstream packaging can add an
- // bundle-specific variant to CFBundleURLTypes when needed, while the
- // generic msauthv2/v3 entries here cover SDK detection.
- ],
- },
- },
-});
+ androidPackage: ANDROID_PACKAGE,
+ iosBundleIdentifier: IOS_BUNDLE_IDENTIFIER,
+ versionCode: APP_VERSION_CODE,
+ iconPath: APP_ICON_PATH,
+ isDevClient: process.env.DEV_CLIENT === 'true',
+}, customizeExpoConfig);
diff --git a/plugins/mobile-apps/template/app.json b/plugins/mobile-apps/template/app.json
index b3d82b5c1..cbfa7453d 100644
--- a/plugins/mobile-apps/template/app.json
+++ b/plugins/mobile-apps/template/app.json
@@ -12,7 +12,11 @@
},
"powerappsNative": {
"schemaVersion": 1,
- "templateVersion": 1
+ "templateVersion": 1,
+ "nativeRuntimeVersions": {
+ "android": 1,
+ "ios": 1
+ }
}
}
}
diff --git a/plugins/mobile-apps/template/app/(app)/home.tsx b/plugins/mobile-apps/template/app/(app)/home.tsx
index 74f6346d9..70ece4614 100644
--- a/plugins/mobile-apps/template/app/(app)/home.tsx
+++ b/plugins/mobile-apps/template/app/(app)/home.tsx
@@ -1,52 +1,49 @@
-import { MaterialCommunityIcons } from '@expo/vector-icons';
-import { StyleSheet, Text, View } from 'react-native';
+import { Ionicons } from '@expo/vector-icons';
+import { SafeAreaView } from 'react-native-safe-area-context';
+import { Text, YStack, useTheme } from 'tamagui';
export default function HomeScreen() {
+ const theme = useTheme();
+
return (
- <View style={styles.container}>
- <View style={styles.iconFrame}>
- <MaterialCommunityIcons name="database-check-outline" size={34} color="#2563eb" />
- </View>
- <Text style={styles.title}>Power Apps Standalone</Text>
- <Text style={styles.subtitle}>
- Build your first screen by connecting data sources, adding native capabilities,
- and replacing this starter view with your app workflow.
- </Text>
- </View>
+ <SafeAreaView
+ edges={['top', 'bottom']}
+ style={{ flex: 1, backgroundColor: theme.surface0.val }}
+ >
+ <YStack
+ flex={1}
+ items="center"
+ justify="center"
+ px="$6"
+ bg="$surface0"
+ >
+ <YStack
+ width={72}
+ height={72}
+ rounded="$5"
+ items="center"
+ justify="center"
+ mb="$5"
+ bg="$accentSoft"
+ aria-label="Power Apps data source ready"
+ >
+ <Ionicons name="server-outline" size={34} color={theme.accentDeep.val} />
+ </YStack>
+ <Text color="$text0" fontSize="$8" fontWeight="700" text="center">
+ Power Apps Standalone
+ </Text>
+ <Text
+ maxW={360}
+ mt="$3"
+ color="$text2"
+ fontSize="$4"
+ lineHeight={23}
+ text="center"
+ >
+ Build your first screen by connecting data sources, adding native capabilities,
+ and replacing this starter view with your app workflow.
+ </Text>
+ </YStack>
+ </SafeAreaView>
);
}
-
-const styles = StyleSheet.create({
- container: {
- flex: 1,
- alignItems: 'center',
- justifyContent: 'center',
- paddingHorizontal: 28,
- backgroundColor: '#f8fafc',
- },
- iconFrame: {
- width: 72,
- height: 72,
- borderRadius: 18,
- alignItems: 'center',
- justifyContent: 'center',
- marginBottom: 20,
- backgroundColor: '#dbeafe',
- },
- title: {
- color: '#0f172a',
- fontSize: 26,
- fontWeight: '700',
- textAlign: 'center',
- },
- subtitle: {
- maxWidth: 360,
- marginTop: 10,
- color: '#475569',
- fontSize: 16,
- lineHeight: 23,
- textAlign: 'center',
- },
-});
-
-
diff --git a/plugins/mobile-apps/template/app/_layout.tsx b/plugins/mobile-apps/template/app/_layout.tsx
index fe5cef718..6a9f99c2e 100644
--- a/plugins/mobile-apps/template/app/_layout.tsx
+++ b/plugins/mobile-apps/template/app/_layout.tsx
@@ -1,7 +1,10 @@
import { Slot } from 'expo-router';
import { StatusBar } from 'expo-status-bar';
+import { useColorScheme } from 'react-native';
+import { SafeAreaProvider } from 'react-native-safe-area-context';
import { PowerAppsProvider } from '@microsoft/power-apps-native-host';
+import appConfig from '../app.json';
import authConfig from '../auth.config.json';
import tamaguiConfig from '../tamagui.config';
// @ts-ignore - power.config.json is auto-generated at build time
@@ -26,16 +29,22 @@ try {
}
export default function RootLayout() {
+ const colorScheme = useColorScheme();
+
return (
- <PowerAppsProvider
- msalConfig={authConfig.msal}
- powerConfig={powerConfig}
- schemaMap={schemaMap}
- tamaguiConfig={tamaguiConfig}
- offlineProfile={offlineProfile}
- >
- <StatusBar style="auto" />
- <Slot />
- </PowerAppsProvider>
+ <SafeAreaProvider>
+ <PowerAppsProvider
+ appConfig={appConfig}
+ msalConfig={authConfig.msal}
+ powerConfig={powerConfig}
+ schemaMap={schemaMap}
+ tamaguiConfig={tamaguiConfig}
+ offlineProfile={offlineProfile}
+ defaultTheme={colorScheme === 'dark' ? 'dark' : 'light'}
+ >
+ <StatusBar style="auto" />
+ <Slot />
+ </PowerAppsProvider>
+ </SafeAreaProvider>
);
}
diff --git a/plugins/mobile-apps/template/app/login.tsx b/plugins/mobile-apps/template/app/login.tsx
index 2cc7cdccb..4763a5f81 100644
--- a/plugins/mobile-apps/template/app/login.tsx
+++ b/plugins/mobile-apps/template/app/login.tsx
@@ -3,15 +3,18 @@ import {
Spinner,
Text,
YStack,
+ useTheme,
} from 'tamagui';
-import { MaterialCommunityIcons } from '@expo/vector-icons';
+import { Ionicons } from '@expo/vector-icons';
import { Redirect } from 'expo-router';
+import { SafeAreaView } from 'react-native-safe-area-context';
import { useAuth } from '@microsoft/power-apps-native-host';
// @ts-ignore - power.config.json is auto-generated at build time
import powerConfig from '../power.config.json';
export default function LoginScreen() {
const { isLoading, isAuthReady, isSignedIn, signIn, error } = useAuth();
+ const theme = useTheme();
const busy = isLoading || !isAuthReady;
const appName = powerConfig.appDisplayName || 'Power Apps Standalone';
@@ -20,52 +23,60 @@ export default function LoginScreen() {
}
return (
- <YStack
- flex={1}
- items="center"
- justify="center"
- px="$6"
- bg="$background"
- gap="$4"
+ <SafeAreaView
+ edges={['top', 'bottom']}
+ style={{ flex: 1, backgroundColor: theme.surface0.val }}
>
<YStack
- style={{ width: 72, height: 72, borderRadius: 18 }}
- bg="$blue10"
+ flex={1}
items="center"
justify="center"
- mb="$2"
+ px="$6"
+ bg="$surface0"
+ gap="$4"
>
- <MaterialCommunityIcons name="microsoft-powerpoint" size={34} color="white" />
- </YStack>
-
- <Text fontSize="$8" fontWeight="700" color="$color12" text="center">
- {appName}
- </Text>
-
- <Text fontSize="$4" color="$color10" style={{ textAlign: 'center', lineHeight: 22 }}>
- Sign in with your work or school email account
- </Text>
+ <YStack
+ width={72}
+ height={72}
+ rounded="$5"
+ bg="$accentBase"
+ items="center"
+ justify="center"
+ mb="$2"
+ aria-label="Power Apps sign in"
+ >
+ <Ionicons name="apps-outline" size={34} color={theme.accentOnAccent.val} />
+ </YStack>
+ <Text fontSize="$8" fontWeight="700" color="$text0" text="center">
+ {appName}
+ </Text>
- {error ? (
- <Text color="$red10" fontSize="$3" text="center">
- {error.message}
+ <Text fontSize="$4" color="$text2" text="center" lineHeight={22}>
+ Sign in with your work or school email account
</Text>
- ) : null}
- <Button
- size="$5"
- style={{ width: '100%' }}
- bg="$blue10"
- color="white"
- fontWeight="600"
- onPress={signIn}
- disabled={busy}
- icon={busy ? <Spinner size="small" color="white" /> : undefined}
- pressStyle={{ opacity: 0.85 }}
- >
- {isLoading ? 'Signing in...' : !isAuthReady ? 'Loading...' : 'Sign in with Microsoft'}
- </Button>
- </YStack>
+ {error ? (
+ <Text color="$statusOverdue" fontSize="$3" text="center">
+ {error.message}
+ </Text>
+ ) : null}
+
+ <Button
+ size="$5"
+ width="100%"
+ maxW={360}
+ bg="$accentBase"
+ color="$accentOnAccent"
+ fontWeight="600"
+ onPress={signIn}
+ disabled={busy}
+ icon={busy ? <Spinner size="small" color={theme.accentOnAccent.val} /> : undefined}
+ pressStyle={{ opacity: 0.85 }}
+ >
+ {isLoading ? 'Signing in...' : !isAuthReady ? 'Loading...' : 'Sign in with Microsoft'}
+ </Button>
+ </YStack>
+ </SafeAreaView>
);
}
diff --git a/plugins/mobile-apps/template/app/oauth-callback.tsx b/plugins/mobile-apps/template/app/oauth-callback.tsx
index cce871354..a2a7e7a67 100644
--- a/plugins/mobile-apps/template/app/oauth-callback.tsx
+++ b/plugins/mobile-apps/template/app/oauth-callback.tsx
@@ -1,21 +1,31 @@
-import { useEffect } from 'react';
+import { useEffect, useRef } from 'react';
import { ActivityIndicator, View } from 'react-native';
import { useRouter } from 'expo-router';
+import { SafeAreaView } from 'react-native-safe-area-context';
import { completePowerAppsAuthSession } from '@microsoft/power-apps-native-host';
+import { useTheme } from 'tamagui';
completePowerAppsAuthSession();
export default function OAuthCallbackScreen() {
const router = useRouter();
+ const theme = useTheme();
+ const didNavigate = useRef(false);
useEffect(() => {
+ if (didNavigate.current) return;
+ didNavigate.current = true;
router.replace('/(app)/home');
}, [router]);
return (
- <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
- <ActivityIndicator />
- </View>
+ <SafeAreaView
+ edges={['top', 'bottom']}
+ style={{ flex: 1, backgroundColor: theme.surface0.val }}
+ >
+ <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
+ <ActivityIndicator />
+ </View>
+ </SafeAreaView>
);
}
-
diff --git a/plugins/mobile-apps/template/babel.config.js b/plugins/mobile-apps/template/babel.config.js
index cd82081ec..e0247de8b 100644
--- a/plugins/mobile-apps/template/babel.config.js
+++ b/plugins/mobile-apps/template/babel.config.js
@@ -1,3 +1,5 @@
+const { createPowerAppsBabelConfig } = require('@microsoft/power-apps-native-host/config/babelConfig');
+
// CUSTOMIZATION START - DO NOT REMOVE OR RENAME THE COMMENT
// Add Babel presets and plugins to these arrays only.
const customPresets = [];
@@ -5,13 +7,8 @@ const customPlugins = [];
// CUSTOMIZATION END - DO NOT REMOVE OR RENAME THE COMMENT
module.exports = function (api) {
- api.cache(true);
- return {
- presets: ['babel-preset-expo', ...customPresets],
- plugins: [
- ...customPlugins,
- // Must be last
- 'react-native-reanimated/plugin',
- ],
- };
+ return createPowerAppsBabelConfig(api, {
+ presets: customPresets,
+ plugins: customPlugins,
+ });
};
diff --git a/plugins/mobile-apps/template/metro.config.js b/plugins/mobile-apps/template/metro.config.js
index f90d8ccde..d3a946397 100644
--- a/plugins/mobile-apps/template/metro.config.js
+++ b/plugins/mobile-apps/template/metro.config.js
@@ -1,5 +1,4 @@
-const { getDefaultConfig } = require('expo/metro-config');
-const { withPowerNativeMetroLogging } = require('@microsoft/power-apps-native-host/metro-logger');
+const { createPowerAppsMetroConfig } = require('@microsoft/power-apps-native-host/config/metroConfig');
// CUSTOMIZATION START - DO NOT REMOVE OR RENAME THE COMMENT
// Add Metro config changes in this function only.
@@ -8,44 +7,4 @@ function customizeMetroConfig(config) {
}
// CUSTOMIZATION END - DO NOT REMOVE OR RENAME THE COMMENT
-const config = getDefaultConfig(__dirname);
-
-config.resolver.sourceExts = [...config.resolver.sourceExts, 'mjs'];
-config.server = {
- ...config.server,
- enhanceMiddleware: (middleware) => withPowerNativeMetroLogging(
- (req, res, next) => {
- if (req.url === '/__pawrap_verify') {
- res.setHeader('Content-Type', 'application/json');
- res.setHeader('Access-Control-Allow-Origin', '*');
- res.end(JSON.stringify({ type: 'pawrap-app', version: '1' }));
- return;
- }
- middleware(req, res, next);
- },
- { projectRoot: __dirname },
- ),
-};
-
-// Force a single copy of these regardless of where the importing module lives.
-const _defaultResolver = config.resolver.resolveRequest;
-config.resolver.resolveRequest = (context, moduleName, platform) => {
- const isNodeRenderer = context.customResolverOptions?.environment === 'node';
- if (
- (!isNodeRenderer && (moduleName === 'react' || moduleName.startsWith('react/'))) ||
- (moduleName === 'react-native' && platform !== 'web') ||
- moduleName.startsWith('@babel/runtime')
- ) {
- return {
- filePath: require.resolve(moduleName, {
- paths: [require('path').resolve(__dirname, 'node_modules')],
- }),
- type: 'sourceFile',
- };
- }
- return _defaultResolver
- ? _defaultResolver(context, moduleName, platform)
- : context.resolveRequest(context, moduleName, platform);
-};
-
-module.exports = customizeMetroConfig(config);
+module.exports = createPowerAppsMetroConfig(__dirname, customizeMetroConfig);
diff --git a/plugins/mobile-apps/template/package.json b/plugins/mobile-apps/template/package.json
index 1f3053aec..6358b7f96 100644
--- a/plugins/mobile-apps/template/package.json
+++ b/plugins/mobile-apps/template/package.json
@@ -10,15 +10,15 @@
"type-check": "tsc --noEmit",
"build:android": "wrap android",
"build:ios": "wrap ios",
- "bundle:android": "js-bundle android",
- "bundle:ios": "js-bundle ios",
+ "bundle:android": "build-codegen-package android",
+ "bundle:ios": "build-codegen-package ios",
"bundle:web": "js-bundle web"
},
"dependencies": {
"@expo/metro-runtime": "55.0.11",
"@expo/vector-icons": "15.1.1",
- "@microsoft/power-apps": "1.2.7",
- "@microsoft/power-apps-native-host": "^0.3.0",
+ "@microsoft/power-apps": "1.2.13",
+ "@microsoft/power-apps-native-host": "^0.3.3",
"@microsoft/power-apps-native-offline": "^0.1.32",
"@react-native-async-storage/async-storage": "^2.1.2",
"@react-native-community/datetimepicker": "8.6.0",
@@ -30,7 +30,7 @@
"@tamagui/toast": "2.4.5",
"@tanstack/react-query": "5.62.0",
"burnt": "0.12.2",
- "expo": "55.0.26",
+ "expo": "55.0.29",
"expo-application": "55.0.15",
"expo-asset": "55.0.17",
"expo-audio": "55.0.14",
@@ -46,6 +46,7 @@
"expo-document-picker": "55.0.13",
"expo-file-system": "55.0.19",
"expo-font": "55.0.7",
+ "expo-haptics": "55.0.16",
"expo-image": "55.0.10",
"expo-image-manipulator": "55.0.16",
"expo-image-picker": "55.0.20",
@@ -56,7 +57,6 @@
"expo-local-authentication": "55.0.13",
"expo-location": "55.1.9",
"expo-mail-composer": "55.0.13",
- "expo-modules-core": "55.0.25",
"expo-print": "55.0.14",
"expo-router": "55.0.14",
"expo-screen-orientation": "55.0.14",
@@ -83,15 +83,16 @@
},
"devDependencies": {
"@babel/core": "7.29.6",
+ "@microsoft/power-apps-cli": "0.15.3",
"@tamagui/babel-plugin": "2.4.5",
"@types/react": "19.2.14",
"babel-preset-expo": "55.0.18",
+ "react-refresh": "0.14.2",
"typescript": "5.9.3"
},
"overrides": {
"esbuild": "0.28.1",
"uuid": ">=11.1.1 <12",
- "shell-quote": ">=1.8.4 <2",
- "postcss": ">=8.5.10 <9"
+ "metro": "0.83.8"
}
}
diff --git a/plugins/mobile-apps/template/power-apps-env.d.ts b/plugins/mobile-apps/template/power-apps-env.d.ts
deleted file mode 100644
index bffbff52c..000000000
--- a/plugins/mobile-apps/template/power-apps-env.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-/** Type declarations for generated Power Apps configuration files. */
-
-import type { AuthConfig } from '@microsoft/power-apps-native-host';
-
-declare module '*/auth.config.json' {
- const value: AuthConfig;
- export default value;
-}
\ No newline at end of file
diff --git a/plugins/mobile-apps/template/tamagui.config.ts b/plugins/mobile-apps/template/tamagui.config.ts
index b249fc960..7af3abb6f 100644
--- a/plugins/mobile-apps/template/tamagui.config.ts
+++ b/plugins/mobile-apps/template/tamagui.config.ts
@@ -1,21 +1,11 @@
-import { createTamagui } from '@tamagui/core';
-import { defaultConfig } from '@tamagui/config/v5';
-import { animations } from '@tamagui/config/v5-rn';
+import { createPowerAppsTamaguiConfig } from '@microsoft/power-apps-native-host/config/tamaguiConfig';
// CUSTOMIZATION START - DO NOT REMOVE OR RENAME THE COMMENT
-// Replace or extend this Tamagui config value only.
-const customConfig = {
- ...defaultConfig,
- animations,
-};
+// Add or replace Tamagui configuration values here.
+const customConfig = {};
// CUSTOMIZATION END - DO NOT REMOVE OR RENAME THE COMMENT
-/**
- * Tamagui configuration.
- * @tamagui/config/v5 provides a fully-configured design system including
- * tokens, themes (light/dark), fonts, animations, and shorthands.
- */
-export const tamaguiConfig = createTamagui(customConfig);
+export const tamaguiConfig = createPowerAppsTamaguiConfig(customConfig);
export default tamaguiConfig;
export type Conf = typeof tamaguiConfig;
diff --git a/plugins/mobile-apps/template/tsconfig.json b/plugins/mobile-apps/template/tsconfig.json
index c0668f3cd..2092c07c2 100644
--- a/plugins/mobile-apps/template/tsconfig.json
+++ b/plugins/mobile-apps/template/tsconfig.json
@@ -1,16 +1,5 @@
{
- "extends": "expo/tsconfig.base",
- "compilerOptions": {
- "strict": true,
- "moduleResolution": "bundler",
- "baseUrl": ".",
- "paths": {
- "react-native": ["node_modules/react-native"],
- "expo-auth-session": ["node_modules/expo-auth-session"],
- "expo-secure-store": ["node_modules/expo-secure-store"],
- "expo-web-browser": ["node_modules/expo-web-browser"]
- }
- },
+ "extends": "@microsoft/power-apps-native-host/config/tsconfig",
"include": [
"**/*.ts",
"**/*.tsx",