浏览代码

[mant] Add Capacitor native support to Ionic base.

Sergio Mattei 2 年前
父节点
当前提交
4f806fb70e
共有 91 个文件被更改,包括 1888 次插入35 次删除
  1. 101
    0
      android/.gitignore
  2. 2
    0
      android/app/.gitignore
  3. 53
    0
      android/app/build.gradle
  4. 22
    0
      android/app/capacitor.build.gradle
  5. 21
    0
      android/app/proguard-rules.pro
  6. 26
    0
      android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
  7. 42
    0
      android/app/src/main/AndroidManifest.xml
  8. 5
    0
      android/app/src/main/java/io/ionic/starter/MainActivity.java
  9. 二进制
      android/app/src/main/res/drawable-land-hdpi/splash.png
  10. 二进制
      android/app/src/main/res/drawable-land-mdpi/splash.png
  11. 二进制
      android/app/src/main/res/drawable-land-xhdpi/splash.png
  12. 二进制
      android/app/src/main/res/drawable-land-xxhdpi/splash.png
  13. 二进制
      android/app/src/main/res/drawable-land-xxxhdpi/splash.png
  14. 二进制
      android/app/src/main/res/drawable-port-hdpi/splash.png
  15. 二进制
      android/app/src/main/res/drawable-port-mdpi/splash.png
  16. 二进制
      android/app/src/main/res/drawable-port-xhdpi/splash.png
  17. 二进制
      android/app/src/main/res/drawable-port-xxhdpi/splash.png
  18. 二进制
      android/app/src/main/res/drawable-port-xxxhdpi/splash.png
  19. 34
    0
      android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
  20. 170
    0
      android/app/src/main/res/drawable/ic_launcher_background.xml
  21. 二进制
      android/app/src/main/res/drawable/splash.png
  22. 12
    0
      android/app/src/main/res/layout/activity_main.xml
  23. 5
    0
      android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
  24. 5
    0
      android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
  25. 二进制
      android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  26. 二进制
      android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
  27. 二进制
      android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
  28. 二进制
      android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  29. 二进制
      android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
  30. 二进制
      android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
  31. 二进制
      android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  32. 二进制
      android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
  33. 二进制
      android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
  34. 二进制
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  35. 二进制
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
  36. 二进制
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
  37. 二进制
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  38. 二进制
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
  39. 二进制
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
  40. 4
    0
      android/app/src/main/res/values/ic_launcher_background.xml
  41. 7
    0
      android/app/src/main/res/values/strings.xml
  42. 22
    0
      android/app/src/main/res/values/styles.xml
  43. 5
    0
      android/app/src/main/res/xml/file_paths.xml
  44. 18
    0
      android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
  45. 29
    0
      android/build.gradle
  46. 15
    0
      android/capacitor.settings.gradle
  47. 24
    0
      android/gradle.properties
  48. 二进制
      android/gradle/wrapper/gradle-wrapper.jar
  49. 5
    0
      android/gradle/wrapper/gradle-wrapper.properties
  50. 234
    0
      android/gradlew
  51. 89
    0
      android/gradlew.bat
  52. 5
    0
      android/settings.gradle
  53. 16
    0
      android/variables.gradle
  54. 13
    0
      ios/.gitignore
  55. 406
    0
      ios/App/App.xcodeproj/project.pbxproj
  56. 7
    0
      ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  57. 10
    0
      ios/App/App.xcworkspace/contents.xcworkspacedata
  58. 8
    0
      ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  59. 49
    0
      ios/App/App/AppDelegate.swift
  60. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png
  61. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png
  62. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png
  63. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png
  64. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@1x.png
  65. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png
  66. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x.png
  67. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@3x.png
  68. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@1x.png
  69. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png
  70. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x.png
  71. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@3x.png
  72. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png
  73. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@2x.png
  74. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png
  75. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png
  76. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@2x.png
  77. 二进制
      ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png
  78. 116
    0
      ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
  79. 6
    0
      ios/App/App/Assets.xcassets/Contents.json
  80. 23
    0
      ios/App/App/Assets.xcassets/Splash.imageset/Contents.json
  81. 二进制
      ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png
  82. 二进制
      ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png
  83. 二进制
      ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png
  84. 32
    0
      ios/App/App/Base.lproj/LaunchScreen.storyboard
  85. 19
    0
      ios/App/App/Base.lproj/Main.storyboard
  86. 49
    0
      ios/App/App/Info.plist
  87. 27
    0
      ios/App/Podfile
  88. 117
    5
      package-lock.json
  89. 8
    5
      package.json
  90. 19
    19
      src/App.tsx
  91. 8
    6
      src/setupTests.ts

+ 101
- 0
android/.gitignore 查看文件

@@ -0,0 +1,101 @@
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
+
98
+# Generated Config files
99
+app/src/main/assets/capacitor.config.json
100
+app/src/main/assets/capacitor.plugins.json
101
+app/src/main/res/xml/config.xml

+ 2
- 0
android/app/.gitignore 查看文件

