Selaa lähdekoodia

Changes to flag screen

Ángel G. Romero Rosario 2 vuotta sitten
vanhempi
commit
5290ac7d2e

+ 0
- 101
android/.gitignore Näytä tiedosto

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

+ 0
- 25
android/.idea/jarRepositories.xml Näytä tiedosto

@@ -1,25 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="RemoteRepositoriesConfiguration">
4
-    <remote-repository>
5
-      <option name="id" value="central" />
6
-      <option name="name" value="Maven Central repository" />
7
-      <option name="url" value="https://repo1.maven.org/maven2" />
8
-    </remote-repository>
9
-    <remote-repository>
10
-      <option name="id" value="jboss.community" />
11
-      <option name="name" value="JBoss Community repository" />
12
-      <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
13
-    </remote-repository>
14
-    <remote-repository>
15
-      <option name="id" value="MavenRepo" />
16
-      <option name="name" value="MavenRepo" />
17
-      <option name="url" value="https://repo.maven.apache.org/maven2/" />
18
-    </remote-repository>
19
-    <remote-repository>
20
-      <option name="id" value="Google" />
21
-      <option name="name" value="Google" />
22
-      <option name="url" value="https://dl.google.com/dl/android/maven2/" />
23
-    </remote-repository>
24
-  </component>
25
-</project>

+ 0
- 53
android/app/build.gradle Näytä tiedosto

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

+ 0
- 21
android/app/proguard-rules.pro Näytä tiedosto

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

+ 0
- 42
android/app/src/main/AndroidManifest.xml Näytä tiedosto

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

+ 0
- 24
android/gradle.properties Näytä tiedosto

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

+ 0
- 89
android/gradlew.bat Näytä tiedosto

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

+ 3
- 1
src/pages/Home.tsx Näytä tiedosto

@@ -39,7 +39,9 @@ const Home: React.FC = () => {
39 39
           <IonCardHeader class="card-header">
40 40
             <IonCardTitle class="card-date">
41 41
               {date}
42
-              <IonButton fill="clear"> <IonIcon slot="icon-only" icon={arrowDownCircle} class="moti-download"></IonIcon></IonButton> 
42
+              <IonButton fill="clear"> 
43
+                <IonIcon slot="icon-only" icon={arrowDownCircle} class="moti-download"></IonIcon>
44
+              </IonButton> 
43 45
             </IonCardTitle>
44 46
           </IonCardHeader>
45 47
           <IonImg class="moti-img" alt="Motivational message" src={require("./generatedMsgs/moti1.jpeg")}></IonImg>

+ 1
- 1
src/theme/variables.css Näytä tiedosto

@@ -28,7 +28,7 @@ http://ionicframework.com/docs/theming/ */
28 28
 	--ion-color-tertiary-tint: #ff941a;
29 29
 }
30 30
 
31
-@media (prefers-color-scheme: light) {
31
+@media (prefers-color-scheme: dark) {
32 32
 
33 33
   body {
34 34
       /* Background-color */