npm install
npm run build
npx cap sync [ios|android]
npx cap open [ios|android]
We're going to be implementing a ToDo
Capacitor plugin in iOS using Swift. This project is a Capacitor app built with Ionic React, don't worry if you aren't familiar with React there shouldn't be a need to modify the React app although you can add console.log
statements or make modifications for debugging purposes.
The relevant areas of the code base are the src
directory where the React app code resides.
The ios
directory is where the iOS application resides. We'll work specifically in the ios/App/App/ToDoPlugin.swift
file to implement the plugin on iOS.
The android
directory is where the Android application resides. We'll work specifically in the android/app/src/main/java/io/ionic/crossplatform/interview/TodoPlugin.java
file to implement the plugin on Android.