@@ -0,0 +1,2 @@
1
+/build/*
2
+!/build/.npmkeep

+ 53
- 0
android/app/build.gradle 查看文件

@@ -0,0 +1,53 @@
1
+apply plugin: 'com.android.application'
2
+
3
+android {
4
+    compileSdkVersion rootProject.ext.compileSdkVersion
5
+    defaultConfig {
6
+        applicationId "io.ionic.starter"
7
+        minSdkVersion rootProject.ext.minSdkVersion
8
+        targetSdkVersion rootProject.ext.targetSdkVersion
9
+        versionCode 1
10
+        versionName "1.0"
11
+        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
12
+        aaptOptions {
13
+             // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
14
+             // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
15
+            ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
16
+        }
17
+    }
18
+    buildTypes {
19
+        release {
20
+            minifyEnabled false
21
+            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
22
+        }
23
+    }
24
+}
25
+
26
+repositories {
27
+    flatDir{
28
+        dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
29
+    }
30
+}
31
+
32
+dependencies {
33
+    implementation fileTree(include: ['*.jar'], dir: 'libs')
34
+    implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
35
+    implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
36
+    implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
37
+    implementation project(':capacitor-android')
38
+    testImplementation "junit:junit:$junitVersion"
39
+    androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
40
+    androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
41
+    implementation project(':capacitor-cordova-android-plugins')
42
+}
43
+
44
+apply from: 'capacitor.build.gradle'
45
+
46
+try {
47
+    def servicesJSON = file('google-services.json')
48
+    if (servicesJSON.text) {
49
+        apply plugin: 'com.google.gms.google-services'
50
+    }
51
+} catch(Exception e) {
52
+    logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
53
+}

+ 22
- 0
android/app/capacitor.build.gradle 查看文件

@@ -0,0 +1,22 @@
1
+// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
2
+
3
+android {
4
+  compileOptions {
5
+      sourceCompatibility JavaVersion.VERSION_11
6
+      targetCompatibility JavaVersion.VERSION_11
7
+  }
8
+}
9
+
10
+apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
11
+dependencies {
12
+    implementation project(':capacitor-app')
13
+    implementation project(':capacitor-haptics')
14
+    implementation project(':capacitor-keyboard')
15
+    implementation project(':capacitor-status-bar')
16
+
17
+}
18
+
19
+
20
+if (hasProperty('postBuildExtras')) {
21
+  postBuildExtras()
22
+}

+ 21
- 0
android/app/proguard-rules.pro 查看文件

@@ -0,0 +1,21 @@
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

+ 26
- 0
android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java 查看文件

@@ -0,0 +1,26 @@
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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
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
+}

+ 42
- 0
android/app/src/main/AndroidManifest.xml 查看文件

@@ -0,0 +1,42 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+    package="io.ionic.starter">
4
+
5
+    <application
6
+        android:allowBackup="true"
7
+        android:icon="@mipmap/ic_launcher"
8
+        android:label="@string/app_name"
9
+        android:roundIcon="@mipmap/ic_launcher_round"
10
+        android:supportsRtl="true"
11
+        android:theme="@style/AppTheme">
12
+
13
+        <activity
14
+            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
15
+            android:name="io.ionic.starter.MainActivity"
16
+            android:label="@string/title_activity_main"
17
+            android:theme="@style/AppTheme.NoActionBarLaunch"
18
+            android:launchMode="singleTask"
19
+            android:exported="true">
20
+
21
+            <intent-filter>
22
+                <action android:name="android.intent.action.MAIN" />
23
+                <category android:name="android.intent.category.LAUNCHER" />
24
+            </intent-filter>
25
+
26
+        </activity>
27
+
28
+        <provider
29
+            android:name="androidx.core.content.FileProvider"
30
+            android:authorities="${applicationId}.fileprovider"
31
+            android:exported="false"
32
+            android:grantUriPermissions="true">
33
+            <meta-data
34
+                android:name="android.support.FILE_PROVIDER_PATHS"
35
+                android:resource="@xml/file_paths"></meta-data>
36
+        </provider>
37
+    </application>
38
+
39
+    <!-- Permissions -->
40
+
41
+    <uses-permission android:name="android.permission.INTERNET" />
42
+</manifest>

+ 5
- 0
android/app/src/main/java/io/ionic/starter/MainActivity.java 查看文件

@@ -0,0 +1,5 @@
1
+package io.ionic.starter;
2
+
3
+import com.getcapacitor.BridgeActivity;
4
+
5
+public class MainActivity extends BridgeActivity {}

二进制
android/app/src/main/res/drawable-land-hdpi/splash.png 查看文件


二进制
android/app/src/main/res/drawable-land-mdpi/splash.png 查看文件


二进制
android/app/src/main/res/drawable-land-xhdpi/splash.png 查看文件


二进制
android/app/src/main/res/drawable-land-xxhdpi/splash.png 查看文件


二进制
android/app/src/main/res/drawable-land-xxxhdpi/splash.png 查看文件


二进制
android/app/src/main/res/drawable-port-hdpi/splash.png 查看文件


二进制
android/app/src/main/res/drawable-port-mdpi/splash.png 查看文件


二进制
android/app/src/main/res/drawable-port-xhdpi/splash.png 查看文件


二进制
android/app/src/main/res/drawable-port-xxhdpi/splash.png 查看文件


二进制
android/app/src/main/res/drawable-port-xxxhdpi/splash.png 查看文件


+ 34
- 0
android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml 查看文件

@@ -0,0 +1,34 @@
1
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
2
+    xmlns:aapt="http://schemas.android.com/aapt"
3
+    android:width="108dp"
4
+    android:height="108dp"
5
+    android:viewportHeight="108"
6
+    android:viewportWidth="108">
7
+    <path
8
+        android:fillType="evenOdd"
9
+        android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
10
+        android:strokeColor="#00000000"
11
+        android:strokeWidth="1">
12
+        <aapt:attr name="android:fillColor">
13
+            <gradient
14
+                android:endX="78.5885"
15
+                android:endY="90.9159"
16
+                android:startX="48.7653"
17
+                android:startY="61.0927"
18
+                android:type="linear">
19
+                <item
20
+                    android:color="#44000000"
21
+                    android:offset="0.0" />
22
+                <item
23
+                    android:color="#00000000"
24
+                    android:offset="1.0" />
25
+            </gradient>
26
+        </aapt:attr>
27
+    </path>
28
+    <path
29
+        android:fillColor="#FFFFFF"
30
+        android:fillType="nonZero"
31
+        android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
32
+        android:strokeColor="#00000000"
33
+        android:strokeWidth="1" />
34
+</vector>

+ 170
- 0
android/app/src/main/res/drawable/ic_launcher_background.xml 查看文件

@@ -0,0 +1,170 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
3
+    android:width="108dp"
4
+    android:height="108dp"
5
+    android:viewportHeight="108"
6
+    android:viewportWidth="108">
7
+    <path
8
+        android:fillColor="#26A69A"
9
+        android:pathData="M0,0h108v108h-108z" />
10
+    <path
11
+        android:fillColor="#00000000"
12
+        android:pathData="M9,0L9,108"
13
+        android:strokeColor="#33FFFFFF"
14
+        android:strokeWidth="0.8" />
15
+    <path
16
+        android:fillColor="#00000000"
17
+        android:pathData="M19,0L19,108"
18
+        android:strokeColor="#33FFFFFF"
19
+        android:strokeWidth="0.8" />
20
+    <path
21
+        android:fillColor="#00000000"
22
+        android:pathData="M29,0L29,108"
23
+        android:strokeColor="#33FFFFFF"
24
+        android:strokeWidth="0.8" />
25
+    <path
26
+        android:fillColor="#00000000"
27
+        android:pathData="M39,0L39,108"
28
+        android:strokeColor="#33FFFFFF"
29
+        android:strokeWidth="0.8" />
30
+    <path
31
+        android:fillColor="#00000000"
32
+        android:pathData="M49,0L49,108"
33
+        android:strokeColor="#33FFFFFF"
34
+        android:strokeWidth="0.8" />
35
+    <path
36
+        android:fillColor="#00000000"
37
+        android:pathData="M59,0L59,108"
38
+        android:strokeColor="#33FFFFFF"
39
+        android:strokeWidth="0.8" />
40
+    <path
41
+        android:fillColor="#00000000"
42
+        android:pathData="M69,0L69,108"
43
+        android:strokeColor="#33FFFFFF"
44
+        android:strokeWidth="0.8" />
45
+    <path
46
+        android:fillColor="#00000000"
47
+        android:pathData="M79,0L79,108"
48
+        android:strokeColor="#33FFFFFF"
49
+        android:strokeWidth="0.8" />
50
+    <path
51
+        android:fillColor="#00000000"
52
+        android:pathData="M89,0L89,108"
53
+        android:strokeColor="#33FFFFFF"
54
+        android:strokeWidth="0.8" />
55
+    <path
56
+        android:fillColor="#00000000"
57
+        android:pathData="M99,0L99,108"
58
+        android:strokeColor="#33FFFFFF"
59
+        android:strokeWidth="0.8" />
60
+    <path
61
+        android:fillColor="#00000000"
62
+        android:pathData="M0,9L108,9"
63
+        android:strokeColor="#33FFFFFF"
64
+        android:strokeWidth="0.8" />
65
+    <path
66
+        android:fillColor="#00000000"
67
+        android:pathData="M0,19L108,19"
68
+        android:strokeColor="#33FFFFFF"
69
+        android:strokeWidth="0.8" />
70
+    <path
71
+        android:fillColor="#00000000"
72
+        android:pathData="M0,29L108,29"
73
+        android:strokeColor="#33FFFFFF"
74
+        android:strokeWidth="0.8" />
75
+    <path
76
+        android:fillColor="#00000000"
77
+        android:pathData="M0,39L108,39"
78
+        android:strokeColor="#33FFFFFF"
79
+        android:strokeWidth="0.8" />
80
+    <path
81
+        android:fillColor="#00000000"
82
+        android:pathData="M0,49L108,49"
83
+        android:strokeColor="#33FFFFFF"
84
+        android:strokeWidth="0.8" />
85
+    <path
86
+        android:fillColor="#00000000"
87
+        android:pathData="M0,59L108,59"
88
+        android:strokeColor="#33FFFFFF"
89
+        android:strokeWidth="0.8" />
90
+    <path
91
+        android:fillColor="#00000000"
92
+        android:pathData="M0,69L108,69"
93
+        android:strokeColor="#33FFFFFF"
94
+        android:strokeWidth="0.8" />
95
+    <path
96
+        android:fillColor="#00000000"
97
+        android:pathData="M0,79L108,79"
98
+        android:strokeColor="#33FFFFFF"
99
+        android:strokeWidth="0.8" />
100
+    <path
101
+        android:fillColor="#00000000"
102
+        android:pathData="M0,89L108,89"
103
+        android:strokeColor="#33FFFFFF"
104
+        android:strokeWidth="0.8" />
105
+    <path
106
+        android:fillColor="#00000000"
107
+        android:pathData="M0,99L108,99"
108
+        android:strokeColor="#33FFFFFF"
109
+        android:strokeWidth="0.8" />
110
+    <path
111
+        android:fillColor="#00000000"
112
+        android:pathData="M19,29L89,29"
113
+        android:strokeColor="#33FFFFFF"
114
+        android:strokeWidth="0.8" />
115
+    <path
116
+        android:fillColor="#00000000"
117
+        android:pathData="M19,39L89,39"
118
+        android:strokeColor="#33FFFFFF"
119
+        android:strokeWidth="0.8" />
120
+    <path
121
+        android:fillColor="#00000000"
122
+        android:pathData="M19,49L89,49"
123
+        android:strokeColor="#33FFFFFF"
124
+        android:strokeWidth="0.8" />
125
+    <path
126
+        android:fillColor="#00000000"
127
+        android:pathData="M19,59L89,59"
128
+        android:strokeColor="#33FFFFFF"
129
+        android:strokeWidth="0.8" />
130
+    <path
131
+        android:fillColor="#00000000"
132
+        android:pathData="M19,69L89,69"
133
+        android:strokeColor="#33FFFFFF"
134
+        android:strokeWidth="0.8" />
135
+    <path
136
+        android:fillColor="#00000000"
137
+        android:pathData="M19,79L89,79"
138
+        android:strokeColor="#33FFFFFF"
139
+        android:strokeWidth="0.8" />
140
+    <path
141
+        android:fillColor="#00000000"
142
+        android:pathData="M29,19L29,89"
143
+        android:strokeColor="#33FFFFFF"
144
+        android:strokeWidth="0.8" />
145
+    <path
146
+        android:fillColor="#00000000"
147
+        android:pathData="M39,19L39,89"
148
+        android:strokeColor="#33FFFFFF"
149
+        android:strokeWidth="0.8" />
150
+    <path
151
+        android:fillColor="#00000000"
152
+        android:pathData="M49,19L49,89"
153
+        android:strokeColor="#33FFFFFF"
154
+        android:strokeWidth="0.8" />
155
+    <path
156
+        android:fillColor="#00000000"
157
+        android:pathData="M59,19L59,89"
158
+        android:strokeColor="#33FFFFFF"
159
+        android:strokeWidth="0.8" />
160
+    <path
161
+        android:fillColor="#00000000"
162
+        android:pathData="M69,19L69,89"
163
+        android:strokeColor="#33FFFFFF"
164
+        android:strokeWidth="0.8" />
165
+    <path
166
+        android:fillColor="#00000000"
167
+        android:pathData="M79,19L79,89"
168
+        android:strokeColor="#33FFFFFF"
169
+        android:strokeWidth="0.8" />
170
+</vector>

二进制
android/app/src/main/res/drawable/splash.png 查看文件


+ 12
- 0
android/app/src/main/res/layout/activity_main.xml 查看文件

@@ -0,0 +1,12 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
+    xmlns:app="http://schemas.android.com/apk/res-auto"
4
+    xmlns:tools="http://schemas.android.com/tools"
5
+    android:layout_width="match_parent"
6
+    android:layout_height="match_parent"
7
+    tools:context=".MainActivity">
8
+
9
+    <WebView
10
+        android:layout_width="match_parent"
11
+        android:layout_height="match_parent" />
12
+</androidx.coordinatorlayout.widget.CoordinatorLayout>

+ 5
- 0
android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml 查看文件

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
+    <background android:drawable="@color/ic_launcher_background"/>
4
+    <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5
+</adaptive-icon>

+ 5
- 0
android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml 查看文件

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
+    <background android:drawable="@color/ic_launcher_background"/>
4
+    <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5
+</adaptive-icon>

二进制
android/app/src/main/res/mipmap-hdpi/ic_launcher.png 查看文件


二进制
android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png 查看文件


二进制
android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png 查看文件


二进制
android/app/src/main/res/mipmap-mdpi/ic_launcher.png 查看文件


二进制
android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png 查看文件


二进制
android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png 查看文件


二进制
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png 查看文件


二进制
android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png 查看文件


二进制
android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png 查看文件


二进制
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png 查看文件


二进制
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png 查看文件


二进制
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png 查看文件


二进制
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png 查看文件


二进制
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png 查看文件


二进制
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png 查看文件


+ 4
- 0
android/app/src/main/res/values/ic_launcher_background.xml 查看文件

@@ -0,0 +1,4 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<resources>
3
+    <color name="ic_launcher_background">#FFFFFF</color>
4
+</resources>

+ 7
- 0
android/app/src/main/res/values/strings.xml 查看文件

@@ -0,0 +1,7 @@
1
+<?xml version='1.0' encoding='utf-8'?>
2
+<resources>
3
+    <string name="app_name">renacer</string>
4
+    <string name="title_activity_main">renacer</string>
5
+    <string name="package_name">io.ionic.starter</string>
6
+    <string name="custom_url_scheme">io.ionic.starter</string>
7
+</resources>

+ 22
- 0
android/app/src/main/res/values/styles.xml 查看文件

@@ -0,0 +1,22 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<resources>
3
+
4
+    <!-- Base application theme. -->
5
+    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
6
+        <!-- Customize your theme here. -->
7
+        <item name="colorPrimary">@color/colorPrimary</item>
8
+        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
9
+        <item name="colorAccent">@color/colorAccent</item>
10
+    </style>
11
+
12
+    <style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
13
+        <item name="windowActionBar">false</item>
14
+        <item name="windowNoTitle">true</item>
15
+        <item name="android:background">@null</item>
16
+    </style>
17
+
18
+
19
+    <style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
20
+        <item name="android:background">@drawable/splash</item>
21
+    </style>
22
+</resources>

+ 5
- 0
android/app/src/main/res/xml/file_paths.xml 查看文件

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<paths xmlns:android="http://schemas.android.com/apk/res/android">
3
+    <external-path name="my_images" path="." />
4
+    <cache-path name="my_cache_images" path="." />
5
+</paths>

+ 18
- 0
android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java 查看文件

@@ -0,0 +1,18 @@
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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
11
+ */
12
+public class ExampleUnitTest {
13
+
14
+    @Test
15
+    public void addition_isCorrect() throws Exception {
16
+        assertEquals(4, 2 + 2);
17
+    }
18
+}

