Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@NathanWalker
Copy link
Contributor

@NathanWalker NathanWalker commented Jan 7, 2026

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
Copy link

nx-cloud bot commented Jan 7, 2026

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 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 NathanWalker merged commit d6caa43 into feat/vite-improvements Jan 7, 2026
3 of 4 checks passed
@NathanWalker NathanWalker deleted the feat/vite-support-custom-android-activities branch January 7, 2026 18:18
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.