A mobile application built with Angular and Capacitor that demonstrates the integration of Google AdMob for displaying advertisements. This project was generated with Angular CLI version 17.3.11.
npm install
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Build the Angular project:
ng build
Sync the build with Capacitor:
npx cap sync
Open the project in Android Studio:
npx cap open android
The project is configured with AdMob integration. The AdMob app ID is set in android/app/src/main/res/values/strings.xml
. Make sure to replace the existing ID with your own AdMob app ID before publishing.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
src/
- Angular application source codeandroid/
- Android platform-specific codecapacitor.config.ts
- Capacitor configuration fileThis project is licensed under the MIT License - see the LICENSE file for details.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
For Capacitor documentation, visit the official Capacitor documentation.
For AdMob integration details, refer to the Capacitor Community AdMob plugin documentation.
```
This README provides a comprehensive overview of the project, including setup instructions, development workflows, and important configuration details. It's structured to help both new developers getting started with the project and experienced developers who need quick reference information.