+ 29
- 0
android/build.gradle 查看文件

@@ -0,0 +1,29 @@
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:7.2.1'
11
+        classpath 'com.google.gms:google-services:4.3.13'
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
+}

+ 15
- 0
android/capacitor.settings.gradle 查看文件

@@ -0,0 +1,15 @@
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-app'
6
+project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android')
7
+
8
+include ':capacitor-haptics'
9
+project(':capacitor-haptics').projectDir = new File('../node_modules/@capacitor/haptics/android')
10
+
11
+include ':capacitor-keyboard'
12
+project(':capacitor-keyboard').projectDir = new File('../node_modules/@capacitor/keyboard/android')
13
+
14
+include ':capacitor-status-bar'
15
+project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android')

+ 24
- 0
android/gradle.properties 查看文件

@@ -0,0 +1,24 @@
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
+# Automatically convert third-party libraries to use AndroidX
24
+android.enableJetifier=true

二进制
android/gradle/wrapper/gradle-wrapper.jar 查看文件


+ 5
- 0
android/gradle/wrapper/gradle-wrapper.properties 查看文件

@@ -0,0 +1,5 @@
1
+distributionBase=GRADLE_USER_HOME
2
+distributionPath=wrapper/dists
3
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
4
+zipStoreBase=GRADLE_USER_HOME
5
+zipStorePath=wrapper/dists

+ 234
- 0
android/gradlew 查看文件

@@ -0,0 +1,234 @@
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/master/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
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84
+
85
+APP_NAME="Gradle"
86
+APP_BASE_NAME=${0##*/}
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
+        MAX_FD=$( ulimit -H -n ) ||
147
+            warn "Could not query maximum file descriptor limit"
148
+    esac
149
+    case $MAX_FD in  #(
150
+      '' | soft) :;; #(
151
+      *)
152
+        ulimit -n "$MAX_FD" ||
153
+            warn "Could not set maximum file descriptor limit to $MAX_FD"
154
+    esac
155
+fi
156
+
157
+# Collect all arguments for the java command, stacking in reverse order:
158
+#   * args from the command line
159
+#   * the main class name
160
+#   * -classpath
161
+#   * -D...appname settings
162
+#   * --module-path (only if needed)
163
+#   * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
164
+
165
+# For Cygwin or MSYS, switch paths to Windows format before running java
166
+if "$cygwin" || "$msys" ; then
167
+    APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
168
+    CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
169
+
170
+    JAVACMD=$( cygpath --unix "$JAVACMD" )
171
+
172
+    # Now convert the arguments - kludge to limit ourselves to /bin/sh
173
+    for arg do
174
+        if
175
+            case $arg in                                #(
176
+              -*)   false ;;                            # don't mess with options #(
177
+              /?*)  t=${arg#/} t=/${t%%/*}              # looks like a POSIX filepath
178
+                    [ -e "$t" ] ;;                      #(
179
+              *)    false ;;
180
+            esac
181
+        then
182
+            arg=$( cygpath --path --ignore --mixed "$arg" )
183
+        fi
184
+        # Roll the args list around exactly as many times as the number of
185
+        # args, so each arg winds up back in the position where it started, but
186
+        # possibly modified.
187
+        #
188
+        # NB: a `for` loop captures its iteration list before it begins, so
189
+        # changing the positional parameters here affects neither the number of
190
+        # iterations, nor the values presented in `arg`.
191
+        shift                   # remove old arg
192
+        set -- "$@" "$arg"      # push replacement arg
193
+    done
194
+fi
195
+
196
+# Collect all arguments for the java command;
197
+#   * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198
+#     shell script including quotes and variable substitutions, so put them in
199
+#     double quotes to make sure that they get re-expanded; and
200
+#   * put everything else in single quotes, so that it's not re-expanded.
201
+
202
+set -- \
203
+        "-Dorg.gradle.appname=$APP_BASE_NAME" \
204
+        -classpath "$CLASSPATH" \
205
+        org.gradle.wrapper.GradleWrapperMain \
206
+        "$@"
207
+
208
+# Use "xargs" to parse quoted args.
209
+#
210
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
211
+#
212
+# In Bash we could simply go:
213
+#
214
+#   readarray ARGS < <( xargs -n1 <<<"$var" ) &&
215
+#   set -- "${ARGS[@]}" "$@"
216
+#
217
+# but POSIX shell has neither arrays nor command substitution, so instead we
218
+# post-process each arg (as a line of input to sed) to backslash-escape any
219
+# character that might be a shell metacharacter, then use eval to reverse
220
+# that process (while maintaining the separation between arguments), and wrap
221
+# the whole thing up as a single "set" statement.
222
+#
223
+# This will of course break if any of these variables contains a newline or
224
+# an unmatched quote.
225
+#
226
+
227
+eval "set -- $(
228
+        printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
229
+        xargs -n1 |
230
+        sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
231
+        tr '\n' ' '
232
+    )" '"$@"'
233
+
234
+exec "$JAVACMD" "$@"

+ 89
- 0
android/gradlew.bat 查看文件

@@ -0,0 +1,89 @@
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
+set APP_BASE_NAME=%~n0
30
+set APP_HOME=%DIRNAME%
31
+
32
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34
+
35
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37
+
38
+@rem Find java.exe
39
+if defined JAVA_HOME goto findJavaFromJavaHome
40
+
41
+set JAVA_EXE=java.exe
42
+%JAVA_EXE% -version >NUL 2>&1
43
+if "%ERRORLEVEL%" == "0" goto execute
44
+
45
+echo.
46
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47
+echo.
48
+echo Please set the JAVA_HOME variable in your environment to match the
49
+echo location of your Java installation.
50
+
51
+goto fail
52
+
53
+:findJavaFromJavaHome
54
+set JAVA_HOME=%JAVA_HOME:"=%
55
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56
+
57
+if exist "%JAVA_EXE%" goto execute
58
+
59
+echo.
60
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61
+echo.
62
+echo Please set the JAVA_HOME variable in your environment to match the
63
+echo location of your Java installation.
64
+
65
+goto fail
66
+
67
+:execute
68
+@rem Setup the command line
69
+
70
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71
+
72
+
73
+@rem Execute Gradle
74
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75
+
76
+:end
77
+@rem End local scope for the variables with windows NT shell
78
+if "%ERRORLEVEL%"=="0" goto mainEnd
79
+
80
+:fail
81
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82
+rem the _cmd.exe /c_ return code!
83
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84
+exit /b 1
85
+
86
+:mainEnd
87
+if "%OS%"=="Windows_NT" endlocal
88
+
89
+:omega

+ 5
- 0
android/settings.gradle 查看文件

@@ -0,0 +1,5 @@
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'

+ 16
- 0
android/variables.gradle 查看文件

@@ -0,0 +1,16 @@
1
+ext {
2
+    minSdkVersion = 22
3
+    compileSdkVersion = 32
4
+    targetSdkVersion = 32
5
+    androidxActivityVersion = '1.4.0'
6
+    androidxAppCompatVersion = '1.4.2'
7
+    androidxCoordinatorLayoutVersion = '1.2.0'
8
+    androidxCoreVersion = '1.8.0'
9
+    androidxFragmentVersion = '1.4.1'
10
+    coreSplashScreenVersion = '1.0.0-rc01'
11
+    androidxWebkitVersion = '1.4.0'
12
+    junitVersion = '4.13.2'
13
+    androidxJunitVersion = '1.1.3'
14
+    androidxEspressoCoreVersion = '3.4.0'
15
+    cordovaAndroidVersion = '10.1.1'
16
+}

+ 13
- 0
ios/.gitignore 查看文件

@@ -0,0 +1,13 @@
1
+App/build
2
+App/Pods
3
+App/Podfile.lock
4
+App/App/public
5
+DerivedData
6
+xcuserdata
7
+
8
+# Cordova plugins for Capacitor
9
+capacitor-cordova-ios-plugins
10
+
11
+# Generated Config files
12
+App/App/capacitor.config.json
13
+App/App/config.xml

