FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(vite): support custom android activites and application classes by NathanWalker · Pull Request #11043 · NativeScript/NativeScript · GitHub

feat(vite): support custom android activites and application classes - #11043

Merged
NathanWalker merged 3 commits into
feat/vite-improvementsfrom
feat/vite-support-custom-android-activities
Jan 7, 2026
Merged

feat(vite): support custom android activites and application classes#11043
NathanWalker merged 3 commits into
feat/vite-improvementsfrom
feat/vite-support-custom-android-activities

Conversation

NathanWalker commented Jan 7, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Support for custom Android Activity and Application classes (aka "app components")

Configure with vite.config.ts:

import { defineConfig } from 'vite';
import { typescriptConfig, appComponentsPlugin } from '@nativescript/vite';

export default defineConfig(({ mode }) => {
  const config = typescriptConfig({ mode });
  
  // Register custom Android Activity and Application classes
  config.plugins!.push(
    appComponentsPlugin({
      appComponents: [
        './src/custom-activity.android.ts',
        './src/custom-application.android.ts'
      ],
      platform: 'android'
    })
  );
  
  return config;
});

nx-cloud Bot commented Jan 7, 2026
edited
Loading

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 21a3a33

Command Status Duration Result
nx test apps-automated -c=android ✅ Succeeded 6m 31s View ↗
nx run-many --target=test --configuration=ci --... ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-01-07 18:28:11 UTC

NathanWalker added the docs needed Additional documentation on this issue/PR is needed label Jan 7, 2026
Base automatically changed from fix/vite-dynamic-static-import-mixed-usage to feat/vite-improvements January 7, 2026 18:17
NathanWalker merged commit d6caa43 into feat/vite-improvements Jan 7, 2026
3 of 4 checks passed
NathanWalker deleted the feat/vite-support-custom-android-activities branch January 7, 2026 18:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs needed Additional documentation on this issue/PR is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL