├── .nvmrc
├── .gradle
├── 5.6.4
│ ├── gc.properties
│ ├── fileChanges
│ │ └── last-build.bin
│ ├── fileHashes
│ │ └── fileHashes.lock
│ └── executionHistory
│ │ ├── executionHistory.bin
│ │ └── executionHistory.lock
└── buildOutputCleanup
│ ├── cache.properties
│ └── buildOutputCleanup.lock
├── .eslintrc
├── .npmrc
├── android
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── drawable
│ │ │ │ │ ├── splash.png
│ │ │ │ │ └── ic_launcher_background.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_round.png
│ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_round.png
│ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_round.png
│ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ ├── drawable-land-hdpi
│ │ │ │ │ └── splash.png
│ │ │ │ ├── drawable-land-mdpi
│ │ │ │ │ └── splash.png
│ │ │ │ ├── drawable-land-xhdpi
│ │ │ │ │ └── splash.png
│ │ │ │ ├── drawable-port-hdpi
│ │ │ │ │ └── splash.png
│ │ │ │ ├── drawable-port-mdpi
│ │ │ │ │ └── splash.png
│ │ │ │ ├── drawable-port-xhdpi
│ │ │ │ │ └── splash.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_round.png
│ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_round.png
│ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ ├── values
│ │ │ │ │ ├── ic_launcher_background.xml
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── drawable-land-xxhdpi
│ │ │ │ │ └── splash.png
│ │ │ │ ├── drawable-land-xxxhdpi
│ │ │ │ │ └── splash.png
│ │ │ │ ├── drawable-port-xxhdpi
│ │ │ │ │ └── splash.png
│ │ │ │ ├── drawable-port-xxxhdpi
│ │ │ │ │ └── splash.png
│ │ │ │ ├── xml
│ │ │ │ │ ├── config.xml
│ │ │ │ │ └── file_paths.xml
│ │ │ │ ├── mipmap-anydpi-v26
│ │ │ │ │ ├── ic_launcher.xml
│ │ │ │ │ └── ic_launcher_round.xml
│ │ │ │ ├── layout
│ │ │ │ │ └── activity_main.xml
│ │ │ │ └── drawable-v24
│ │ │ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── assets
│ │ │ │ ├── capacitor.plugins.json
│ │ │ │ └── capacitor.config.json
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── app
│ │ │ │ │ └── MainActivity.java
│ │ │ └── AndroidManifest.xml
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── getcapacitor
│ │ │ │ └── myapp
│ │ │ │ └── ExampleUnitTest.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── getcapacitor
│ │ │ └── myapp
│ │ │ └── ExampleInstrumentedTest.java
│ ├── capacitor.build.gradle
│ ├── proguard-rules.pro
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── settings.gradle
├── capacitor.settings.gradle
├── variables.gradle
├── build.gradle
├── gradle.properties
├── .gitignore
├── gradlew.bat
└── gradlew
├── screenshot.png
├── .prettierrc.json
├── public
├── favicon.ico
├── img
│ ├── c1.avif
│ ├── c2.avif
│ ├── c3.avif
│ ├── leo.jpg
│ ├── max.jpg
│ └── nathan.jpg
└── vercel.svg
├── ios
├── App
│ ├── App
│ │ ├── Assets.xcassets
│ │ │ ├── Contents.json
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── AppIcon-512@2x.png
│ │ │ │ └── Contents.json
│ │ │ └── Splash.imageset
│ │ │ │ ├── splash-2732x2732.png
│ │ │ │ ├── splash-2732x2732-1.png
│ │ │ │ ├── splash-2732x2732-2.png
│ │ │ │ └── Contents.json
│ │ ├── config.xml
│ │ ├── capacitor.config.json
│ │ ├── Base.lproj
│ │ │ ├── Main.storyboard
│ │ │ └── LaunchScreen.storyboard
│ │ ├── Info.plist
│ │ └── AppDelegate.swift
│ ├── App.xcodeproj
│ │ ├── project.xcworkspace
│ │ │ └── contents.xcworkspacedata
│ │ └── project.pbxproj
│ ├── App.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── Podfile
│ └── Podfile.lock
└── .gitignore
├── postcss.config.js
├── app
├── page.tsx
├── [...all]
│ └── page.tsx
└── layout.tsx
├── next-env.d.ts
├── tailwind.config.js
├── capacitor.config.json
├── components
├── ui
│ └── Card.tsx
├── AppShell.tsx
└── pages
│ ├── Settings.tsx
│ ├── Lists.tsx
│ ├── Tabs.tsx
│ ├── ListDetail.tsx
│ ├── Notifications.tsx
│ └── Feed.tsx
├── next.config.js
├── .gitignore
├── store
├── index.ts
├── selectors.ts
└── actions.ts
├── tsconfig.json
├── LICENSE
├── package.json
├── mock
└── index.ts
├── README.md
└── styles
├── global.css
└── variables.css
/.nvmrc:
--------------------------------------------------------------------------------
1 | 20
2 |
--------------------------------------------------------------------------------
/.gradle/5.6.4/gc.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gradle/5.6.4/fileChanges/last-build.bin:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "next"
3 | }
4 |
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
1 | engine-strict=true
2 | save-exact=true
3 |
--------------------------------------------------------------------------------
/android/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build/*
2 | !/build/.npmkeep
3 |
--------------------------------------------------------------------------------
/.gradle/buildOutputCleanup/cache.properties:
--------------------------------------------------------------------------------
1 | #Wed Jan 13 17:35:11 CST 2021
2 | gradle.version=5.6.4
3 |
--------------------------------------------------------------------------------
/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/screenshot.png
--------------------------------------------------------------------------------
/.prettierrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "singleQuote": true,
3 | "arrowParens": "avoid",
4 | "trailingComma": "all"
5 | }
6 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/public/favicon.ico
--------------------------------------------------------------------------------
/public/img/c1.avif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/public/img/c1.avif
--------------------------------------------------------------------------------
/public/img/c2.avif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/public/img/c2.avif
--------------------------------------------------------------------------------
/public/img/c3.avif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/public/img/c3.avif
--------------------------------------------------------------------------------
/public/img/leo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/public/img/leo.jpg
--------------------------------------------------------------------------------
/public/img/max.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/public/img/max.jpg
--------------------------------------------------------------------------------
/ios/App/App/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | autoprefixer: {},
5 | },
6 | }
7 |
--------------------------------------------------------------------------------
/public/img/nathan.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/public/img/nathan.jpg
--------------------------------------------------------------------------------
/.gradle/5.6.4/fileHashes/fileHashes.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/.gradle/5.6.4/fileHashes/fileHashes.lock
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/drawable/splash.png
--------------------------------------------------------------------------------
/.gradle/buildOutputCleanup/buildOutputCleanup.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/.gradle/buildOutputCleanup/buildOutputCleanup.lock
--------------------------------------------------------------------------------
/.gradle/5.6.4/executionHistory/executionHistory.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/.gradle/5.6.4/executionHistory/executionHistory.bin
--------------------------------------------------------------------------------
/.gradle/5.6.4/executionHistory/executionHistory.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/.gradle/5.6.4/executionHistory/executionHistory.lock
--------------------------------------------------------------------------------
/android/app/src/main/assets/capacitor.plugins.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "pkg": "@capacitor/status-bar",
4 | "classpath": "com.capacitorjs.plugins.statusbar.StatusBarPlugin"
5 | }
6 | ]
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land-hdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/drawable-land-hdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land-mdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/drawable-land-mdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land-xhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/drawable-land-xhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-port-hdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/drawable-port-hdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-port-mdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/drawable-port-mdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-port-xhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/drawable-port-xhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | App/build
2 | App/Pods
3 | App/output
4 | App/App/public
5 | DerivedData
6 | xcuserdata
7 |
8 | # Cordova plugins for Capacitor
9 | capacitor-cordova-ios-plugins
10 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/example/app/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.app;
2 |
3 | import com.getcapacitor.BridgeActivity;
4 |
5 | public class MainActivity extends BridgeActivity {}
6 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land-xxhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/drawable-land-xxhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land-xxxhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/drawable-land-xxxhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-port-xxhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/drawable-port-xxhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-port-xxxhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/drawable-port-xxxhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png
--------------------------------------------------------------------------------
/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png
--------------------------------------------------------------------------------
/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/HEAD/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png
--------------------------------------------------------------------------------
/ios/App/App/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/page.tsx:
--------------------------------------------------------------------------------
1 | import dynamic from 'next/dynamic';
2 |
3 | const App = dynamic(() => import('../components/AppShell'), {
4 | ssr: false,
5 | });
6 |
7 | export default function Page() {
8 | return ;
9 | }
10 |
--------------------------------------------------------------------------------
/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/res/xml/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | include ':capacitor-cordova-android-plugins'
3 | project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')
4 |
5 | apply from: 'capacitor.settings.gradle'
--------------------------------------------------------------------------------
/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
4 | // NOTE: This file should not be edited
5 | // see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
6 |
--------------------------------------------------------------------------------
/tailwind.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | content: [
3 | './pages/**/*.{js,ts,jsx,tsx}',
4 | './components/**/*.{js,ts,jsx,tsx}',
5 | ],
6 | darkMode: 'media',
7 | theme: {
8 | extend: {},
9 | },
10 | plugins: [],
11 | };
12 |
--------------------------------------------------------------------------------
/android/app/src/main/res/xml/file_paths.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip
4 | networkTimeout=10000
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------
/ios/App/App.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/capacitor.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "appId": "com.example.app",
3 | "appName": "nextjs-tailwind-capacitor",
4 | "bundledWebRuntime": false,
5 | "npmClient": "npm",
6 | "webDir": "out",
7 | "plugins": {
8 | "SplashScreen": {
9 | "launchShowDuration": 0
10 | }
11 | },
12 | "cordova": {}
13 | }
14 |
--------------------------------------------------------------------------------
/ios/App/App/capacitor.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "appId": "com.example.app",
3 | "appName": "nextjs-tailwind-capacitor",
4 | "bundledWebRuntime": false,
5 | "npmClient": "npm",
6 | "webDir": "out",
7 | "plugins": {
8 | "SplashScreen": {
9 | "launchShowDuration": 0
10 | }
11 | },
12 | "cordova": {}
13 | }
14 |
--------------------------------------------------------------------------------
/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/assets/capacitor.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "appId": "com.example.app",
3 | "appName": "nextjs-tailwind-capacitor",
4 | "bundledWebRuntime": false,
5 | "npmClient": "npm",
6 | "webDir": "out",
7 | "plugins": {
8 | "SplashScreen": {
9 | "launchShowDuration": 0
10 | }
11 | },
12 | "cordova": {}
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "AppIcon-512@2x.png",
5 | "idiom" : "universal",
6 | "platform" : "ios",
7 | "size" : "1024x1024"
8 | }
9 | ],
10 | "info" : {
11 | "author" : "xcode",
12 | "version" : 1
13 | }
14 | }
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | nextjs-tailwind-capacitor
4 | nextjs-tailwind-capacitor
5 | com.example.app
6 | com.example.app
7 |
8 |
--------------------------------------------------------------------------------
/android/capacitor.settings.gradle:
--------------------------------------------------------------------------------
1 | // DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
2 | include ':capacitor-android'
3 | project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
4 |
5 | include ':capacitor-status-bar'
6 | project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android')
7 |
--------------------------------------------------------------------------------
/components/ui/Card.tsx:
--------------------------------------------------------------------------------
1 | import classNames from 'classnames';
2 |
3 | const Card = ({
4 | children,
5 | className,
6 | }: {
7 | children: React.ReactElement[];
8 | className: string;
9 | }) => (
10 |
11 |
12 | {children}
13 |
14 |
15 | );
16 |
17 | export default Card;
18 |
--------------------------------------------------------------------------------
/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | basePath: '',
3 | images: {
4 | remotePatterns: [
5 | {
6 | protocol: 'https',
7 | hostname: 'images.unsplash.com',
8 | port: '',
9 | pathname: '**',
10 | },
11 | ],
12 | unoptimized: true,
13 | },
14 | output: 'export',
15 | swcMinify: true,
16 | transpilePackages: [
17 | '@ionic/react',
18 | '@ionic/core',
19 | '@stencil/core',
20 | 'ionicons',
21 | ],
22 | };
23 |
--------------------------------------------------------------------------------
/app/[...all]/page.tsx:
--------------------------------------------------------------------------------
1 | import dynamic from 'next/dynamic';
2 | import { lists } from '../../mock';
3 |
4 | const App = dynamic(() => import('../../components/AppShell'), {
5 | ssr: false,
6 | });
7 |
8 | export async function generateStaticParams() {
9 | return [
10 | { all: ['feed'] },
11 | { all: ['lists'] },
12 | ...lists.map(list => ({ all: ['lists', list.id] })),
13 | { all: ['settings'] },
14 | ];
15 | }
16 |
17 | export default function Page() {
18 | return ;
19 | }
20 |
--------------------------------------------------------------------------------
/android/app/capacitor.build.gradle:
--------------------------------------------------------------------------------
1 | // DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
2 |
3 | android {
4 | compileOptions {
5 | sourceCompatibility JavaVersion.VERSION_17
6 | targetCompatibility JavaVersion.VERSION_17
7 | }
8 | }
9 |
10 | apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
11 | dependencies {
12 | implementation project(':capacitor-status-bar')
13 |
14 | }
15 |
16 |
17 | if (hasProperty('postBuildExtras')) {
18 | postBuildExtras()
19 | }
20 |
--------------------------------------------------------------------------------
/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.getcapacitor.myapp;
2 |
3 | import static org.junit.Assert.*;
4 |
5 | import org.junit.Test;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 |
14 | @Test
15 | public void addition_isCorrect() throws Exception {
16 | assertEquals(4, 2 + 2);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "splash-2732x2732-2.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "splash-2732x2732-1.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "splash-2732x2732.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # next.js
12 | /.next/
13 | /out/
14 |
15 | # production
16 | /build
17 |
18 | # misc
19 | .DS_Store
20 | *.pem
21 |
22 | # debug
23 | npm-debug.log*
24 | yarn-debug.log*
25 | yarn-error.log*
26 | tsconfig.tsbuildinfo
27 |
28 | # local env files
29 | .env.local
30 | .env.development.local
31 | .env.test.local
32 | .env.production.local
33 |
34 | # vercel
35 | .vercel
36 |
--------------------------------------------------------------------------------
/android/variables.gradle:
--------------------------------------------------------------------------------
1 | ext {
2 | minSdkVersion = 22
3 | compileSdkVersion = 33
4 | targetSdkVersion = 33
5 | androidxActivityVersion = '1.7.0'
6 | androidxAppCompatVersion = '1.6.1'
7 | androidxCoordinatorLayoutVersion = '1.2.0'
8 | androidxCoreVersion = '1.10.0'
9 | androidxFragmentVersion = '1.5.6'
10 | junitVersion = '4.13.2'
11 | androidxJunitVersion = '1.1.5'
12 | androidxEspressoCoreVersion = '3.5.1'
13 | cordovaAndroidVersion = '10.1.1'
14 | coreSplashScreenVersion = '1.0.0'
15 | androidxWebkitVersion = '1.6.1'
16 | }
17 |
--------------------------------------------------------------------------------
/android/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 |
5 | repositories {
6 | google()
7 | mavenCentral()
8 | }
9 | dependencies {
10 | classpath 'com.android.tools.build:gradle:8.0.0'
11 | classpath 'com.google.gms:google-services:4.3.15'
12 |
13 | // NOTE: Do not place your application dependencies here; they belong
14 | // in the individual module build.gradle files
15 | }
16 | }
17 |
18 | apply from: "variables.gradle"
19 |
20 | allprojects {
21 | repositories {
22 | google()
23 | mavenCentral()
24 | }
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/ios/App/Podfile:
--------------------------------------------------------------------------------
1 | require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'
2 |
3 | platform :ios, '13.0'
4 | use_frameworks!
5 |
6 | # workaround to avoid Xcode caching of Pods that requires
7 | # Product -> Clean Build Folder after new Cordova plugins installed
8 | # Requires CocoaPods 1.6 or newer
9 | install! 'cocoapods', :disable_input_output_paths => true
10 |
11 | def capacitor_pods
12 | pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
13 | pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
14 | pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
15 | end
16 |
17 | target 'App' do
18 | capacitor_pods
19 | # Add your Pods here
20 | end
21 |
22 |
23 | post_install do |installer|
24 | assertDeploymentTarget(installer)
25 | end
26 |
--------------------------------------------------------------------------------
/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/store/index.ts:
--------------------------------------------------------------------------------
1 | import { Store as PullStateStore } from 'pullstate';
2 |
3 | import { lists, homeItems, notifications, settings, TodoListItem, HomeItem, NotificationItem, Settings } from '../mock';
4 |
5 | type StoreProps = {
6 | safeAreaTop: number;
7 | safeAreaBottom: number;
8 | menuOpen: boolean;
9 | notificationsOpen: boolean;
10 | currentPage: number | null;
11 | homeItems: HomeItem[];
12 | lists: TodoListItem[];
13 | notifications: NotificationItem[];
14 | settings: Settings;
15 | selectedList: TodoListItem | undefined;
16 | }
17 |
18 | const Store = new PullStateStore({
19 | safeAreaTop: 0,
20 | safeAreaBottom: 0,
21 | menuOpen: false,
22 | notificationsOpen: false,
23 | currentPage: null,
24 | homeItems,
25 | lists,
26 | notifications,
27 | settings,
28 | selectedList: undefined,
29 | });
30 |
31 | export default Store;
32 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/tsconfig",
3 | "display": "Next.js",
4 | "_version": "2.0.0",
5 | "compilerOptions": {
6 | "lib": [
7 | "dom",
8 | "dom.iterable",
9 | "esnext"
10 | ],
11 | "allowJs": true,
12 | "skipLibCheck": true,
13 | "strict": true,
14 | "forceConsistentCasingInFileNames": true,
15 | "noEmit": true,
16 | "esModuleInterop": true,
17 | "module": "esnext",
18 | "moduleResolution": "node",
19 | "resolveJsonModule": true,
20 | "isolatedModules": true,
21 | "jsx": "preserve",
22 | "incremental": true,
23 | "plugins": [
24 | {
25 | "name": "next"
26 | }
27 | ]
28 | },
29 | "include": [
30 | "next-env.d.ts",
31 | "**/*.ts",
32 | "**/*.tsx",
33 | ".next/types/**/*.ts"
34 | ],
35 | "exclude": [
36 | "node_modules"
37 | ]
38 | }
39 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
11 |
12 |
17 |
18 |
19 |
22 |
--------------------------------------------------------------------------------
/components/AppShell.tsx:
--------------------------------------------------------------------------------
1 | 'use client';
2 | import { IonApp, IonRouterOutlet, setupIonicReact } from '@ionic/react';
3 | import { StatusBar, Style } from '@capacitor/status-bar';
4 | import { IonReactRouter } from '@ionic/react-router';
5 | import { Route } from 'react-router-dom';
6 |
7 | import Tabs from './pages/Tabs';
8 |
9 | setupIonicReact({});
10 |
11 | window
12 | .matchMedia('(prefers-color-scheme: dark)')
13 | .addEventListener('change', async status => {
14 | try {
15 | await StatusBar.setStyle({
16 | style: status.matches ? Style.Dark : Style.Light,
17 | });
18 | } catch {}
19 | });
20 |
21 | const AppShell = () => {
22 | return (
23 |
24 |
25 |
26 | } />
27 |
28 |
29 |
30 | );
31 | };
32 |
33 | export default AppShell;
34 |
--------------------------------------------------------------------------------
/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.getcapacitor.myapp;
2 |
3 | import static org.junit.Assert.*;
4 |
5 | import android.content.Context;
6 | import androidx.test.ext.junit.runners.AndroidJUnit4;
7 | import androidx.test.platform.app.InstrumentationRegistry;
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * @see Testing documentation
15 | */
16 | @RunWith(AndroidJUnit4.class)
17 | public class ExampleInstrumentedTest {
18 |
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
23 |
24 | assertEquals("com.getcapacitor.app", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/ios/App/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Capacitor (5.7.2):
3 | - CapacitorCordova
4 | - CapacitorCordova (5.7.2)
5 | - CapacitorStatusBar (5.0.7):
6 | - Capacitor
7 |
8 | DEPENDENCIES:
9 | - "Capacitor (from `../../node_modules/@capacitor/ios`)"
10 | - "CapacitorCordova (from `../../node_modules/@capacitor/ios`)"
11 | - "CapacitorStatusBar (from `../../node_modules/@capacitor/status-bar`)"
12 |
13 | EXTERNAL SOURCES:
14 | Capacitor:
15 | :path: "../../node_modules/@capacitor/ios"
16 | CapacitorCordova:
17 | :path: "../../node_modules/@capacitor/ios"
18 | CapacitorStatusBar:
19 | :path: "../../node_modules/@capacitor/status-bar"
20 |
21 | SPEC CHECKSUMS:
22 | Capacitor: 1450f8c66bb4e541448c11aad9460b542155b722
23 | CapacitorCordova: 70b13b8fddb6f35d8adcfe06cb5045c07f35f6de
24 | CapacitorStatusBar: 37ca5200a1791340c519239521ec2519d384eacb
25 |
26 | PODFILE CHECKSUM: fb6b0853c309f7e22b75d4c9bb586b3d3aa92a4b
27 |
28 | COCOAPODS: 1.16.2
29 |
--------------------------------------------------------------------------------
/store/selectors.ts:
--------------------------------------------------------------------------------
1 | import { createSelector } from 'reselect';
2 | import { HomeItem, NotificationItem, Settings, TodoListItem } from '../mock';
3 |
4 | export interface RootState {
5 | homeItems: HomeItem[]
6 | lists: TodoListItem[]
7 | notifications: NotificationItem[]
8 | settings: Settings
9 | }
10 |
11 | export const createAppSelector = createSelector.withTypes()
12 |
13 | export const selectHomeItems = createAppSelector(
14 | [
15 | state => state.homeItems
16 | ],
17 | homeItems => homeItems
18 | )
19 |
20 | export const selectLists = createAppSelector(
21 | [
22 | state => state.lists
23 | ],
24 | lists => lists
25 | )
26 |
27 | export const selectNotifications = createAppSelector(
28 | [
29 | state => state.notifications
30 | ],
31 | notifications => notifications
32 | )
33 |
34 | export const selectSettings = createAppSelector(
35 | [
36 | state => state.settings
37 | ],
38 | settings => settings
39 | )
40 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
19 | # AndroidX package structure to make it clearer which packages are bundled with the
20 | # Android operating system, and which are packaged with your app's APK
21 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
22 | android.useAndroidX=true
23 |
24 |
--------------------------------------------------------------------------------
/public/vercel.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ios/App/App/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Drifty Co
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/components/pages/Settings.tsx:
--------------------------------------------------------------------------------
1 | import {
2 | IonPage,
3 | IonHeader,
4 | IonItem,
5 | IonToolbar,
6 | IonTitle,
7 | IonContent,
8 | IonList,
9 | IonToggle,
10 | } from '@ionic/react';
11 |
12 | import Store from '../../store';
13 | import * as selectors from '../../store/selectors';
14 | import { setSettings } from '../../store/actions';
15 |
16 | const Settings = () => {
17 | const settings = Store.useState(selectors.selectSettings);
18 | return (
19 |
20 |
21 |
22 | Settings
23 |
24 |
25 |
26 |
27 |
28 | {
31 | setSettings({
32 | ...settings,
33 | enableNotifications: e.target.checked,
34 | });
35 | }}
36 | >
37 | Enable Notifications
38 |
39 |
40 |
41 |
42 |
43 | );
44 | };
45 |
46 | export default Settings;
47 |
--------------------------------------------------------------------------------
/store/actions.ts:
--------------------------------------------------------------------------------
1 | import Store from '.';
2 | import { ListItem, Settings, TodoListItem } from '../mock';
3 |
4 | export const setMenuOpen = (open: boolean) => {
5 | Store.update(s => {
6 | s.menuOpen = open;
7 | });
8 | };
9 |
10 | export const setNotificationsOpen = (open: boolean) => {
11 | Store.update(s => {
12 | s.notificationsOpen = open;
13 | });
14 | };
15 |
16 | export const setSettings = (settings: Settings) => {
17 | Store.update(s => {
18 | s.settings = settings;
19 | });
20 | };
21 |
22 | // App-specific actions
23 |
24 | export const setDone = (
25 | list: TodoListItem,
26 | listItem: ListItem,
27 | done: boolean,
28 | ) => {
29 | Store.update((s, o) => {
30 | const listIndex = o.lists.findIndex(l => l === list);
31 | if (listIndex === -1) return;
32 |
33 | const items = o.lists[listIndex].items;
34 | const itemIndex = items?.findIndex(i => i === listItem);
35 | if (itemIndex === undefined || itemIndex < 0) return;
36 |
37 | const draftItem = s.lists[listIndex].items?.[itemIndex];
38 | if (!draftItem) return;
39 |
40 | draftItem.done = done;
41 |
42 | if (list === o.selectedList) {
43 | s.selectedList = s.lists[listIndex];
44 | }
45 | });
46 | };
47 |
--------------------------------------------------------------------------------
/components/pages/Lists.tsx:
--------------------------------------------------------------------------------
1 | import { TodoListItem } from '../../mock';
2 | import Store from '../../store';
3 | import * as selectors from '../../store/selectors';
4 | import {
5 | IonPage,
6 | IonHeader,
7 | IonToolbar,
8 | IonTitle,
9 | IonContent,
10 | IonItem,
11 | IonLabel,
12 | IonList,
13 | } from '@ionic/react';
14 |
15 | const ListEntry = ({ list }: { list: TodoListItem }) => {
16 | return (
17 |
18 | {list.name}
19 |
20 | );
21 | };
22 |
23 | const AllLists = () => {
24 | const lists = Store.useState(selectors.selectLists);
25 |
26 | return (
27 | <>
28 | {lists.map((list, i) => (
29 |
30 | ))}
31 | >
32 | );
33 | };
34 |
35 | const Lists = () => {
36 | return (
37 |
38 |
39 |
40 | Lists
41 |
42 |
43 |
44 |
45 |
46 | Lists
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | );
55 | };
56 |
57 | export default Lists;
58 |
--------------------------------------------------------------------------------
/components/pages/Tabs.tsx:
--------------------------------------------------------------------------------
1 | import { Redirect, Route, Switch } from 'react-router-dom';
2 | import {
3 | IonRouterOutlet,
4 | IonTabs,
5 | IonTabBar,
6 | IonTabButton,
7 | IonIcon,
8 | IonLabel,
9 | } from '@ionic/react';
10 | import { cog, flash, list } from 'ionicons/icons';
11 |
12 | import Home from './Feed';
13 | import Lists from './Lists';
14 | import ListDetail from './ListDetail';
15 | import Settings from './Settings';
16 |
17 | const Tabs = () => {
18 | return (
19 |
20 |
21 |
22 | } exact={true} />
23 | } exact={true} />
24 | }
27 | exact={true}
28 | />
29 | } exact={true} />
30 | } exact={true} />
31 |
32 |
33 |
34 |
35 |
36 | Feed
37 |
38 |
39 |
40 | Lists
41 |
42 |
43 |
44 | Settings
45 |
46 |
47 |
48 | );
49 | };
50 |
51 | export default Tabs;
52 |
--------------------------------------------------------------------------------
/app/layout.tsx:
--------------------------------------------------------------------------------
1 | import type { Metadata, Viewport } from 'next';
2 | import Script from 'next/script';
3 |
4 | import 'tailwindcss/tailwind.css';
5 | /* Core CSS required for Ionic components to work properly */
6 | import '@ionic/react/css/core.css';
7 |
8 | /* Basic CSS for apps built with Ionic */
9 | import '@ionic/react/css/normalize.css';
10 | import '@ionic/react/css/structure.css';
11 | import '@ionic/react/css/typography.css';
12 |
13 | /* Optional CSS utils that can be commented out */
14 | import '@ionic/react/css/padding.css';
15 | import '@ionic/react/css/float-elements.css';
16 | import '@ionic/react/css/text-alignment.css';
17 | import '@ionic/react/css/text-transformation.css';
18 | import '@ionic/react/css/flex-utils.css';
19 | import '@ionic/react/css/display.css';
20 |
21 | import '../styles/global.css';
22 | import '../styles/variables.css';
23 |
24 | export const metadata: Metadata = {
25 | title: 'Create Next App',
26 | description: 'Generated by create next app',
27 | };
28 |
29 | export const viewport: Viewport = {
30 | initialScale: 1,
31 | width: 'device-width',
32 | viewportFit: 'cover',
33 | };
34 |
35 | export default function RootLayout({
36 | children,
37 | }: Readonly<{
38 | children: React.ReactNode;
39 | }>) {
40 | return (
41 |
42 | {children}
43 |
48 |
53 |
54 | );
55 | }
56 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nextjs-tailwind-ionic-capacitor-starter",
3 | "version": "5.1.0",
4 | "private": true,
5 | "engines": {
6 | "node": ">=18.17"
7 | },
8 | "scripts": {
9 | "compile": "tsc",
10 | "compile:watch": "tsc -w",
11 | "build": "next build",
12 | "dev": "next dev",
13 | "lint": "eslint . --ext .ts,.tsx",
14 | "prettify": "prettier --write **/*.tsx",
15 | "preserve": "npm run build",
16 | "serve": "npx serve out",
17 | "presync": "npm run build",
18 | "sync": "npx cap sync",
19 | "android": "npx cap run android",
20 | "ios": "npx cap run ios"
21 | },
22 | "dependencies": {
23 | "@capacitor/android": "5.7.2",
24 | "@capacitor/core": "5.7.2",
25 | "@capacitor/ios": "5.7.2",
26 | "@capacitor/status-bar": "5.0.7",
27 | "@ionic/react": "7.7.4",
28 | "@ionic/react-router": "7.7.4",
29 | "classnames": "2.5.1",
30 | "next": "14.2.32",
31 | "react": "18.2.0",
32 | "react-dom": "18.2.0",
33 | "react-router": "5.3.4",
34 | "react-router-dom": "5.3.4",
35 | "react-virtuoso": "4.7.1"
36 | },
37 | "devDependencies": {
38 | "@capacitor/cli": "5.7.2",
39 | "@types/jest": "29.5.12",
40 | "@types/node": "20.11.25",
41 | "@types/react": "18.2.64",
42 | "@types/react-dom": "18.2.21",
43 | "@types/react-router-dom": "5.3.3",
44 | "@types/react-router": "5.1.20",
45 | "autoprefixer": "10.4.18",
46 | "eslint": "8.57.0",
47 | "eslint-config-next": "14.1.3",
48 | "ionicons": "7.2.2",
49 | "postcss": "8.4.35",
50 | "prettier": "3.2.5",
51 | "pullstate": "1.25",
52 | "reselect": "5.1.0",
53 | "tailwindcss": "3.4.1",
54 | "typescript": "5.4.2"
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
33 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/ios/App/App/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | nextjs-tailwind-capacitor
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 | UIViewControllerBasedStatusBarAppearance
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/components/pages/ListDetail.tsx:
--------------------------------------------------------------------------------
1 | import {
2 | IonBackButton,
3 | IonButtons,
4 | IonCheckbox,
5 | IonContent,
6 | IonHeader,
7 | IonItem,
8 | IonLabel,
9 | IonList,
10 | IonPage,
11 | IonTitle,
12 | IonToolbar,
13 | } from '@ionic/react';
14 | import { useParams } from 'react-router-dom';
15 |
16 | import Store from '../../store';
17 | import * as actions from '../../store/actions';
18 | import * as selectors from '../../store/selectors';
19 | import { ListItem, TodoListItem } from '../../mock';
20 |
21 | type ListDetailParams = {
22 | listId: string;
23 | };
24 |
25 | const ListItems = ({ list }: { list: TodoListItem }) => {
26 | return (
27 |
28 | {(list?.items || []).map((item, key) => (
29 |
30 | ))}
31 |
32 | );
33 | };
34 |
35 | const ListItemEntry = ({
36 | list,
37 | item,
38 | }: {
39 | list: TodoListItem;
40 | item: ListItem;
41 | }) => (
42 | actions.setDone(list, item, !item.done)}>
43 | {item.name}
44 |
49 |
50 | );
51 |
52 | const ListDetail = () => {
53 | const lists = Store.useState(selectors.selectLists);
54 | const params = useParams();
55 | const { listId } = params;
56 | const loadedList = lists.find(l => l.id === listId);
57 |
58 | return (
59 |
60 |
61 |
62 |
63 |
64 |
65 | {loadedList?.name}
66 |
67 |
68 | {loadedList && }
69 |
70 | );
71 | };
72 |
73 | export default ListDetail;
74 |
--------------------------------------------------------------------------------
/components/pages/Notifications.tsx:
--------------------------------------------------------------------------------
1 | import {
2 | IonModal,
3 | IonHeader,
4 | IonToolbar,
5 | IonTitle,
6 | IonContent,
7 | IonButton,
8 | IonIcon,
9 | IonList,
10 | IonItem,
11 | IonNote,
12 | IonLabel,
13 | } from '@ionic/react';
14 | import Store from '../../store';
15 | import { selectNotifications } from '../../store/selectors';
16 |
17 | import { close } from 'ionicons/icons';
18 | import { type NotificationItem } from '../../mock';
19 |
20 | const NotificationItem = ({
21 | notification,
22 | }: {
23 | notification: NotificationItem;
24 | }) => (
25 |
26 | {notification.title}
27 | {notification.when}
28 |
29 |
30 |
31 |
32 | );
33 |
34 | const Notifications = ({
35 | open,
36 | onDidDismiss,
37 | }: {
38 | open: boolean;
39 | onDidDismiss: () => void;
40 | }) => {
41 | const notifications = Store.useState(selectNotifications);
42 |
43 | return (
44 |
45 |
46 |
47 | Notifications
48 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | Notifications
62 |
63 |
64 |
65 | {notifications.map((notification, i) => (
66 |
67 | ))}
68 |
69 |
70 |
71 | );
72 | };
73 |
74 | export default Notifications;
75 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | # Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
2 |
3 | # Built application files
4 | *.apk
5 | *.aar
6 | *.ap_
7 | *.aab
8 |
9 | # Files for the ART/Dalvik VM
10 | *.dex
11 |
12 | # Java class files
13 | *.class
14 |
15 | # Generated files
16 | bin/
17 | gen/
18 | out/
19 | # Uncomment the following line in case you need and you don't have the release build type files in your app
20 | # release/
21 |
22 | # Gradle files
23 | .gradle/
24 | build/
25 |
26 | # Local configuration file (sdk path, etc)
27 | local.properties
28 |
29 | # Proguard folder generated by Eclipse
30 | proguard/
31 |
32 | # Log Files
33 | *.log
34 |
35 | # Android Studio Navigation editor temp files
36 | .navigation/
37 |
38 | # Android Studio captures folder
39 | captures/
40 |
41 | # IntelliJ
42 | *.iml
43 | .idea/workspace.xml
44 | .idea/tasks.xml
45 | .idea/gradle.xml
46 | .idea/assetWizardSettings.xml
47 | .idea/dictionaries
48 | .idea/libraries
49 | # Android Studio 3 in .gitignore file.
50 | .idea/caches
51 | .idea/modules.xml
52 | # Comment next line if keeping position of elements in Navigation Editor is relevant for you
53 | .idea/navEditor.xml
54 |
55 | # Keystore files
56 | # Uncomment the following lines if you do not want to check your keystore files in.
57 | #*.jks
58 | #*.keystore
59 |
60 | # External native build folder generated in Android Studio 2.2 and later
61 | .externalNativeBuild
62 | .cxx/
63 |
64 | # Google Services (e.g. APIs or Firebase)
65 | # google-services.json
66 |
67 | # Freeline
68 | freeline.py
69 | freeline/
70 | freeline_project_description.json
71 |
72 | # fastlane
73 | fastlane/report.xml
74 | fastlane/Preview.html
75 | fastlane/screenshots
76 | fastlane/test_output
77 | fastlane/readme.md
78 |
79 | # Version control
80 | vcs.xml
81 |
82 | # lint
83 | lint/intermediates/
84 | lint/generated/
85 | lint/outputs/
86 | lint/tmp/
87 | # lint/reports/
88 |
89 | # Android Profiling
90 | *.hprof
91 |
92 | # Cordova plugins for Capacitor
93 | capacitor-cordova-android-plugins
94 |
95 | # Copied web assets
96 | app/src/main/assets/public
97 |
--------------------------------------------------------------------------------
/ios/App/App/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | namespace "com.example.app"
5 | compileSdkVersion rootProject.ext.compileSdkVersion
6 | defaultConfig {
7 | applicationId "com.example.app"
8 | minSdkVersion rootProject.ext.minSdkVersion
9 | targetSdkVersion rootProject.ext.targetSdkVersion
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
13 | aaptOptions {
14 | // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
15 | // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
16 | ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
17 | }
18 | }
19 | buildTypes {
20 | release {
21 | minifyEnabled false
22 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
23 | }
24 | }
25 | }
26 |
27 | repositories {
28 | flatDir{
29 | dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
30 | }
31 | }
32 |
33 | dependencies {
34 | implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
35 | implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
36 | implementation fileTree(include: ['*.jar'], dir: 'libs')
37 | implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
38 | implementation project(':capacitor-android')
39 | testImplementation "junit:junit:$junitVersion"
40 | androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
41 | androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
42 | implementation project(':capacitor-cordova-android-plugins')
43 | }
44 |
45 | apply from: 'capacitor.build.gradle'
46 |
47 | try {
48 | def servicesJSON = file('google-services.json')
49 | if (servicesJSON.text) {
50 | apply plugin: 'com.google.gms.google-services'
51 | }
52 | } catch(Exception e) {
53 | logger.warn("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
54 | }
55 |
--------------------------------------------------------------------------------
/mock/index.ts:
--------------------------------------------------------------------------------
1 | export type HomeItem = {
2 | id: number;
3 | title: string;
4 | type: string;
5 | text: string;
6 | author: string;
7 | authorAvatar: string;
8 | image: string;
9 | };
10 |
11 | export const homeItems: HomeItem[] = [
12 | {
13 | id: 1,
14 | title: 'Exploring Maui',
15 | type: 'Blog',
16 | text: 'We just got back from a trip to Maui, and we had a great time...',
17 | author: 'Max Lynch',
18 | authorAvatar: '/img/max.jpg',
19 | image: '/img/c1.avif',
20 | },
21 | {
22 | id: 2,
23 | title: 'Arctic Adventures',
24 | type: 'Blog',
25 | text: 'Last month we took a trek to the Arctic Circle. The isolation was just what we needed after...',
26 | author: 'Nathan Chapman',
27 | authorAvatar: '/img/nathan.jpg',
28 | image: '/img/c2.avif',
29 | },
30 | {
31 | id: 3,
32 | title: 'Frolicking in the Faroe Islands',
33 | type: 'Blog',
34 | text: 'The Faroe Islands are a North Atlantic archipelago located 320 kilometres (200 mi) north-northwest of Scotland...',
35 | author: 'Leo Giovanetti',
36 | authorAvatar: '/img/leo.jpg',
37 | image: '/img/c3.avif',
38 | },
39 | ];
40 |
41 | export type NotificationItem = {
42 | id: number;
43 | title: string;
44 | when: string;
45 | };
46 |
47 | export const notifications: NotificationItem[] = [
48 | { id: 1, title: 'New friend request', when: '6 hr' },
49 | { id: 2, title: 'Please change your password', when: '1 day' },
50 | { id: 3, title: 'You have a new message', when: '2 weeks' },
51 | { id: 4, title: 'Welcome to the app!', when: '1 month' },
52 | ];
53 |
54 | export type ListItem = {
55 | name: string;
56 | done?: boolean;
57 | };
58 |
59 | export type TodoListItem = {
60 | name: string;
61 | id: string;
62 | items?: ListItem[];
63 | };
64 |
65 | // Some fake lists
66 | export const lists: TodoListItem[] = [
67 | {
68 | name: 'Groceries',
69 | id: '01HRCYTYED31N83MJ0WK97WC02',
70 | items: [
71 | { name: 'Apples' },
72 | { name: 'Bananas' },
73 | { name: 'Milk' },
74 | { name: 'Ice Cream' },
75 | ],
76 | },
77 | {
78 | name: 'Hardware Store',
79 | id: '01HRCYV2KPNJQJ43Y7X526BHVX',
80 | items: [
81 | { name: 'Circular Saw' },
82 | { name: 'Tack Cloth' },
83 | { name: 'Drywall' },
84 | { name: 'Router' },
85 | ],
86 | },
87 | {
88 | name: 'Work',
89 | id: '01HRCYV6C3YWAJRF2ZE7AZ17K7',
90 | items: [{ name: 'TPS Report' }, { name: 'Set up email' }],
91 | },
92 | {
93 | name: 'Reminders',
94 | id: '01HRCYVADRPCM5SYV5BH98C7HS',
95 | items: [{ name: 'Get car inspection', done: true }],
96 | },
97 | ];
98 |
99 | export type Settings = {
100 | enableNotifications: boolean;
101 | };
102 |
103 | export const settings: Settings = {
104 | enableNotifications: true,
105 | };
106 |
--------------------------------------------------------------------------------
/ios/App/App/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Capacitor
3 |
4 | @UIApplicationMain
5 | class AppDelegate: UIResponder, UIApplicationDelegate {
6 |
7 | var window: UIWindow?
8 |
9 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
10 | // Override point for customization after application launch.
11 | return true
12 | }
13 |
14 | func applicationWillResignActive(_ application: UIApplication) {
15 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
16 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
17 | }
18 |
19 | func applicationDidEnterBackground(_ application: UIApplication) {
20 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
21 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
22 | }
23 |
24 | func applicationWillEnterForeground(_ application: UIApplication) {
25 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
26 | }
27 |
28 | func applicationDidBecomeActive(_ application: UIApplication) {
29 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
30 | }
31 |
32 | func applicationWillTerminate(_ application: UIApplication) {
33 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
34 | }
35 |
36 | func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
37 | // Called when the app was launched with a url. Feel free to add additional processing here,
38 | // but if you want the App API to support tracking app url opens, make sure to keep this call
39 | return ApplicationDelegateProxy.shared.application(app, open: url, options: options)
40 | }
41 |
42 | func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
43 | // Called when the app was launched with an activity, including Universal Links.
44 | // Feel free to add additional processing here, but if you want the App API to support
45 | // tracking app url opens, make sure to keep this call
46 | return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler)
47 | }
48 |
49 |
50 | }
51 |
52 |
--------------------------------------------------------------------------------
/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%"=="" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%"=="" set DIRNAME=.
29 | @rem This is normally unused
30 | set APP_BASE_NAME=%~n0
31 | set APP_HOME=%DIRNAME%
32 |
33 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35 |
36 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38 |
39 | @rem Find java.exe
40 | if defined JAVA_HOME goto findJavaFromJavaHome
41 |
42 | set JAVA_EXE=java.exe
43 | %JAVA_EXE% -version >NUL 2>&1
44 | if %ERRORLEVEL% equ 0 goto execute
45 |
46 | echo.
47 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48 | echo.
49 | echo Please set the JAVA_HOME variable in your environment to match the
50 | echo location of your Java installation.
51 |
52 | goto fail
53 |
54 | :findJavaFromJavaHome
55 | set JAVA_HOME=%JAVA_HOME:"=%
56 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57 |
58 | if exist "%JAVA_EXE%" goto execute
59 |
60 | echo.
61 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62 | echo.
63 | echo Please set the JAVA_HOME variable in your environment to match the
64 | echo location of your Java installation.
65 |
66 | goto fail
67 |
68 | :execute
69 | @rem Setup the command line
70 |
71 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72 |
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if %ERRORLEVEL% equ 0 goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | set EXIT_CODE=%ERRORLEVEL%
85 | if %EXIT_CODE% equ 0 set EXIT_CODE=1
86 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87 | exit /b %EXIT_CODE%
88 |
89 | :mainEnd
90 | if "%OS%"=="Windows_NT" endlocal
91 |
92 | :omega
93 |
--------------------------------------------------------------------------------
/components/pages/Feed.tsx:
--------------------------------------------------------------------------------
1 | import Image from 'next/image';
2 | import Card from '../ui/Card';
3 |
4 | import {
5 | IonPage,
6 | IonHeader,
7 | IonToolbar,
8 | IonTitle,
9 | IonButtons,
10 | IonButton,
11 | IonIcon,
12 | IonContent,
13 | IonMenuButton,
14 | } from '@ionic/react';
15 | import Notifications from './Notifications';
16 | import { useState } from 'react';
17 | import { notificationsOutline } from 'ionicons/icons';
18 | import { selectHomeItems } from '../../store/selectors';
19 | import Store from '../../store';
20 |
21 | type FeedCardProps = {
22 | title: string;
23 | type: string;
24 | text: string;
25 | author: string;
26 | authorAvatar: string;
27 | image: string;
28 | };
29 |
30 | const FeedCard = ({
31 | title,
32 | type,
33 | text,
34 | author,
35 | authorAvatar,
36 | image,
37 | }: FeedCardProps) => (
38 |
39 |
40 |
46 |
47 |
48 |
49 | {type}
50 |
51 |
52 | {title}
53 |
54 |
55 | {text}
56 |
57 |
58 |
59 |
65 |
66 |
67 | {author}
68 |
69 |
70 |
71 |
72 | );
73 |
74 | const Feed = () => {
75 | const homeItems = Store.useState(selectHomeItems);
76 | const [showNotifications, setShowNotifications] = useState(false);
77 |
78 | return (
79 |
80 |
81 |
82 | Feed
83 |
84 |
85 |
86 |
87 | setShowNotifications(true)}>
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 | Feed
97 |
98 |
99 | setShowNotifications(false)}
102 | />
103 | {homeItems.map((i, index) => (
104 |
105 | ))}
106 |
107 |
108 | );
109 | };
110 |
111 | export default Feed;
112 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Next.js + Tailwind CSS + Ionic Framework + Capacitor Mobile Starter
2 |
3 | 
4 |
5 | This repo is a conceptual starting point for building an iOS, Android, and Progressive Web App with Next.js, Tailwind CSS, [Ionic Framework](https://ionicframework.com/), and [Capacitor](https://capacitorjs.com/).
6 |
7 | Next.js handles the production React app experience, Tailwind can be used to style each page of your app, Ionic Framework provides the cross-platform system controls (navigation/transitions/tabs/etc.), and then Capacitor bundles all of it up and runs it on iOS, Android, and Web with full native access.
8 |
9 | See this blog post for an overview of the stack and how it all works:
10 |
11 | ## Usage
12 |
13 | This project is a standard Next.js app, so the typical Next.js development process applies (`npm run dev` for browser-based development). However, there is one caveat: the app must be exported to deploy to iOS and Android, since it must run purely client-side. ([more on Next.js export](https://nextjs.org/docs/advanced-features/static-html-export))
14 |
15 | To build the app, run:
16 |
17 | ```bash
18 | npm run build
19 | ```
20 |
21 | All the client side files will be sent to the `./out/` directory. These files need to be copied to the native iOS and Android projects, and this is where Capacitor comes in:
22 |
23 | ```bash
24 | npm run sync
25 | ```
26 |
27 | Finally, use the following run commands to run the app on each platform:
28 |
29 | ```bash
30 | npm run ios
31 | npm run android
32 | ```
33 |
34 | ## Livereload/Instant Refresh
35 |
36 | To enable Livereload and Instant Refresh during development (when running `npm run dev`), find the IP address of your local interface (ex: `192.168.1.2`) and port your Next.js server is running on, and then set the server url config value to point to it in `capacitor.config.json`:
37 |
38 | ```json
39 | {
40 | "server": {
41 | "url": "http://192.168.1.2:3000"
42 | }
43 | }
44 | ```
45 |
46 | Note: this configuration wil be easier in Capacitor 3 which [recently went into beta](https://capacitorjs.com/blog/announcing-capacitor-3-0-beta).
47 |
48 | ## API Routes
49 |
50 | API Routes can be used but some minimal configuration is required. See [this discussion](https://github.com/mlynch/nextjs-tailwind-ionic-capacitor-starter/issues/4#issuecomment-754030049) for more information.
51 |
52 | ## SEO & Static Hosting
53 |
54 | - **Is the exported PWA crawlable?** By default this starter renders everything on the client (see `components/AppShell.tsx`), so the static build contains a minimal HTML shell that immediately hands off to JavaScript. Search engine bots that depend on server-rendered HTML will not see meaningful page content, so the project is not SEO-friendly out of the box. If you need full SEO support, SSR/SSG needs to be working on the routes you want indexed or using a parallel, SEO-optimized web surface, but take a look at the below caveat about this project.
55 | - **Can I host the export as static HTML?** Yes. `next.config.js` sets `output: 'export'`, so `npm run build` writes a fully static bundle to the `out/` directory. You can deploy those files to any static host (e.g. Vercel static, Netlify, S3, GitHub Pages) or let Capacitor copy them into the native shells.
56 |
57 | ## Caveats
58 |
59 | One caveat with this project: Because the app must be able to run purely client-side and use [Next.js's Export command](https://nextjs.org/docs/advanced-features/static-html-export), that means no Server Side Rendering in this code base. There is likely a way to SSR and a fully static Next.js app in tandem but it requires [a Babel plugin](https://github.com/erzr/next-babel-conditional-ssg-ssr) or would involve a more elaborate monorepo setup with code sharing that is out of scope for this project.
60 |
61 | Additionally, Next.js routing is not really used much in this app beyond a catch-all route to render the native app shell and engage the Ionic React Router. This is primarily because Next.js routing is not set up to enable native-style transitions and history state management like the kind Ionic uses.
62 |
63 | ## What is Capacitor?
64 |
65 | You can think of [Capacitor](https://capacitorjs.com/) as a sort of "electron for mobile" that runs standard web apps on iOS, Android, Desktop, and Web.
66 |
67 | Capacitor provides access to Native APIs and a plugin system for building any native functionality your app needs.
68 |
69 | Capacitor apps can also run in the browser as a Progressive Web App with the same code.
70 |
--------------------------------------------------------------------------------
/styles/global.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --safe-area-top: env(safe-area-inset-top);
3 | --safe-area-bottom: env(safe-area-inset-bottom, 0);
4 | --safe-area-left: env(safe-area-inset-left, 0);
5 | --safe-area-right: env(safe-area-inset-right, 0);
6 | }
7 | body {
8 | overflow: hidden;
9 | height: 100vh;
10 | width: 100vw;
11 | }
12 |
13 | /**
14 | * Styles for the Icon UI component.
15 | *
16 | * TODO: Move these into a styled component or similar system if desired
17 | */
18 | .ui-icon {
19 | display: inline-block;
20 |
21 | width: 1em;
22 | height: 1em;
23 |
24 | contain: strict;
25 |
26 | fill: currentColor;
27 |
28 | box-sizing: content-box !important;
29 | }
30 |
31 | .ui-icon .ionicon {
32 | stroke: currentColor;
33 | }
34 |
35 | .ui-icon .ionicon-fill-none {
36 | fill: none;
37 | }
38 |
39 | .ui-icon .ionicon-stroke-width {
40 | stroke-width: 32px;
41 | stroke-width: var(--ionicon-stroke-width, 32px);
42 | }
43 |
44 | .ui-icon .icon-inner,
45 | .ui-icon .ionicon,
46 | .ui-icon svg {
47 | display: block;
48 |
49 | height: 100%;
50 | width: 100%;
51 | }
52 |
53 | /** Styles for React Toggle */
54 |
55 | .react-toggle {
56 | touch-action: pan-x;
57 |
58 | display: inline-block;
59 | position: relative;
60 | cursor: pointer;
61 | background-color: transparent;
62 | border: 0;
63 | padding: 0;
64 |
65 | -webkit-touch-callout: none;
66 | -webkit-user-select: none;
67 | -khtml-user-select: none;
68 | -moz-user-select: none;
69 | -ms-user-select: none;
70 | user-select: none;
71 |
72 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
73 | -webkit-tap-highlight-color: transparent;
74 | }
75 |
76 | .react-toggle-screenreader-only {
77 | border: 0;
78 | clip: rect(0 0 0 0);
79 | height: 1px;
80 | margin: -1px;
81 | overflow: hidden;
82 | padding: 0;
83 | position: absolute;
84 | width: 1px;
85 | }
86 |
87 | .react-toggle--disabled {
88 | cursor: not-allowed;
89 | opacity: 0.5;
90 | -webkit-transition: opacity 0.25s;
91 | transition: opacity 0.25s;
92 | }
93 |
94 | .react-toggle-track {
95 | width: 50px;
96 | height: 24px;
97 | padding: 0;
98 | border-radius: 30px;
99 | background-color: #4d4d4d;
100 | -webkit-transition: all 0.2s ease;
101 | -moz-transition: all 0.2s ease;
102 | transition: all 0.2s ease;
103 | }
104 |
105 | .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
106 | background-color: #000000;
107 | }
108 |
109 | .react-toggle--checked .react-toggle-track {
110 | background-color: #19ab27;
111 | }
112 |
113 | .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
114 | background-color: #128d15;
115 | }
116 |
117 | .react-toggle-track-check {
118 | position: absolute;
119 | width: 14px;
120 | height: 10px;
121 | top: 0px;
122 | bottom: 0px;
123 | margin-top: auto;
124 | margin-bottom: auto;
125 | line-height: 0;
126 | left: 8px;
127 | opacity: 0;
128 | -webkit-transition: opacity 0.25s ease;
129 | -moz-transition: opacity 0.25s ease;
130 | transition: opacity 0.25s ease;
131 | }
132 |
133 | .react-toggle--checked .react-toggle-track-check {
134 | opacity: 1;
135 | -webkit-transition: opacity 0.25s ease;
136 | -moz-transition: opacity 0.25s ease;
137 | transition: opacity 0.25s ease;
138 | }
139 |
140 | .react-toggle-track-x {
141 | position: absolute;
142 | width: 10px;
143 | height: 10px;
144 | top: 0px;
145 | bottom: 0px;
146 | margin-top: auto;
147 | margin-bottom: auto;
148 | line-height: 0;
149 | right: 10px;
150 | opacity: 1;
151 | -webkit-transition: opacity 0.25s ease;
152 | -moz-transition: opacity 0.25s ease;
153 | transition: opacity 0.25s ease;
154 | }
155 |
156 | .react-toggle--checked .react-toggle-track-x {
157 | opacity: 0;
158 | }
159 |
160 | .react-toggle-thumb {
161 | transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
162 | position: absolute;
163 | top: 1px;
164 | left: 1px;
165 | width: 22px;
166 | height: 22px;
167 | border: 1px solid #4d4d4d;
168 | border-radius: 50%;
169 | background-color: #fafafa;
170 |
171 | -webkit-box-sizing: border-box;
172 | -moz-box-sizing: border-box;
173 | box-sizing: border-box;
174 |
175 | -webkit-transition: all 0.25s ease;
176 | -moz-transition: all 0.25s ease;
177 | transition: all 0.25s ease;
178 | }
179 |
180 | .react-toggle--checked .react-toggle-thumb {
181 | left: 27px;
182 | border-color: #19ab27;
183 | }
184 |
185 | .react-toggle--focus .react-toggle-thumb {
186 | -webkit-box-shadow: 0px 0px 3px 2px #0099e0;
187 | -moz-box-shadow: 0px 0px 3px 2px #0099e0;
188 | box-shadow: 0px 0px 2px 3px #0099e0;
189 | }
190 |
191 | .react-toggle:active:not(.react-toggle--disabled) .react-toggle-thumb {
192 | -webkit-box-shadow: 0px 0px 5px 5px #0099e0;
193 | -moz-box-shadow: 0px 0px 5px 5px #0099e0;
194 | box-shadow: 0px 0px 5px 5px #0099e0;
195 | }
196 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/styles/variables.css:
--------------------------------------------------------------------------------
1 | /* Ionic Variables and Theming. For more info, please see:
2 | http://ionicframework.com/docs/theming/ */
3 |
4 | /** Ionic CSS Variables **/
5 | :root {
6 | /** primary **/
7 | --ion-color-primary: #3880ff;
8 | --ion-color-primary-rgb: 56, 128, 255;
9 | --ion-color-primary-contrast: #ffffff;
10 | --ion-color-primary-contrast-rgb: 255, 255, 255;
11 | --ion-color-primary-shade: #3171e0;
12 | --ion-color-primary-tint: #4c8dff;
13 |
14 | /** secondary **/
15 | --ion-color-secondary: #3dc2ff;
16 | --ion-color-secondary-rgb: 61, 194, 255;
17 | --ion-color-secondary-contrast: #ffffff;
18 | --ion-color-secondary-contrast-rgb: 255, 255, 255;
19 | --ion-color-secondary-shade: #36abe0;
20 | --ion-color-secondary-tint: #50c8ff;
21 |
22 | /** tertiary **/
23 | --ion-color-tertiary: #5260ff;
24 | --ion-color-tertiary-rgb: 82, 96, 255;
25 | --ion-color-tertiary-contrast: #ffffff;
26 | --ion-color-tertiary-contrast-rgb: 255, 255, 255;
27 | --ion-color-tertiary-shade: #4854e0;
28 | --ion-color-tertiary-tint: #6370ff;
29 |
30 | /** success **/
31 | --ion-color-success: #2dd36f;
32 | --ion-color-success-rgb: 45, 211, 111;
33 | --ion-color-success-contrast: #ffffff;
34 | --ion-color-success-contrast-rgb: 255, 255, 255;
35 | --ion-color-success-shade: #28ba62;
36 | --ion-color-success-tint: #42d77d;
37 |
38 | /** warning **/
39 | --ion-color-warning: #ffc409;
40 | --ion-color-warning-rgb: 255, 196, 9;
41 | --ion-color-warning-contrast: #000000;
42 | --ion-color-warning-contrast-rgb: 0, 0, 0;
43 | --ion-color-warning-shade: #e0ac08;
44 | --ion-color-warning-tint: #ffca22;
45 |
46 | /** danger **/
47 | --ion-color-danger: #eb445a;
48 | --ion-color-danger-rgb: 235, 68, 90;
49 | --ion-color-danger-contrast: #ffffff;
50 | --ion-color-danger-contrast-rgb: 255, 255, 255;
51 | --ion-color-danger-shade: #cf3c4f;
52 | --ion-color-danger-tint: #ed576b;
53 |
54 | /** dark **/
55 | --ion-color-dark: #222428;
56 | --ion-color-dark-rgb: 34, 36, 40;
57 | --ion-color-dark-contrast: #ffffff;
58 | --ion-color-dark-contrast-rgb: 255, 255, 255;
59 | --ion-color-dark-shade: #1e2023;
60 | --ion-color-dark-tint: #383a3e;
61 |
62 | /** medium **/
63 | --ion-color-medium: #92949c;
64 | --ion-color-medium-rgb: 146, 148, 156;
65 | --ion-color-medium-contrast: #ffffff;
66 | --ion-color-medium-contrast-rgb: 255, 255, 255;
67 | --ion-color-medium-shade: #808289;
68 | --ion-color-medium-tint: #9d9fa6;
69 |
70 | /** light **/
71 | --ion-color-light: #f4f5f8;
72 | --ion-color-light-rgb: 244, 245, 248;
73 | --ion-color-light-contrast: #000000;
74 | --ion-color-light-contrast-rgb: 0, 0, 0;
75 | --ion-color-light-shade: #d7d8da;
76 | --ion-color-light-tint: #f5f6f9;
77 | }
78 |
79 | @media (prefers-color-scheme: dark) {
80 | /*
81 | * Dark Colors
82 | * -------------------------------------------
83 | */
84 |
85 | body {
86 | --ion-color-primary: #428cff;
87 | --ion-color-primary-rgb: 66, 140, 255;
88 | --ion-color-primary-contrast: #ffffff;
89 | --ion-color-primary-contrast-rgb: 255, 255, 255;
90 | --ion-color-primary-shade: #3a7be0;
91 | --ion-color-primary-tint: #5598ff;
92 |
93 | --ion-color-secondary: #50c8ff;
94 | --ion-color-secondary-rgb: 80, 200, 255;
95 | --ion-color-secondary-contrast: #ffffff;
96 | --ion-color-secondary-contrast-rgb: 255, 255, 255;
97 | --ion-color-secondary-shade: #46b0e0;
98 | --ion-color-secondary-tint: #62ceff;
99 |
100 | --ion-color-tertiary: #6a64ff;
101 | --ion-color-tertiary-rgb: 106, 100, 255;
102 | --ion-color-tertiary-contrast: #ffffff;
103 | --ion-color-tertiary-contrast-rgb: 255, 255, 255;
104 | --ion-color-tertiary-shade: #5d58e0;
105 | --ion-color-tertiary-tint: #7974ff;
106 |
107 | --ion-color-success: #2fdf75;
108 | --ion-color-success-rgb: 47, 223, 117;
109 | --ion-color-success-contrast: #000000;
110 | --ion-color-success-contrast-rgb: 0, 0, 0;
111 | --ion-color-success-shade: #29c467;
112 | --ion-color-success-tint: #44e283;
113 |
114 | --ion-color-warning: #ffd534;
115 | --ion-color-warning-rgb: 255, 213, 52;
116 | --ion-color-warning-contrast: #000000;
117 | --ion-color-warning-contrast-rgb: 0, 0, 0;
118 | --ion-color-warning-shade: #e0bb2e;
119 | --ion-color-warning-tint: #ffd948;
120 |
121 | --ion-color-danger: #ff4961;
122 | --ion-color-danger-rgb: 255, 73, 97;
123 | --ion-color-danger-contrast: #ffffff;
124 | --ion-color-danger-contrast-rgb: 255, 255, 255;
125 | --ion-color-danger-shade: #e04055;
126 | --ion-color-danger-tint: #ff5b71;
127 |
128 | --ion-color-dark: #f4f5f8;
129 | --ion-color-dark-rgb: 244, 245, 248;
130 | --ion-color-dark-contrast: #000000;
131 | --ion-color-dark-contrast-rgb: 0, 0, 0;
132 | --ion-color-dark-shade: #d7d8da;
133 | --ion-color-dark-tint: #f5f6f9;
134 |
135 | --ion-color-medium: #989aa2;
136 | --ion-color-medium-rgb: 152, 154, 162;
137 | --ion-color-medium-contrast: #000000;
138 | --ion-color-medium-contrast-rgb: 0, 0, 0;
139 | --ion-color-medium-shade: #86888f;
140 | --ion-color-medium-tint: #a2a4ab;
141 |
142 | --ion-color-light: #222428;
143 | --ion-color-light-rgb: 34, 36, 40;
144 | --ion-color-light-contrast: #ffffff;
145 | --ion-color-light-contrast-rgb: 255, 255, 255;
146 | --ion-color-light-shade: #1e2023;
147 | --ion-color-light-tint: #383a3e;
148 | }
149 |
150 | /*
151 | * iOS Dark Theme
152 | * -------------------------------------------
153 | */
154 |
155 | .ios body {
156 | --ion-background-color: #000000;
157 | --ion-background-color-rgb: 0, 0, 0;
158 |
159 | --ion-text-color: #ffffff;
160 | --ion-text-color-rgb: 255, 255, 255;
161 |
162 | --ion-color-step-50: #0d0d0d;
163 | --ion-color-step-100: #1a1a1a;
164 | --ion-color-step-150: #262626;
165 | --ion-color-step-200: #333333;
166 | --ion-color-step-250: #404040;
167 | --ion-color-step-300: #4d4d4d;
168 | --ion-color-step-350: #595959;
169 | --ion-color-step-400: #666666;
170 | --ion-color-step-450: #737373;
171 | --ion-color-step-500: #808080;
172 | --ion-color-step-550: #8c8c8c;
173 | --ion-color-step-600: #999999;
174 | --ion-color-step-650: #a6a6a6;
175 | --ion-color-step-700: #b3b3b3;
176 | --ion-color-step-750: #bfbfbf;
177 | --ion-color-step-800: #cccccc;
178 | --ion-color-step-850: #d9d9d9;
179 | --ion-color-step-900: #e6e6e6;
180 | --ion-color-step-950: #f2f2f2;
181 |
182 | --ion-toolbar-background: #0d0d0d;
183 |
184 | --ion-item-background: #000000;
185 |
186 | --ion-card-background: #1c1c1d;
187 | }
188 |
189 | /*
190 | * Material Design Dark Theme
191 | * -------------------------------------------
192 | */
193 |
194 | .md body {
195 | --ion-background-color: #121212;
196 | --ion-background-color-rgb: 18, 18, 18;
197 |
198 | --ion-text-color: #ffffff;
199 | --ion-text-color-rgb: 255, 255, 255;
200 |
201 | --ion-border-color: #222222;
202 |
203 | --ion-color-step-50: #1e1e1e;
204 | --ion-color-step-100: #2a2a2a;
205 | --ion-color-step-150: #363636;
206 | --ion-color-step-200: #414141;
207 | --ion-color-step-250: #4d4d4d;
208 | --ion-color-step-300: #595959;
209 | --ion-color-step-350: #656565;
210 | --ion-color-step-400: #717171;
211 | --ion-color-step-450: #7d7d7d;
212 | --ion-color-step-500: #898989;
213 | --ion-color-step-550: #949494;
214 | --ion-color-step-600: #a0a0a0;
215 | --ion-color-step-650: #acacac;
216 | --ion-color-step-700: #b8b8b8;
217 | --ion-color-step-750: #c4c4c4;
218 | --ion-color-step-800: #d0d0d0;
219 | --ion-color-step-850: #dbdbdb;
220 | --ion-color-step-900: #e7e7e7;
221 | --ion-color-step-950: #f3f3f3;
222 |
223 | --ion-item-background: #1e1e1e;
224 |
225 | --ion-toolbar-background: #1f1f1f;
226 |
227 | --ion-tab-bar-background: #1f1f1f;
228 |
229 | --ion-card-background: #1e1e1e;
230 | }
231 | }
232 |
--------------------------------------------------------------------------------
/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Copyright © 2015-2021 the original authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | #
21 | # Gradle start up script for POSIX generated by Gradle.
22 | #
23 | # Important for running:
24 | #
25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26 | # noncompliant, but you have some other compliant shell such as ksh or
27 | # bash, then to run this script, type that shell name before the whole
28 | # command line, like:
29 | #
30 | # ksh Gradle
31 | #
32 | # Busybox and similar reduced shells will NOT work, because this script
33 | # requires all of these POSIX shell features:
34 | # * functions;
35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37 | # * compound commands having a testable exit status, especially «case»;
38 | # * various built-in commands including «command», «set», and «ulimit».
39 | #
40 | # Important for patching:
41 | #
42 | # (2) This script targets any POSIX shell, so it avoids extensions provided
43 | # by Bash, Ksh, etc; in particular arrays are avoided.
44 | #
45 | # The "traditional" practice of packing multiple parameters into a
46 | # space-separated string is a well documented source of bugs and security
47 | # problems, so this is (mostly) avoided, by progressively accumulating
48 | # options in "$@", and eventually passing that to Java.
49 | #
50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52 | # see the in-line comments for details.
53 | #
54 | # There are tweaks for specific operating systems such as AIX, CygWin,
55 | # Darwin, MinGW, and NonStop.
56 | #
57 | # (3) This script is generated from the Groovy template
58 | # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59 | # within the Gradle project.
60 | #
61 | # You can find Gradle at https://github.com/gradle/gradle/.
62 | #
63 | ##############################################################################
64 |
65 | # Attempt to set APP_HOME
66 |
67 | # Resolve links: $0 may be a link
68 | app_path=$0
69 |
70 | # Need this for daisy-chained symlinks.
71 | while
72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73 | [ -h "$app_path" ]
74 | do
75 | ls=$( ls -ld "$app_path" )
76 | link=${ls#*' -> '}
77 | case $link in #(
78 | /*) app_path=$link ;; #(
79 | *) app_path=$APP_HOME$link ;;
80 | esac
81 | done
82 |
83 | # This is normally unused
84 | # shellcheck disable=SC2034
85 | APP_BASE_NAME=${0##*/}
86 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
87 |
88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90 |
91 | # Use the maximum available, or set MAX_FD != -1 to use that value.
92 | MAX_FD=maximum
93 |
94 | warn () {
95 | echo "$*"
96 | } >&2
97 |
98 | die () {
99 | echo
100 | echo "$*"
101 | echo
102 | exit 1
103 | } >&2
104 |
105 | # OS specific support (must be 'true' or 'false').
106 | cygwin=false
107 | msys=false
108 | darwin=false
109 | nonstop=false
110 | case "$( uname )" in #(
111 | CYGWIN* ) cygwin=true ;; #(
112 | Darwin* ) darwin=true ;; #(
113 | MSYS* | MINGW* ) msys=true ;; #(
114 | NONSTOP* ) nonstop=true ;;
115 | esac
116 |
117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
118 |
119 |
120 | # Determine the Java command to use to start the JVM.
121 | if [ -n "$JAVA_HOME" ] ; then
122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
123 | # IBM's JDK on AIX uses strange locations for the executables
124 | JAVACMD=$JAVA_HOME/jre/sh/java
125 | else
126 | JAVACMD=$JAVA_HOME/bin/java
127 | fi
128 | if [ ! -x "$JAVACMD" ] ; then
129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
130 |
131 | Please set the JAVA_HOME variable in your environment to match the
132 | location of your Java installation."
133 | fi
134 | else
135 | JAVACMD=java
136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137 |
138 | Please set the JAVA_HOME variable in your environment to match the
139 | location of your Java installation."
140 | fi
141 |
142 | # Increase the maximum file descriptors if we can.
143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144 | case $MAX_FD in #(
145 | max*)
146 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147 | # shellcheck disable=SC3045
148 | MAX_FD=$( ulimit -H -n ) ||
149 | warn "Could not query maximum file descriptor limit"
150 | esac
151 | case $MAX_FD in #(
152 | '' | soft) :;; #(
153 | *)
154 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155 | # shellcheck disable=SC3045
156 | ulimit -n "$MAX_FD" ||
157 | warn "Could not set maximum file descriptor limit to $MAX_FD"
158 | esac
159 | fi
160 |
161 | # Collect all arguments for the java command, stacking in reverse order:
162 | # * args from the command line
163 | # * the main class name
164 | # * -classpath
165 | # * -D...appname settings
166 | # * --module-path (only if needed)
167 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
168 |
169 | # For Cygwin or MSYS, switch paths to Windows format before running java
170 | if "$cygwin" || "$msys" ; then
171 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
172 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
173 |
174 | JAVACMD=$( cygpath --unix "$JAVACMD" )
175 |
176 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
177 | for arg do
178 | if
179 | case $arg in #(
180 | -*) false ;; # don't mess with options #(
181 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
182 | [ -e "$t" ] ;; #(
183 | *) false ;;
184 | esac
185 | then
186 | arg=$( cygpath --path --ignore --mixed "$arg" )
187 | fi
188 | # Roll the args list around exactly as many times as the number of
189 | # args, so each arg winds up back in the position where it started, but
190 | # possibly modified.
191 | #
192 | # NB: a `for` loop captures its iteration list before it begins, so
193 | # changing the positional parameters here affects neither the number of
194 | # iterations, nor the values presented in `arg`.
195 | shift # remove old arg
196 | set -- "$@" "$arg" # push replacement arg
197 | done
198 | fi
199 |
200 | # Collect all arguments for the java command;
201 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202 | # shell script including quotes and variable substitutions, so put them in
203 | # double quotes to make sure that they get re-expanded; and
204 | # * put everything else in single quotes, so that it's not re-expanded.
205 |
206 | set -- \
207 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
208 | -classpath "$CLASSPATH" \
209 | org.gradle.wrapper.GradleWrapperMain \
210 | "$@"
211 |
212 | # Stop when "xargs" is not available.
213 | if ! command -v xargs >/dev/null 2>&1
214 | then
215 | die "xargs is not available"
216 | fi
217 |
218 | # Use "xargs" to parse quoted args.
219 | #
220 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
221 | #
222 | # In Bash we could simply go:
223 | #
224 | # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
225 | # set -- "${ARGS[@]}" "$@"
226 | #
227 | # but POSIX shell has neither arrays nor command substitution, so instead we
228 | # post-process each arg (as a line of input to sed) to backslash-escape any
229 | # character that might be a shell metacharacter, then use eval to reverse
230 | # that process (while maintaining the separation between arguments), and wrap
231 | # the whole thing up as a single "set" statement.
232 | #
233 | # This will of course break if any of these variables contains a newline or
234 | # an unmatched quote.
235 | #
236 |
237 | eval "set -- $(
238 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
239 | xargs -n1 |
240 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
241 | tr '\n' ' '
242 | )" '"$@"'
243 |
244 | exec "$JAVACMD" "$@"
245 |
--------------------------------------------------------------------------------
/ios/App/App.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 48;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; };
11 | 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; };
12 | 504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; };
13 | 504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; };
14 | 504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; };
15 | 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; };
16 | 50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; };
17 | A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXFileReference section */
21 | 2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = ""; };
22 | 50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = ""; };
23 | 504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
24 | 504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
25 | 504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
26 | 504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
27 | 504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
28 | 504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
29 | 50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = ""; };
30 | AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App.framework; sourceTree = BUILT_PRODUCTS_DIR; };
31 | AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.release.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig"; sourceTree = ""; };
32 | FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig"; sourceTree = ""; };
33 | /* End PBXFileReference section */
34 |
35 | /* Begin PBXFrameworksBuildPhase section */
36 | 504EC3011FED79650016851F /* Frameworks */ = {
37 | isa = PBXFrameworksBuildPhase;
38 | buildActionMask = 2147483647;
39 | files = (
40 | A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */,
41 | );
42 | runOnlyForDeploymentPostprocessing = 0;
43 | };
44 | /* End PBXFrameworksBuildPhase section */
45 |
46 | /* Begin PBXGroup section */
47 | 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = {
48 | isa = PBXGroup;
49 | children = (
50 | AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */,
51 | );
52 | name = Frameworks;
53 | sourceTree = "";
54 | };
55 | 504EC2FB1FED79650016851F = {
56 | isa = PBXGroup;
57 | children = (
58 | 504EC3061FED79650016851F /* App */,
59 | 504EC3051FED79650016851F /* Products */,
60 | 7F8756D8B27F46E3366F6CEA /* Pods */,
61 | 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */,
62 | );
63 | sourceTree = "";
64 | };
65 | 504EC3051FED79650016851F /* Products */ = {
66 | isa = PBXGroup;
67 | children = (
68 | 504EC3041FED79650016851F /* App.app */,
69 | );
70 | name = Products;
71 | sourceTree = "";
72 | };
73 | 504EC3061FED79650016851F /* App */ = {
74 | isa = PBXGroup;
75 | children = (
76 | 50379B222058CBB4000EE86E /* capacitor.config.json */,
77 | 504EC3071FED79650016851F /* AppDelegate.swift */,
78 | 504EC30B1FED79650016851F /* Main.storyboard */,
79 | 504EC30E1FED79650016851F /* Assets.xcassets */,
80 | 504EC3101FED79650016851F /* LaunchScreen.storyboard */,
81 | 504EC3131FED79650016851F /* Info.plist */,
82 | 2FAD9762203C412B000D30F8 /* config.xml */,
83 | 50B271D01FEDC1A000F3C39B /* public */,
84 | );
85 | path = App;
86 | sourceTree = "";
87 | };
88 | 7F8756D8B27F46E3366F6CEA /* Pods */ = {
89 | isa = PBXGroup;
90 | children = (
91 | FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */,
92 | AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */,
93 | );
94 | name = Pods;
95 | sourceTree = "";
96 | };
97 | /* End PBXGroup section */
98 |
99 | /* Begin PBXNativeTarget section */
100 | 504EC3031FED79650016851F /* App */ = {
101 | isa = PBXNativeTarget;
102 | buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */;
103 | buildPhases = (
104 | 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */,
105 | 504EC3001FED79650016851F /* Sources */,
106 | 504EC3011FED79650016851F /* Frameworks */,
107 | 504EC3021FED79650016851F /* Resources */,
108 | 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */,
109 | );
110 | buildRules = (
111 | );
112 | dependencies = (
113 | );
114 | name = App;
115 | productName = App;
116 | productReference = 504EC3041FED79650016851F /* App.app */;
117 | productType = "com.apple.product-type.application";
118 | };
119 | /* End PBXNativeTarget section */
120 |
121 | /* Begin PBXProject section */
122 | 504EC2FC1FED79650016851F /* Project object */ = {
123 | isa = PBXProject;
124 | attributes = {
125 | LastSwiftUpdateCheck = 0920;
126 | LastUpgradeCheck = 0920;
127 | TargetAttributes = {
128 | 504EC3031FED79650016851F = {
129 | CreatedOnToolsVersion = 9.2;
130 | LastSwiftMigration = 1100;
131 | ProvisioningStyle = Automatic;
132 | };
133 | };
134 | };
135 | buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */;
136 | compatibilityVersion = "Xcode 8.0";
137 | developmentRegion = en;
138 | hasScannedForEncodings = 0;
139 | knownRegions = (
140 | en,
141 | Base,
142 | );
143 | mainGroup = 504EC2FB1FED79650016851F;
144 | productRefGroup = 504EC3051FED79650016851F /* Products */;
145 | projectDirPath = "";
146 | projectRoot = "";
147 | targets = (
148 | 504EC3031FED79650016851F /* App */,
149 | );
150 | };
151 | /* End PBXProject section */
152 |
153 | /* Begin PBXResourcesBuildPhase section */
154 | 504EC3021FED79650016851F /* Resources */ = {
155 | isa = PBXResourcesBuildPhase;
156 | buildActionMask = 2147483647;
157 | files = (
158 | 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */,
159 | 50B271D11FEDC1A000F3C39B /* public in Resources */,
160 | 504EC30F1FED79650016851F /* Assets.xcassets in Resources */,
161 | 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */,
162 | 504EC30D1FED79650016851F /* Main.storyboard in Resources */,
163 | 2FAD9763203C412B000D30F8 /* config.xml in Resources */,
164 | );
165 | runOnlyForDeploymentPostprocessing = 0;
166 | };
167 | /* End PBXResourcesBuildPhase section */
168 |
169 | /* Begin PBXShellScriptBuildPhase section */
170 | 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = {
171 | isa = PBXShellScriptBuildPhase;
172 | buildActionMask = 2147483647;
173 | files = (
174 | );
175 | inputPaths = (
176 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
177 | "${PODS_ROOT}/Manifest.lock",
178 | );
179 | name = "[CP] Check Pods Manifest.lock";
180 | outputPaths = (
181 | "$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt",
182 | );
183 | runOnlyForDeploymentPostprocessing = 0;
184 | shellPath = /bin/sh;
185 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
186 | showEnvVarsInLog = 0;
187 | };
188 | 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = {
189 | isa = PBXShellScriptBuildPhase;
190 | buildActionMask = 2147483647;
191 | files = (
192 | );
193 | inputPaths = (
194 | );
195 | name = "[CP] Embed Pods Frameworks";
196 | outputPaths = (
197 | );
198 | runOnlyForDeploymentPostprocessing = 0;
199 | shellPath = /bin/sh;
200 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n";
201 | showEnvVarsInLog = 0;
202 | };
203 | /* End PBXShellScriptBuildPhase section */
204 |
205 | /* Begin PBXSourcesBuildPhase section */
206 | 504EC3001FED79650016851F /* Sources */ = {
207 | isa = PBXSourcesBuildPhase;
208 | buildActionMask = 2147483647;
209 | files = (
210 | 504EC3081FED79650016851F /* AppDelegate.swift in Sources */,
211 | );
212 | runOnlyForDeploymentPostprocessing = 0;
213 | };
214 | /* End PBXSourcesBuildPhase section */
215 |
216 | /* Begin PBXVariantGroup section */
217 | 504EC30B1FED79650016851F /* Main.storyboard */ = {
218 | isa = PBXVariantGroup;
219 | children = (
220 | 504EC30C1FED79650016851F /* Base */,
221 | );
222 | name = Main.storyboard;
223 | sourceTree = "";
224 | };
225 | 504EC3101FED79650016851F /* LaunchScreen.storyboard */ = {
226 | isa = PBXVariantGroup;
227 | children = (
228 | 504EC3111FED79650016851F /* Base */,
229 | );
230 | name = LaunchScreen.storyboard;
231 | sourceTree = "";
232 | };
233 | /* End PBXVariantGroup section */
234 |
235 | /* Begin XCBuildConfiguration section */
236 | 504EC3141FED79650016851F /* Debug */ = {
237 | isa = XCBuildConfiguration;
238 | buildSettings = {
239 | ALWAYS_SEARCH_USER_PATHS = NO;
240 | CLANG_ANALYZER_NONNULL = YES;
241 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
242 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
243 | CLANG_CXX_LIBRARY = "libc++";
244 | CLANG_ENABLE_MODULES = YES;
245 | CLANG_ENABLE_OBJC_ARC = YES;
246 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
247 | CLANG_WARN_BOOL_CONVERSION = YES;
248 | CLANG_WARN_COMMA = YES;
249 | CLANG_WARN_CONSTANT_CONVERSION = YES;
250 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
251 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
252 | CLANG_WARN_EMPTY_BODY = YES;
253 | CLANG_WARN_ENUM_CONVERSION = YES;
254 | CLANG_WARN_INFINITE_RECURSION = YES;
255 | CLANG_WARN_INT_CONVERSION = YES;
256 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
257 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
258 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
259 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
260 | CLANG_WARN_STRICT_PROTOTYPES = YES;
261 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
262 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
263 | CLANG_WARN_UNREACHABLE_CODE = YES;
264 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
265 | CODE_SIGN_IDENTITY = "iPhone Developer";
266 | COPY_PHASE_STRIP = NO;
267 | DEBUG_INFORMATION_FORMAT = dwarf;
268 | ENABLE_STRICT_OBJC_MSGSEND = YES;
269 | ENABLE_TESTABILITY = YES;
270 | GCC_C_LANGUAGE_STANDARD = gnu11;
271 | GCC_DYNAMIC_NO_PIC = NO;
272 | GCC_NO_COMMON_BLOCKS = YES;
273 | GCC_OPTIMIZATION_LEVEL = 0;
274 | GCC_PREPROCESSOR_DEFINITIONS = (
275 | "DEBUG=1",
276 | "$(inherited)",
277 | );
278 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
279 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
280 | GCC_WARN_UNDECLARED_SELECTOR = YES;
281 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
282 | GCC_WARN_UNUSED_FUNCTION = YES;
283 | GCC_WARN_UNUSED_VARIABLE = YES;
284 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
285 | MTL_ENABLE_DEBUG_INFO = YES;
286 | ONLY_ACTIVE_ARCH = YES;
287 | SDKROOT = iphoneos;
288 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
289 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
290 | };
291 | name = Debug;
292 | };
293 | 504EC3151FED79650016851F /* Release */ = {
294 | isa = XCBuildConfiguration;
295 | buildSettings = {
296 | ALWAYS_SEARCH_USER_PATHS = NO;
297 | CLANG_ANALYZER_NONNULL = YES;
298 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
299 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
300 | CLANG_CXX_LIBRARY = "libc++";
301 | CLANG_ENABLE_MODULES = YES;
302 | CLANG_ENABLE_OBJC_ARC = YES;
303 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
304 | CLANG_WARN_BOOL_CONVERSION = YES;
305 | CLANG_WARN_COMMA = YES;
306 | CLANG_WARN_CONSTANT_CONVERSION = YES;
307 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
308 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
309 | CLANG_WARN_EMPTY_BODY = YES;
310 | CLANG_WARN_ENUM_CONVERSION = YES;
311 | CLANG_WARN_INFINITE_RECURSION = YES;
312 | CLANG_WARN_INT_CONVERSION = YES;
313 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
314 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
315 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
316 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
317 | CLANG_WARN_STRICT_PROTOTYPES = YES;
318 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
319 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
320 | CLANG_WARN_UNREACHABLE_CODE = YES;
321 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
322 | CODE_SIGN_IDENTITY = "iPhone Developer";
323 | COPY_PHASE_STRIP = NO;
324 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
325 | ENABLE_NS_ASSERTIONS = NO;
326 | ENABLE_STRICT_OBJC_MSGSEND = YES;
327 | GCC_C_LANGUAGE_STANDARD = gnu11;
328 | GCC_NO_COMMON_BLOCKS = YES;
329 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
330 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
331 | GCC_WARN_UNDECLARED_SELECTOR = YES;
332 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
333 | GCC_WARN_UNUSED_FUNCTION = YES;
334 | GCC_WARN_UNUSED_VARIABLE = YES;
335 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
336 | MTL_ENABLE_DEBUG_INFO = NO;
337 | SDKROOT = iphoneos;
338 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
339 | VALIDATE_PRODUCT = YES;
340 | };
341 | name = Release;
342 | };
343 | 504EC3171FED79650016851F /* Debug */ = {
344 | isa = XCBuildConfiguration;
345 | baseConfigurationReference = FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */;
346 | buildSettings = {
347 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
348 | CODE_SIGN_STYLE = Automatic;
349 | INFOPLIST_FILE = App/Info.plist;
350 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
351 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
352 | OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
353 | PRODUCT_BUNDLE_IDENTIFIER = com.example.app;
354 | PRODUCT_NAME = "$(TARGET_NAME)";
355 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
356 | SWIFT_VERSION = 5.0;
357 | TARGETED_DEVICE_FAMILY = "1,2";
358 | };
359 | name = Debug;
360 | };
361 | 504EC3181FED79650016851F /* Release */ = {
362 | isa = XCBuildConfiguration;
363 | baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */;
364 | buildSettings = {
365 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
366 | CODE_SIGN_STYLE = Automatic;
367 | INFOPLIST_FILE = App/Info.plist;
368 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
369 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
370 | PRODUCT_BUNDLE_IDENTIFIER = com.example.app;
371 | PRODUCT_NAME = "$(TARGET_NAME)";
372 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
373 | SWIFT_VERSION = 5.0;
374 | TARGETED_DEVICE_FAMILY = "1,2";
375 | };
376 | name = Release;
377 | };
378 | /* End XCBuildConfiguration section */
379 |
380 | /* Begin XCConfigurationList section */
381 | 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = {
382 | isa = XCConfigurationList;
383 | buildConfigurations = (
384 | 504EC3141FED79650016851F /* Debug */,
385 | 504EC3151FED79650016851F /* Release */,
386 | );
387 | defaultConfigurationIsVisible = 0;
388 | defaultConfigurationName = Release;
389 | };
390 | 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = {
391 | isa = XCConfigurationList;
392 | buildConfigurations = (
393 | 504EC3171FED79650016851F /* Debug */,
394 | 504EC3181FED79650016851F /* Release */,
395 | );
396 | defaultConfigurationIsVisible = 0;
397 | defaultConfigurationName = Release;
398 | };
399 | /* End XCConfigurationList section */
400 | };
401 | rootObject = 504EC2FC1FED79650016851F /* Project object */;
402 | }
403 |
--------------------------------------------------------------------------------