+ 406
- 0
ios/App/App.xcodeproj/project.pbxproj 查看文件

@@ -0,0 +1,406 @@
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 = "<group>"; };
22
+		50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = "<group>"; };
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 = "<group>"; };
25
+		504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
26
+		504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
27
+		504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
28
+		504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
29
+		50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = "<group>"; };
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 = "<group>"; };
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 = "<group>"; };
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 = "<group>";
54
+		};
55
+		504EC2FB1FED79650016851F = {
56
+			isa = PBXGroup;
57
+			children = (
58
+				504EC3061FED79650016851F /* App */,
59
+				504EC3051FED79650016851F /* Products */,
60
+				7F8756D8B27F46E3366F6CEA /* Pods */,
61
+				27E2DDA53C4D2A4D1A88CE4A /* Frameworks */,
62
+			);
63
+			sourceTree = "<group>";
64
+		};
65
+		504EC3051FED79650016851F /* Products */ = {
66
+			isa = PBXGroup;
67
+			children = (
68
+				504EC3041FED79650016851F /* App.app */,
69
+			);
70
+			name = Products;
71
+			sourceTree = "<group>";
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 = "<group>";
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 = "<group>";
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 = "<group>";
224
+		};
225
+		504EC3101FED79650016851F /* LaunchScreen.storyboard */ = {
226
+			isa = PBXVariantGroup;
227
+			children = (
228
+				504EC3111FED79650016851F /* Base */,
229
+			);
230
+			name = LaunchScreen.storyboard;
231
+			sourceTree = "<group>";
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
+				CURRENT_PROJECT_VERSION = 1;
350
+				INFOPLIST_FILE = App/Info.plist;
351
+				IPHONEOS_DEPLOYMENT_TARGET = 13.0;
352
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
353
+				MARKETING_VERSION = 1.0;
354
+				OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
355
+				PRODUCT_BUNDLE_IDENTIFIER = io.ionic.starter;
356
+				PRODUCT_NAME = "$(TARGET_NAME)";
357
+				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
358
+				SWIFT_VERSION = 5.0;
359
+				TARGETED_DEVICE_FAMILY = "1,2";
360
+			};
361
+			name = Debug;
362
+		};
363
+		504EC3181FED79650016851F /* Release */ = {
364
+			isa = XCBuildConfiguration;
365
+			baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */;
366
+			buildSettings = {
367
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
368
+				CODE_SIGN_STYLE = Automatic;
369
+				CURRENT_PROJECT_VERSION = 1;
370
+				INFOPLIST_FILE = App/Info.plist;
371
+				IPHONEOS_DEPLOYMENT_TARGET = 13.0;
372
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
373
+				MARKETING_VERSION = 1.0;
374
+				PRODUCT_BUNDLE_IDENTIFIER = io.ionic.starter;
375
+				PRODUCT_NAME = "$(TARGET_NAME)";
376
+				SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
377
+				SWIFT_VERSION = 5.0;
378
+				TARGETED_DEVICE_FAMILY = "1,2";
379
+			};
380
+			name = Release;
381
+		};
382
+/* End XCBuildConfiguration section */
383
+
384
+/* Begin XCConfigurationList section */
385
+		504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = {
386
+			isa = XCConfigurationList;
387
+			buildConfigurations = (
388
+				504EC3141FED79650016851F /* Debug */,
389
+				504EC3151FED79650016851F /* Release */,
390
+			);
391
+			defaultConfigurationIsVisible = 0;
392
+			defaultConfigurationName = Release;
393
+		};
394
+		504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = {
395
+			isa = XCConfigurationList;
396
+			buildConfigurations = (
397
+				504EC3171FED79650016851F /* Debug */,
398
+				504EC3181FED79650016851F /* Release */,
399
+			);
400
+			defaultConfigurationIsVisible = 0;
401
+			defaultConfigurationName = Release;
402
+		};
403
+/* End XCConfigurationList section */
404
+	};
405
+	rootObject = 504EC2FC1FED79650016851F /* Project object */;
406
+}

+ 7
- 0
ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata 查看文件

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Workspace
3
+   version = "1.0">
4
+   <FileRef
5
+      location = "self:App.xcodeproj">
6
+   </FileRef>
7
+</Workspace>

+ 10
- 0
ios/App/App.xcworkspace/contents.xcworkspacedata 查看文件

@@ -0,0 +1,10 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Workspace
3
+   version = "1.0">
4
+   <FileRef
5
+      location = "group:App.xcodeproj">
6
+   </FileRef>
7
+   <FileRef
8
+      location = "group:Pods/Pods.xcodeproj">
9
+   </FileRef>
10
+</Workspace>

+ 8
- 0
ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist 查看文件

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>IDEDidComputeMac32BitWarning</key>
6
+	<true/>
7
+</dict>
8
+</plist>

+ 49
- 0
ios/App/App/AppDelegate.swift 查看文件

@@ -0,0 +1,49 @@
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
+}

二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@1x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@3x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@1x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@3x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@2x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@2x.png 查看文件


二进制
ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png 查看文件


+ 116
- 0
ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json 查看文件

@@ -0,0 +1,116 @@
1
+{
2
+  "images" : [
3
+    {
4
+      "size" : "20x20",
5
+      "idiom" : "iphone",
6
+      "filename" : "AppIcon-20x20@2x.png",
7
+      "scale" : "2x"
8
+    },
9
+    {
10
+      "size" : "20x20",
11
+      "idiom" : "iphone",
12
+      "filename" : "AppIcon-20x20@3x.png",
13
+      "scale" : "3x"
14
+    },
15
+    {
16
+      "size" : "29x29",
17
+      "idiom" : "iphone",
18
+      "filename" : "AppIcon-29x29@2x-1.png",
19
+      "scale" : "2x"
20
+    },
21
+    {
22
+      "size" : "29x29",
23
+      "idiom" : "iphone",
24
+      "filename" : "AppIcon-29x29@3x.png",
25
+      "scale" : "3x"
26
+    },
27
+    {
28
+      "size" : "40x40",
29
+      "idiom" : "iphone",
30
+      "filename" : "AppIcon-40x40@2x.png",
31
+      "scale" : "2x"
32
+    },
33
+    {
34
+      "size" : "40x40",
35
+      "idiom" : "iphone",
36
+      "filename" : "AppIcon-40x40@3x.png",
37
+      "scale" : "3x"
38
+    },
39
+    {
40
+      "size" : "60x60",
41
+      "idiom" : "iphone",
42
+      "filename" : "AppIcon-60x60@2x.png",
43
+      "scale" : "2x"
44
+    },
45
+    {
46
+      "size" : "60x60",
47
+      "idiom" : "iphone",
48
+      "filename" : "AppIcon-60x60@3x.png",
49
+      "scale" : "3x"
50
+    },
51
+    {
52
+      "size" : "20x20",
53
+      "idiom" : "ipad",
54
+      "filename" : "AppIcon-20x20@1x.png",
55
+      "scale" : "1x"
56
+    },
57
+    {
58
+      "size" : "20x20",
59
+      "idiom" : "ipad",
60
+      "filename" : "AppIcon-20x20@2x-1.png",
61
+      "scale" : "2x"
62
+    },
63
+    {
64
+      "size" : "29x29",
65
+      "idiom" : "ipad",
66
+      "filename" : "AppIcon-29x29@1x.png",
67
+      "scale" : "1x"
68
+    },
69
+    {
70
+      "size" : "29x29",
71
+      "idiom" : "ipad",
72
+      "filename" : "AppIcon-29x29@2x.png",
73
+      "scale" : "2x"
74
+    },
75
+    {
76
+      "size" : "40x40",
77
+      "idiom" : "ipad",
78
+      "filename" : "AppIcon-40x40@1x.png",
79
+      "scale" : "1x"
80
+    },
81
+    {
82
+      "size" : "40x40",
83
+      "idiom" : "ipad",
84
+      "filename" : "AppIcon-40x40@2x-1.png",
85
+      "scale" : "2x"
86
+    },
87
+    {
88
+      "size" : "76x76",
89
+      "idiom" : "ipad",
90
+      "filename" : "AppIcon-76x76@1x.png",
91
+      "scale" : "1x"
92
+    },
93
+    {
94
+      "size" : "76x76",
95
+      "idiom" : "ipad",
96
+      "filename" : "AppIcon-76x76@2x.png",
97
+      "scale" : "2x"
98
+    },
99
+    {
100
+      "size" : "83.5x83.5",
101
+      "idiom" : "ipad",
102
+      "filename" : "AppIcon-83.5x83.5@2x.png",
103
+      "scale" : "2x"
104
+    },
105
+    {
106
+      "size" : "1024x1024",
107
+      "idiom" : "ios-marketing",
108
+      "filename" : "AppIcon-512@2x.png",
109
+      "scale" : "1x"
110
+    }
111
+  ],
112
+  "info" : {
113
+    "version" : 1,
114
+    "author" : "xcode"
115
+  }
116
+}

