Skip to content

Commit

Permalink
Mchin/bug fix (#221)
Browse files Browse the repository at this point in the history
* handle rejected promise

* add error handler

* Update README.md

* Update README.md

* fix some minor bugs

* refine code

* refine code

* refine code

* Update README.md

* fix some GUI bugs

* minor UI fix

* Update PUBLISHING.md

* Update README.md

* Update NOTES.md

* fix bugs

* add publishing folder
  • Loading branch information
michaelchin authored Jun 22, 2023
1 parent b3b49c5 commit eaa3af1
Show file tree
Hide file tree
Showing 48 changed files with 1,603 additions and 1,439 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,37 @@ The “GPlates-in-schools” program is funded by [AuScope](https://www.auscope.

<img width="600" alt="Built-in Tutorial" src="https://github.com/GPlates/gplates-app/assets/2688316/8efae96b-7f56-4490-a408-da8d436ca28e">

## Animations

### Built-in Tutorial


https://github.com/GPlates/gplates-app/assets/2688316/71589c97-a55e-44de-b4b9-562a5f9a7b34

### Age Grid Reconstruction

https://github.com/GPlates/gplates-app/assets/2688316/50f5a6a9-56e6-44fc-a667-e13d6422d8b3


## Troubleshooting

### App being stuck at the start-up screen

**🔵 Clear the App storage data and cache, and then restart!!**

### Reloading App could be useful when a bug or mishap caused the App to enter and stuck in a messy state.

For example, if you see this blue ball

<img width="300" alt="blue ball error" src="https://github.com/GPlates/gplates-app/assets/2688316/cdf74619-cb3d-4753-aef8-25bc9fb6a62e">

Another example is the "Graph" data failed to load. See the empty graph chart screenshot.

<img width="300" alt="graph chart no data" src="https://github.com/GPlates/gplates-app/assets/2688316/2ba17689-a312-431f-82a0-1deff3194e0a">


To escape the "limbo", you can just reload the App by following the steps below.

- Step 1: open the "Settings" window

<img width="437" alt="Settings" src="https://github.com/GPlates/gplates-app/assets/2688316/01c385fd-229d-4233-9cd7-c9ebfbb0fdf9">
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {
applicationId "earthbyte.gplates.edu"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 2
versionCode 3
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
Expand Down
4 changes: 2 additions & 2 deletions android/app/capacitor.build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}

Expand Down
2 changes: 1 addition & 1 deletion capacitor.config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
10 changes: 8 additions & 2 deletions dev-doc/NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ The following steps worked on my Macbook Pro.
- `nvm use 18`
- `npm install`
- `source ./set-env.sh`
- `ionic capacitor run android`
- `ionic capacitor run ios`
- `ionic capacitor run android -l --external`
- `ionic capacitor run ios -l --external`

## Serve as a web page

Expand Down Expand Up @@ -70,3 +70,9 @@ To install CocoaPods on an [M1](https://stackoverflow.com/questions/64901180/how
⚠ DO NOT DO THAT!! The Capacitor hardcoded "App" as the name. If you change the name, some Capacitor commands will not work.

### append "&BGCOLOR=0x0000FF" to WMS request to get a background

### App Store Preview

`ffmpeg -i GPlates-App-preview-age-grid.mp4 -c:v libx264 -profile:v main -level:v 3.1 -c:a copy output.mp4`

`ffprobe -loglevel error -show_streams GPlates-App-preview-age-grid.mp4`
77 changes: 77 additions & 0 deletions ios/App/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "504EC3031FED79650016851F"
BuildableName = "App.app"
BlueprintName = "App"
ReferencedContainer = "container:App.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Release"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "504EC3031FED79650016851F"
BuildableName = "App.app"
BlueprintName = "App"
ReferencedContainer = "container:App.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "504EC3031FED79650016851F"
BuildableName = "App.app"
BlueprintName = "App"
ReferencedContainer = "container:App.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
2 changes: 1 addition & 1 deletion ios/App/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>2</string>
<string>3</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>
Expand Down
Loading

0 comments on commit eaa3af1

Please sign in to comment.