Commit graph

32 commits

Author SHA1 Message Date
chrisgarrity
6ccafdd9cc
Merge pull request #406 from yueyuzhao/issue/405-ios-warning
iOS: get rid of warnings Fix #405
2021-05-04 08:45:40 -04:00
Yueyu
86665ae8a4 1. iOS: refactor to import in IO.m and comments to Database.m
2. Android: clean up
3. JavaScript: lint code style
2021-04-30 21:20:51 +08:00
Yueyu
c5f43b6152 iOS: get rid of warnings Fix #405 2021-04-15 06:53:27 +08:00
Yueyu
c1e2449d45 iOS: fix export and clean up filder 2021-04-09 21:40:25 +08:00
Yueyu
e88b25dea0 iOS: fix zipUrls iteration 2021-04-09 07:39:35 +08:00
Yueyu
468bc4e0ab iOS: clean up import project and make thumbnails for sprites and backgrounds 2021-04-09 07:02:35 +08:00
Yueyu
397ce34148 iOS: native receive project 2021-04-05 08:09:32 +08:00
Yueyu
0d6918d508 clean up zips before creating a new one 2021-03-22 13:05:58 +08:00
Yueyu
07ce9bf7c8 switch zip to native 2020-11-13 08:11:38 +08:00
chrisgarrity
027baa117c
Merge pull request #326 from LLK/fix-initial-splash-resize
added constraints for splash screen image
2020-10-05 11:35:28 -04:00
Ben Wheeler
60c9d5d41c updated method of disabling long press in wkwebkit 2020-09-30 11:35:32 -04:00
Ben Wheeler
50e080d7f3 added constraints for splash screen image 2020-09-17 12:25:42 -04:00
Chris Garrity
c5b57966b1 Fix Firebase warnings
Don’t pass NSNulls to Firebase. Paramaters must be string or integer, so use ‘undefined’ to match current values.
2020-09-04 08:51:32 -04:00
Ben Wheeler
eb37208424 added callback lines in two places in JsBridge.m 2020-08-24 16:06:19 -04:00
Chris Garrity
6c737f51b8 [WIP] Initial version with WKWebView
Upgrade webview to WKWebView with many thanks to @yueyuzhao

* Need to debug a problem saving thumbnails on iOS 9.3.5
* Needs much more testing
2020-08-17 10:37:14 -04:00
Ben Wheeler
c301a1090e add generic setAnalyticsPref functions for iOS and Android 2020-08-13 18:24:25 -04:00
Chris Garrity
1420a5947a Split iOS and Android interfaces
Refactor the native interface in preparation for switching iOS to use WKWebview.
* Finally rename the folder for device specific interfaces as `tablet` instead of `iPad`
* Update `import` statements to use the new name
* Create new `iOS.js` and `Android.js` based on previous `iPad/iOS.js` to separate the interfaces
* Add new `OS.js` class to manage the class variables, initialize the device interface delegate methods to the correct interface.
* refactor how  `utils/lib` detects the current platform based on `navigtor.userAgent` based on https://stackoverflow.com/questions/37591279/detect-if-user-is-using-webview-for-android-ios-or-a-regular-browser. previous method relied on the Android interface being loaded or not. It can be difficult to detect the difference between in a browser and in a webview, but for now ScratchJr doesn’t need to worry about running in a browser
2020-08-10 09:11:47 -04:00
Ben Wheeler
9e30b90a17 ios and android log event action as event type 2020-04-13 22:11:09 -04:00
Donald
9bb886e9a8 iOS: disable UIWebView scroll to fix #243 2020-03-24 21:00:09 +08:00
Chris Garrity
c8f655447a Address comments 2019-10-25 12:27:32 -04:00
Chris Garrity
1ba161e3b1 Update iOS to use Firebase Analytics 2019-10-21 13:00:37 -04:00
Donald
2da2fad26c Fix Runtime Issues:
ScratchJr.m: runtime: UI API called from background thread: -[UIView removeFromSuperview] must be used from main thread only
IO.m: runtime: UI API called from background thread: -[UIWebView stringByEvaluatingJavaScriptFromString:] must be used from main thread only
2018-09-11 09:32:02 +08:00
chrisgarrity
16e4b7ce27 Limit size of sounds
We know that projects with lots of (large) sounds tend to crash ScratchJr. Hopefully reducing the size of the sounds will help to reduce the number of crashes.
2017-07-17 11:25:59 -04:00
chrisgarrity
7e4f6682d6 Fun with sound timers
If the same sound gets triggered while it’s playing, the sound restarts and both sound blocks will be highlighted until the sound completes - this matches what happens on Android.

Also more formatting changes.
2017-03-14 18:09:43 -04:00
chrisgarrity
f752ff5760 Fix formatting and restart bug
In the current system you can’t have the same sound playing more than once at the same time - this is how it was implemented on Android, so we used the same restriction on iOS.

However in the previous version if you interrupted the sound to play it again, it continued from where it was instead of starting over. So it didn’t appear to do anything. Added resetting the current time to 0.0 on play to restart sounds.
2017-03-14 14:31:18 -04:00
chrisgarrity
6a6d92e06b [WIP] new audio engine
Post coding session with Paula
2017-02-21 17:17:35 -05:00
chrisgarrity
72b807726b iOS: show unescaped filename in email
Displayed name in the email was using the escaped filename rather than the filename passed as the name parameter.
2016-09-19 17:10:10 -04:00
Andrew Sliwinski
693db43729 Do not throw exception when app moves to background during audio recording. Resolves GH-91 2016-05-19 20:19:27 -07:00
Andrew Sliwinski
56ee7f8b7c Prevent crash bug edge case with sharing by email. Resolves GH-500 2016-04-06 18:22:50 -04:00
Tim Mickel
ba3f7513d2 Set AVAudioSession category on viewDidLoad #35 2016-03-24 11:52:17 -04:00
Tim Mickel
cb2fdccbcb Fix mimeType string for official/free iOS emails 2016-02-08 13:35:09 -05:00
Tim Mickel
e88af5b6df Initial commit 2016-01-08 14:31:04 -05:00