+ 6
- 0
ios/App/App/Assets.xcassets/Contents.json 查看文件

@@ -0,0 +1,6 @@
1
+{
2
+  "info" : {
3
+    "version" : 1,
4
+    "author" : "xcode"
5
+  }
6
+}

+ 23
- 0
ios/App/App/Assets.xcassets/Splash.imageset/Contents.json 查看文件

@@ -0,0 +1,23 @@
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
+}

二进制
ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png 查看文件


二进制
ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png 查看文件


二进制
ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png 查看文件


+ 32
- 0
ios/App/App/Base.lproj/LaunchScreen.storyboard 查看文件

@@ -0,0 +1,32 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17132" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+    <device id="retina4_7" orientation="portrait" appearance="light"/>
4
+    <dependencies>
5
+        <deployment identifier="iOS"/>
6
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17105"/>
7
+        <capability name="System colors in document resources" minToolsVersion="11.0"/>
8
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
+    </dependencies>
10
+    <scenes>
11
+        <!--View Controller-->
12
+        <scene sceneID="EHf-IW-A2E">
13
+            <objects>
14
+                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
15
+                    <imageView key="view" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Splash" id="snD-IY-ifK">
16
+                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17
+                        <autoresizingMask key="autoresizingMask"/>
18
+                        <color key="backgroundColor" systemColor="systemBackgroundColor"/>
19
+                    </imageView>
20
+                </viewController>
21
+                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
22
+            </objects>
23
+            <point key="canvasLocation" x="53" y="375"/>
24
+        </scene>
25
+    </scenes>
26
+    <resources>
27
+        <image name="Splash" width="1366" height="1366"/>
28
+        <systemColor name="systemBackgroundColor">
29
+            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
30
+        </systemColor>
31
+    </resources>
32
+</document>

+ 19
- 0
ios/App/App/Base.lproj/Main.storyboard 查看文件

@@ -0,0 +1,19 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14111" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3
+    <device id="retina4_7" orientation="portrait">
4
+        <adaptation id="fullscreen"/>
5
+    </device>
6
+    <dependencies>
7
+        <deployment identifier="iOS"/>
8
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
9
+    </dependencies>
10
+    <scenes>
11
+        <!--Bridge View Controller-->
12
+        <scene sceneID="tne-QT-ifu">
13
+            <objects>
14
+                <viewController id="BYZ-38-t0r" customClass="CAPBridgeViewController" customModule="Capacitor" sceneMemberID="viewController"/>
15
+                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
16
+            </objects>
17
+        </scene>
18
+    </scenes>
19
+</document>

+ 49
- 0
ios/App/App/Info.plist 查看文件

@@ -0,0 +1,49 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>CFBundleDevelopmentRegion</key>
6
+	<string>en</string>
7
+	<key>CFBundleDisplayName</key>
8
+        <string>renacer</string>
9
+	<key>CFBundleExecutable</key>
10
+	<string>$(EXECUTABLE_NAME)</string>
11
+	<key>CFBundleIdentifier</key>
12
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
+	<key>CFBundleInfoDictionaryVersion</key>
14
+	<string>6.0</string>
15
+	<key>CFBundleName</key>
16
+	<string>$(PRODUCT_NAME)</string>
17
+	<key>CFBundlePackageType</key>
18
+	<string>APPL</string>
19
+	<key>CFBundleShortVersionString</key>
20
+	<string>$(MARKETING_VERSION)</string>
21
+	<key>CFBundleVersion</key>
22
+	<string>$(CURRENT_PROJECT_VERSION)</string>
23
+	<key>LSRequiresIPhoneOS</key>
24
+	<true/>
25
+	<key>UILaunchStoryboardName</key>
26
+	<string>LaunchScreen</string>
27
+	<key>UIMainStoryboardFile</key>
28
+	<string>Main</string>
29
+	<key>UIRequiredDeviceCapabilities</key>
30
+	<array>
31
+		<string>armv7</string>
32
+	</array>
33
+	<key>UISupportedInterfaceOrientations</key>
34
+	<array>
35
+		<string>UIInterfaceOrientationPortrait</string>
36
+		<string>UIInterfaceOrientationLandscapeLeft</string>
37
+		<string>UIInterfaceOrientationLandscapeRight</string>
38
+	</array>
39
+	<key>UISupportedInterfaceOrientations~ipad</key>
40
+	<array>
41
+		<string>UIInterfaceOrientationPortrait</string>
42
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
43
+		<string>UIInterfaceOrientationLandscapeLeft</string>
44
+		<string>UIInterfaceOrientationLandscapeRight</string>
45
+	</array>
46
+	<key>UIViewControllerBasedStatusBarAppearance</key>
47
+	<true/>
48
+</dict>
49
+</plist>

+ 27
- 0
ios/App/Podfile 查看文件

@@ -0,0 +1,27 @@
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 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
15
+  pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics'
16
+  pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard'
17
+  pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
18
+end
19
+
20
+target 'App' do
21
+  capacitor_pods
22
+  # Add your Pods here
23
+end
24
+
25
+post_install do |installer|
26
+  assertDeploymentTarget(installer)
27
+end

+ 117
- 5
package-lock.json 查看文件

@@ -8,11 +8,13 @@
8 8
       "name": "renacer",
9 9
       "version": "0.0.1",
10 10
       "dependencies": {
11
-        "@capacitor/app": "4.1.0",
11
+        "@capacitor/android": "4.4.0",
12
+        "@capacitor/app": "^4.1.0",
12 13
         "@capacitor/core": "4.4.0",
13
-        "@capacitor/haptics": "4.0.1",
14
-        "@capacitor/keyboard": "4.0.1",
15
-        "@capacitor/status-bar": "4.0.1",
14
+        "@capacitor/haptics": "^4.0.1",
15
+        "@capacitor/ios": "4.4.0",
16
+        "@capacitor/keyboard": "^4.0.1",
17
+        "@capacitor/status-bar": "^4.0.1",
16 18
         "@ionic/react": "^6.0.0",
17 19
         "@ionic/react-router": "^6.0.0",
18 20
         "@testing-library/jest-dom": "^5.11.9",
@@ -47,7 +49,8 @@
47 49
         "workbox-streams": "^5.1.4"
48 50
       },
49 51
       "devDependencies": {
50
-        "@capacitor/cli": "4.4.0"
52
+        "@capacitor/cli": "4.4.0",
53
+        "@ionic/lab": "3.2.15"
51 54
       }
52 55
     },
53 56
     "node_modules/@adobe/css-tools": {
@@ -1958,6 +1961,14 @@
1958 1961
       "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz",
1959 1962
       "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw=="
1960 1963
     },
1964
+    "node_modules/@capacitor/android": {
1965
+      "version": "4.4.0",
1966
+      "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-4.4.0.tgz",
1967
+      "integrity": "sha512-vPoUcoJ1CZ5pxjceN/HVnq5FuNo+V1/kBj/NH48nAiMzBbZPEDmplguGC8Dj2qbKjhkJ+LMSL26VTfnsyHMJbA==",
1968
+      "peerDependencies": {
1969
+        "@capacitor/core": "^4.3.0"
1970
+      }
1971
+    },
1961 1972
     "node_modules/@capacitor/app": {
1962 1973
       "version": "4.1.0",
1963 1974
       "resolved": "https://registry.npmjs.org/@capacitor/app/-/app-4.1.0.tgz",
@@ -2032,6 +2043,14 @@
2032 2043
         "@capacitor/core": "^4.0.0"
2033 2044
       }
2034 2045
     },
2046
+    "node_modules/@capacitor/ios": {
2047
+      "version": "4.4.0",
2048
+      "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-4.4.0.tgz",
2049
+      "integrity": "sha512-x1i9WgaeUANBgXmCHcXoMrqZC49Ef0eu+kaRmcQ0/UkI2r31/PMGr3BVTlHRJLeBsodzwR4TiEeKRK044WX+Hw==",
2050
+      "peerDependencies": {
2051
+        "@capacitor/core": "^4.3.0"
2052
+      }
2053
+    },
2035 2054
     "node_modules/@capacitor/keyboard": {
2036 2055
       "version": "4.0.1",
2037 2056
       "resolved": "https://registry.npmjs.org/@capacitor/keyboard/-/keyboard-4.0.1.tgz",
@@ -2412,6 +2431,32 @@
2412 2431
       "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
2413 2432
       "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA=="
2414 2433
     },
2434
+    "node_modules/@ionic/cli-framework": {
2435
+      "version": "5.1.3",
2436
+      "resolved": "https://registry.npmjs.org/@ionic/cli-framework/-/cli-framework-5.1.3.tgz",
2437
+      "integrity": "sha512-T2KN/TurzNoAcc3iDt1KHU6GeEa7x9kXngMnu5xs+DzJv5HhBKjVOoo74b8rgVxdPx+dLOV8aLrorlyvsHR/tQ==",
2438
+      "dev": true,
2439
+      "dependencies": {
2440
+        "@ionic/cli-framework-output": "2.2.5",
2441
+        "@ionic/utils-array": "2.1.5",
2442
+        "@ionic/utils-fs": "3.1.6",
2443
+        "@ionic/utils-object": "2.1.5",
2444
+        "@ionic/utils-process": "2.1.10",
2445
+        "@ionic/utils-stream": "3.1.5",
2446
+        "@ionic/utils-subprocess": "2.1.11",
2447
+        "@ionic/utils-terminal": "2.3.3",
2448
+        "chalk": "^4.0.0",
2449
+        "debug": "^4.0.0",
2450
+        "lodash": "^4.17.5",
2451
+        "minimist": "^1.2.0",
2452
+        "rimraf": "^3.0.0",
2453
+        "tslib": "^2.0.1",
2454
+        "write-file-atomic": "^3.0.0"
2455
+      },
2456
+      "engines": {
2457
+        "node": ">=10.3.0"
2458
+      }
2459
+    },
2415 2460
     "node_modules/@ionic/cli-framework-output": {
2416 2461
       "version": "2.2.5",
2417 2462
       "resolved": "https://registry.npmjs.org/@ionic/cli-framework-output/-/cli-framework-output-2.2.5.tgz",
@@ -2436,6 +2481,25 @@
2436 2481
         "tslib": "^2.1.0"
2437 2482
       }
2438 2483
     },
2484
+    "node_modules/@ionic/lab": {
2485
+      "version": "3.2.15",
2486
+      "resolved": "https://registry.npmjs.org/@ionic/lab/-/lab-3.2.15.tgz",
2487
+      "integrity": "sha512-m6vPnrc5iuLe8CkmAYp/BStsVRkGVQw/IhcN1KMbz/OxB+w9NvGJ3CuF089LyeiWlut1/PWqYRyzIWXr5okc5Q==",
2488
+      "dev": true,
2489
+      "dependencies": {
2490
+        "@ionic/cli-framework": "5.1.3",
2491
+        "@ionic/utils-fs": "3.1.6",
2492
+        "chalk": "^4.0.0",
2493
+        "express": "^4.16.2",
2494
+        "tslib": "^2.0.1"
2495
+      },
2496
+      "bin": {
2497
+        "ionic-lab": "bin/ionic-lab"
2498
+      },
2499
+      "engines": {
2500
+        "node": ">=10.3.0"
2501
+      }
2502
+    },
2439 2503
     "node_modules/@ionic/react": {
2440 2504
       "version": "6.3.6",
2441 2505
       "resolved": "https://registry.npmjs.org/@ionic/react/-/react-6.3.6.tgz",
@@ -17423,6 +17487,12 @@
17423 17487
       "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz",
17424 17488
       "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw=="
17425 17489
     },
17490
+    "@capacitor/android": {
17491
+      "version": "4.4.0",
17492
+      "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-4.4.0.tgz",
17493
+      "integrity": "sha512-vPoUcoJ1CZ5pxjceN/HVnq5FuNo+V1/kBj/NH48nAiMzBbZPEDmplguGC8Dj2qbKjhkJ+LMSL26VTfnsyHMJbA==",
17494
+      "requires": {}
17495
+    },
17426 17496
     "@capacitor/app": {
17427 17497
       "version": "4.1.0",
17428 17498
       "resolved": "https://registry.npmjs.org/@capacitor/app/-/app-4.1.0.tgz",
@@ -17482,6 +17552,12 @@
17482 17552
       "integrity": "sha512-ZLVoLdK1Md/xIRRrDOnrLCKGRg8UENY1ShpKcysPN1z1MgcpvB/9Nbqczm3RH24zyo3MP/7homkqMzUGxPBlwQ==",
17483 17553
       "requires": {}
17484 17554
     },
17555
+    "@capacitor/ios": {
17556
+      "version": "4.4.0",
17557
+      "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-4.4.0.tgz",
17558
+      "integrity": "sha512-x1i9WgaeUANBgXmCHcXoMrqZC49Ef0eu+kaRmcQ0/UkI2r31/PMGr3BVTlHRJLeBsodzwR4TiEeKRK044WX+Hw==",
17559
+      "requires": {}
17560
+    },
17485 17561
     "@capacitor/keyboard": {
17486 17562
       "version": "4.0.1",
17487 17563
       "resolved": "https://registry.npmjs.org/@capacitor/keyboard/-/keyboard-4.0.1.tgz",
@@ -17684,6 +17760,29 @@
17684 17760
       "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
17685 17761
       "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA=="
17686 17762
     },
17763
+    "@ionic/cli-framework": {
17764
+      "version": "5.1.3",
17765
+      "resolved": "https://registry.npmjs.org/@ionic/cli-framework/-/cli-framework-5.1.3.tgz",
17766
+      "integrity": "sha512-T2KN/TurzNoAcc3iDt1KHU6GeEa7x9kXngMnu5xs+DzJv5HhBKjVOoo74b8rgVxdPx+dLOV8aLrorlyvsHR/tQ==",
17767
+      "dev": true,
17768
+      "requires": {
17769
+        "@ionic/cli-framework-output": "2.2.5",
17770
+        "@ionic/utils-array": "2.1.5",
17771
+        "@ionic/utils-fs": "3.1.6",
17772
+        "@ionic/utils-object": "2.1.5",
17773
+        "@ionic/utils-process": "2.1.10",
17774
+        "@ionic/utils-stream": "3.1.5",
17775
+        "@ionic/utils-subprocess": "2.1.11",
17776
+        "@ionic/utils-terminal": "2.3.3",
17777
+        "chalk": "^4.0.0",
17778
+        "debug": "^4.0.0",
17779
+        "lodash": "^4.17.5",
17780
+        "minimist": "^1.2.0",
17781
+        "rimraf": "^3.0.0",
17782
+        "tslib": "^2.0.1",
17783
+        "write-file-atomic": "^3.0.0"
17784
+      }
17785
+    },
17687 17786
     "@ionic/cli-framework-output": {
17688 17787
       "version": "2.2.5",
17689 17788
       "resolved": "https://registry.npmjs.org/@ionic/cli-framework-output/-/cli-framework-output-2.2.5.tgz",
@@ -17705,6 +17804,19 @@
17705 17804
         "tslib": "^2.1.0"
17706 17805
       }
17707 17806
     },
17807
+    "@ionic/lab": {
17808
+      "version": "3.2.15",
17809
+      "resolved": "https://registry.npmjs.org/@ionic/lab/-/lab-3.2.15.tgz",
17810
+      "integrity": "sha512-m6vPnrc5iuLe8CkmAYp/BStsVRkGVQw/IhcN1KMbz/OxB+w9NvGJ3CuF089LyeiWlut1/PWqYRyzIWXr5okc5Q==",
17811
+      "dev": true,
17812
+      "requires": {
17813
+        "@ionic/cli-framework": "5.1.3",
17814
+        "@ionic/utils-fs": "3.1.6",
17815
+        "chalk": "^4.0.0",
17816
+        "express": "^4.16.2",
17817
+        "tslib": "^2.0.1"
17818
+      }
17819
+    },
17708 17820
     "@ionic/react": {
17709 17821
       "version": "6.3.6",
17710 17822
       "resolved": "https://registry.npmjs.org/@ionic/react/-/react-6.3.6.tgz",

+ 8
- 5
package.json 查看文件

@@ -3,11 +3,13 @@
3 3
   "version": "0.0.1",
4 4
   "private": true,
5 5
   "dependencies": {
6
-    "@capacitor/app": "4.1.0",
6
+    "@capacitor/android": "4.4.0",
7
+    "@capacitor/app": "^4.1.0",
7 8
     "@capacitor/core": "4.4.0",
8
-    "@capacitor/haptics": "4.0.1",
9
-    "@capacitor/keyboard": "4.0.1",
10
-    "@capacitor/status-bar": "4.0.1",
9
+    "@capacitor/haptics": "^4.0.1",
10
+    "@capacitor/ios": "4.4.0",
11
+    "@capacitor/keyboard": "^4.0.1",
12
+    "@capacitor/status-bar": "^4.0.1",
11 13
     "@ionic/react": "^6.0.0",
12 14
     "@ionic/react-router": "^6.0.0",
13 15
     "@testing-library/jest-dom": "^5.11.9",
@@ -66,7 +68,8 @@
66 68
     ]
67 69
   },
68 70
   "devDependencies": {
69
-    "@capacitor/cli": "4.4.0"
71
+    "@capacitor/cli": "4.4.0",
72
+    "@ionic/lab": "3.2.15"
70 73
   },
71 74
   "description": "An Ionic project"
72 75
 }

+ 19
- 19
src/App.tsx 查看文件

@@ -1,4 +1,4 @@
1
-import { Redirect, Route } from 'react-router-dom';
1
+import { Redirect, Route } from "react-router-dom";
2 2
 import {
3 3
   IonApp,
4 4
   IonIcon,
@@ -7,32 +7,32 @@ import {
7 7
   IonTabBar,
8 8
   IonTabButton,
9 9
   IonTabs,
10
-  setupIonicReact
11
-} from '@ionic/react';
12
-import { IonReactRouter } from '@ionic/react-router';
13
-import { ellipse, square, triangle } from 'ionicons/icons';
14
-import Tab1 from './pages/Tab1';
15
-import Tab2 from './pages/Tab2';
16
-import Tab3 from './pages/Tab3';
10
+  setupIonicReact,
11
+} from "@ionic/react";
12
+import { IonReactRouter } from "@ionic/react-router";
13
+import { ellipse, square, triangle } from "ionicons/icons";
14
+import Tab1 from "./pages/Tab1";
15
+import Tab2 from "./pages/Tab2";
16
+import Tab3 from "./pages/Tab3";
17 17
 
18 18
 /* Core CSS required for Ionic components to work properly */
19
-import '@ionic/react/css/core.css';
19
+import "@ionic/react/css/core.css";
20 20
 
21 21
 /* Basic CSS for apps built with Ionic */
22
-import '@ionic/react/css/normalize.css';
23
-import '@ionic/react/css/structure.css';
24
-import '@ionic/react/css/typography.css';
22
+import "@ionic/react/css/normalize.css";
23
+import "@ionic/react/css/structure.css";
24
+import "@ionic/react/css/typography.css";
25 25
 
26 26
 /* Optional CSS utils that can be commented out */
27
-import '@ionic/react/css/padding.css';
28
-import '@ionic/react/css/float-elements.css';
29
-import '@ionic/react/css/text-alignment.css';
30
-import '@ionic/react/css/text-transformation.css';
31
-import '@ionic/react/css/flex-utils.css';
32
-import '@ionic/react/css/display.css';
27
+import "@ionic/react/css/padding.css";
28
+import "@ionic/react/css/float-elements.css";
29
+import "@ionic/react/css/text-alignment.css";
30
+import "@ionic/react/css/text-transformation.css";
31
+import "@ionic/react/css/flex-utils.css";
32
+import "@ionic/react/css/display.css";
33 33
 
34 34
 /* Theme variables */
35
-import './theme/variables.css';
35
+import "./theme/variables.css";
36 36
 
37 37
 setupIonicReact();
38 38
 

+ 8
- 6
src/setupTests.ts 查看文件

@@ -2,13 +2,15 @@
2 2
 // allows you to do things like:
3 3
 // expect(element).toHaveTextContent(/react/i)
4 4
 // learn more: https://github.com/testing-library/jest-dom
5
-import '@testing-library/jest-dom/extend-expect';
5
+import "@testing-library/jest-dom/extend-expect";
6 6
 
7 7
 // Mock matchmedia
8
-window.matchMedia = window.matchMedia || function() {
9
-  return {
8
+window.matchMedia =
9
+  window.matchMedia ||
10
+  function () {
11
+    return {
10 12
       matches: false,
11
-      addListener: function() {},
12
-      removeListener: function() {}
13
+      addListener: function () {},
14
+      removeListener: function () {},
15
+    };
13 16
   };
14
-};