@robotical/martyblocksjr 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +12 -0
- package/README.md +101 -0
- package/TRADEMARK +1 -0
- package/editions/free/Free-Images.xcassets/AppIcon.appiconset/Contents.json +58 -0
- package/editions/free/Free-Images.xcassets/Brand Assets.launchimage/Contents.json +36 -0
- package/editions/free/Free-Images.xcassets/Contents.json +6 -0
- package/editions/free/Free-Images.xcassets/Free-AppIcon.appiconset/Contents.json +66 -0
- package/editions/free/Free-Images.xcassets/Free-AppIcon.appiconset/Icon-167.png +0 -0
- package/editions/free/Free-Images.xcassets/Free-AppIcon.appiconset/KITTEN-1024x1024.png +0 -0
- package/editions/free/Free-Images.xcassets/Free-AppIcon.appiconset/KITTEN-152x152.png +0 -0
- package/editions/free/Free-Images.xcassets/Free-AppIcon.appiconset/KITTEN-29x29.png +0 -0
- package/editions/free/Free-Images.xcassets/Free-AppIcon.appiconset/KITTEN-40x40.png +0 -0
- package/editions/free/Free-Images.xcassets/Free-AppIcon.appiconset/KITTEN-58x58.png +0 -0
- package/editions/free/Free-Images.xcassets/Free-AppIcon.appiconset/KITTEN-76x76.png +0 -0
- package/editions/free/Free-Images.xcassets/Free-AppIcon.appiconset/KITTEN-80x80.png +0 -0
- package/editions/free/Free-Images.xcassets/Free-LaunchImage.launchimage/Contents.json +38 -0
- package/editions/free/Free-Images.xcassets/Free-LaunchImage.launchimage/Default-Landscape@2x~ipad.png +0 -0
- package/editions/free/Free-Images.xcassets/Free-LaunchImage.launchimage/Default-Landscape~ipad.png +0 -0
- package/editions/free/Free-Info.plist +92 -0
- package/editions/free/android-resources/.exist +0 -0
- package/editions/free/ios-resources/Default-Landscape@2x~ipad.png +0 -0
- package/editions/free/ios-resources/Default-Landscape~ipad.png +0 -0
- package/editions/free/ios-resources/Roboto-Bold.ttf +0 -0
- package/editions/free/ios-resources/Roboto-Medium.ttf +0 -0
- package/editions/free/ios-resources/Roboto-Regular.ttf +0 -0
- package/package.json +62 -0
- package/webpack.config.js +64 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (c) 2016, Massachusetts Institute of Technology
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
+
|
|
6
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
+
|
|
8
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
+
|
|
10
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
|
+
|
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
## Overview
|
|
2
|
+
This is the official git repository hosting the source code for the
|
|
3
|
+
[ScratchJr](http://scratchjr.org/) project.
|
|
4
|
+
|
|
5
|
+
ScratchJr can be built both for iOS and Android.
|
|
6
|
+
A pure-web version is planned to follow at some point in the future.
|
|
7
|
+
|
|
8
|
+
Platform | Status
|
|
9
|
+
-------- | -------------
|
|
10
|
+
iOS | Released in App Store
|
|
11
|
+
Android | Released in Google Play
|
|
12
|
+
|
|
13
|
+
## Release Schedule
|
|
14
|
+
|
|
15
|
+
As of this writing, the Android version now supports Android 4.4
|
|
16
|
+
and above.
|
|
17
|
+
|
|
18
|
+
## Architecture Overview
|
|
19
|
+
The diagram below illustrates the architecture of ScratchJr and
|
|
20
|
+
how the iOS (functional), Android (functional) and pure HTML5 (future)
|
|
21
|
+
versions share a common client.
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Directory Structure and Projects
|
|
27
|
+
This repository has the following directory structure:
|
|
28
|
+
|
|
29
|
+
* <tt>src/</tt> - Shared JavaScript code for iOS and Android common client. This is where most changes should be made for features, bug fixes, UI, etc.
|
|
30
|
+
* <tt>editions/</tt> - Assembly directories for each "flavor" of ScratchJr. These symlink to src for common code, and could diverge in settings and assets.
|
|
31
|
+
* <tt>free/</tt> - Free edition JavaScript, including all shared code for all releases
|
|
32
|
+
* <tt>android/</tt> - Android port of Scratch Jr. (Java, Android Studio Projects)
|
|
33
|
+
* <tt>ScratchJr/</tt> - Android Studio Project for ScratchJr Android Application
|
|
34
|
+
* <tt>bin/</tt> - Build scripts and other executables
|
|
35
|
+
* <tt>doc/</tt> - Developer Documentation
|
|
36
|
+
* <tt>ios/</tt> - Xcode project for iOS build. (Make sure to open <tt>ScratchJr.xcworkspace</tt> not <tt>ScratchJr.xcodeproj</tt>)
|
|
37
|
+
|
|
38
|
+
## Building ScratchJr
|
|
39
|
+
|
|
40
|
+
### Initial setup
|
|
41
|
+
|
|
42
|
+
Regardless of whether you are doing iOS development or Android development, you should do these steps.
|
|
43
|
+
|
|
44
|
+
*These instructions assume you are building both versions on Mac OSX, with [Homebrew](http://brew.sh) installed.*
|
|
45
|
+
|
|
46
|
+
1. Clone or update the code for this repo
|
|
47
|
+
2. Ensure you have node and npm [installed](http://blog.npmjs.org/post/85484771375/how-to-install-npm).
|
|
48
|
+
3. Run <tt>sudo easy_install pysvg</tt> to install python svg libraries
|
|
49
|
+
4. Run <tt>brew install librsvg</tt> to install commandline `rsvg-convert`
|
|
50
|
+
5. Run <tt>brew install imagemagick</tt> to install commandline `magick`
|
|
51
|
+
6. In the top level of the scratchjr repo directory, install npm dependencies for bundling the JavaScript: <tt>npm install</tt>
|
|
52
|
+
|
|
53
|
+
### Analytics
|
|
54
|
+
ScratchJr uses the Firebase SDK to record analytics for the app. Scratch Team developers should look for
|
|
55
|
+
the configuration files in the Scratch Devs Vault. If you're not on the Scratch Team, then you'll need to
|
|
56
|
+
set up your own [app analytics](https://firebase.google.com/products/analytics) with Google Firebase. It's free. Firebase will generate the configuration files for you to download.
|
|
57
|
+
|
|
58
|
+
1. Place the `google-services.json` file in `editions/free/android-resources`
|
|
59
|
+
2. Place the `GoogleService-Info.plist` file in `editions/free/ios-resources`
|
|
60
|
+
|
|
61
|
+
### iOS
|
|
62
|
+
|
|
63
|
+
1. To build the iOS version, you need to have a Mac with Xcode
|
|
64
|
+
2. Run <tt>brew install cocoapods</tt> to install CocoaPods
|
|
65
|
+
3. Run <tt>pod install</tt> to install the Firebase Analytics dependencies
|
|
66
|
+
4. Open Xcode
|
|
67
|
+
5. In Xcode, open <tt>ios/ScratchJr.xcworkspace</tt>
|
|
68
|
+
|
|
69
|
+
### Android
|
|
70
|
+
|
|
71
|
+
1. Install or update Android Studio
|
|
72
|
+
2. In Android Studio, open the project <tt>android/ScratchJr</tt>
|
|
73
|
+
3. Choose the appropriate flavor/build variant in Android Studio
|
|
74
|
+
|
|
75
|
+
*Note: you can still do Android development on Ubuntu. Instead of the install commands above, run:*
|
|
76
|
+
|
|
77
|
+
1. <tt>sudo easy_install pysvg</tt> to install python svg libraries
|
|
78
|
+
2. <tt>sudo apt-get install librsvg2-bin</tt> to install rsvg-convert
|
|
79
|
+
3. <tt>sudo apt-get install imagemagick</tt> to install ImageMagick
|
|
80
|
+
|
|
81
|
+
## Where and how to make changes
|
|
82
|
+
|
|
83
|
+
All changes should be made in a fork. Before making a pull request, ensure all changes pass our linter:
|
|
84
|
+
* <tt>npm run lint</tt>
|
|
85
|
+
|
|
86
|
+
For more information, see [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
87
|
+
|
|
88
|
+
## Code credits
|
|
89
|
+
ScratchJr would not be possible without free and open source libraries, including:
|
|
90
|
+
* [Snap.svg](https://github.com/adobe-webplatform/Snap.svg/)
|
|
91
|
+
* [JSZip](https://github.com/Stuk/jszip)
|
|
92
|
+
* [Intl.js](https://github.com/andyearnshaw/Intl.js)
|
|
93
|
+
* [Yahoo intl-messageformat](https://github.com/yahoo/intl-messageformat)
|
|
94
|
+
|
|
95
|
+
## Acknowledgments
|
|
96
|
+
ScratchJr is a collaborative effort between:
|
|
97
|
+
|
|
98
|
+
* [Tufts DevTech Research Group](http://ase.tufts.edu/devtech/)
|
|
99
|
+
* [Lifelong Kindergarten group at MIT Media Lab](http://llk.media.mit.edu/)
|
|
100
|
+
* [Playful Invention Company](http://www.playfulinvention.com/)
|
|
101
|
+
* [Two Sigma Investments](http://twosigma.com)
|
package/TRADEMARK
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
The Scratch trademarks, including the Scratch name, logo, the Scratch Cat, Gobo, Pico, Nano, Tera and Giga graphics (the "Marks"), are property of the Massachusetts Institute of Technology (MIT). Marks may not be used to endorse or promote products derived from this software without specific prior written permission.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"idiom" : "ipad",
|
|
5
|
+
"size" : "20x20",
|
|
6
|
+
"scale" : "1x"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"idiom" : "ipad",
|
|
10
|
+
"size" : "20x20",
|
|
11
|
+
"scale" : "2x"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"idiom" : "ipad",
|
|
15
|
+
"size" : "29x29",
|
|
16
|
+
"scale" : "1x"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"idiom" : "ipad",
|
|
20
|
+
"size" : "29x29",
|
|
21
|
+
"scale" : "2x"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"idiom" : "ipad",
|
|
25
|
+
"size" : "40x40",
|
|
26
|
+
"scale" : "1x"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"idiom" : "ipad",
|
|
30
|
+
"size" : "40x40",
|
|
31
|
+
"scale" : "2x"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"idiom" : "ipad",
|
|
35
|
+
"size" : "76x76",
|
|
36
|
+
"scale" : "1x"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"idiom" : "ipad",
|
|
40
|
+
"size" : "76x76",
|
|
41
|
+
"scale" : "2x"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"idiom" : "ipad",
|
|
45
|
+
"size" : "83.5x83.5",
|
|
46
|
+
"scale" : "2x"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"idiom" : "ios-marketing",
|
|
50
|
+
"size" : "1024x1024",
|
|
51
|
+
"scale" : "1x"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"info" : {
|
|
55
|
+
"version" : 1,
|
|
56
|
+
"author" : "xcode"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"orientation" : "landscape",
|
|
5
|
+
"idiom" : "ipad",
|
|
6
|
+
"minimum-system-version" : "7.0",
|
|
7
|
+
"extent" : "full-screen",
|
|
8
|
+
"scale" : "1x"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"orientation" : "landscape",
|
|
12
|
+
"idiom" : "ipad",
|
|
13
|
+
"minimum-system-version" : "7.0",
|
|
14
|
+
"extent" : "full-screen",
|
|
15
|
+
"scale" : "2x"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"orientation" : "portrait",
|
|
19
|
+
"idiom" : "ipad",
|
|
20
|
+
"minimum-system-version" : "7.0",
|
|
21
|
+
"extent" : "full-screen",
|
|
22
|
+
"scale" : "1x"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"orientation" : "portrait",
|
|
26
|
+
"idiom" : "ipad",
|
|
27
|
+
"minimum-system-version" : "7.0",
|
|
28
|
+
"extent" : "full-screen",
|
|
29
|
+
"scale" : "2x"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"info" : {
|
|
33
|
+
"version" : 1,
|
|
34
|
+
"author" : "xcode"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"idiom" : "ipad",
|
|
5
|
+
"size" : "20x20",
|
|
6
|
+
"scale" : "1x"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"idiom" : "ipad",
|
|
10
|
+
"size" : "20x20",
|
|
11
|
+
"scale" : "2x"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"size" : "29x29",
|
|
15
|
+
"idiom" : "ipad",
|
|
16
|
+
"filename" : "KITTEN-29x29.png",
|
|
17
|
+
"scale" : "1x"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"size" : "29x29",
|
|
21
|
+
"idiom" : "ipad",
|
|
22
|
+
"filename" : "KITTEN-58x58.png",
|
|
23
|
+
"scale" : "2x"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"size" : "40x40",
|
|
27
|
+
"idiom" : "ipad",
|
|
28
|
+
"filename" : "KITTEN-40x40.png",
|
|
29
|
+
"scale" : "1x"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"size" : "40x40",
|
|
33
|
+
"idiom" : "ipad",
|
|
34
|
+
"filename" : "KITTEN-80x80.png",
|
|
35
|
+
"scale" : "2x"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"size" : "76x76",
|
|
39
|
+
"idiom" : "ipad",
|
|
40
|
+
"filename" : "KITTEN-76x76.png",
|
|
41
|
+
"scale" : "1x"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"size" : "76x76",
|
|
45
|
+
"idiom" : "ipad",
|
|
46
|
+
"filename" : "KITTEN-152x152.png",
|
|
47
|
+
"scale" : "2x"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"size" : "83.5x83.5",
|
|
51
|
+
"idiom" : "ipad",
|
|
52
|
+
"filename" : "Icon-167.png",
|
|
53
|
+
"scale" : "2x"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"size" : "1024x1024",
|
|
57
|
+
"idiom" : "ios-marketing",
|
|
58
|
+
"filename" : "KITTEN-1024x1024.png",
|
|
59
|
+
"scale" : "1x"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"info" : {
|
|
63
|
+
"version" : 1,
|
|
64
|
+
"author" : "xcode"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"orientation" : "portrait",
|
|
5
|
+
"idiom" : "ipad",
|
|
6
|
+
"extent" : "full-screen",
|
|
7
|
+
"minimum-system-version" : "7.0",
|
|
8
|
+
"scale" : "1x"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"orientation" : "landscape",
|
|
12
|
+
"idiom" : "ipad",
|
|
13
|
+
"filename" : "Default-Landscape~ipad.png",
|
|
14
|
+
"extent" : "full-screen",
|
|
15
|
+
"minimum-system-version" : "7.0",
|
|
16
|
+
"scale" : "1x"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"orientation" : "portrait",
|
|
20
|
+
"idiom" : "ipad",
|
|
21
|
+
"extent" : "full-screen",
|
|
22
|
+
"minimum-system-version" : "7.0",
|
|
23
|
+
"scale" : "2x"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"orientation" : "landscape",
|
|
27
|
+
"idiom" : "ipad",
|
|
28
|
+
"filename" : "Default-Landscape@2x~ipad.png",
|
|
29
|
+
"extent" : "full-screen",
|
|
30
|
+
"minimum-system-version" : "7.0",
|
|
31
|
+
"scale" : "2x"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info" : {
|
|
35
|
+
"version" : 1,
|
|
36
|
+
"author" : "xcode"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
Binary file
|
package/editions/free/Free-Images.xcassets/Free-LaunchImage.launchimage/Default-Landscape~ipad.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,92 @@
|
|
|
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>LSSupportsOpeningDocumentsInPlace</key>
|
|
6
|
+
<false/>
|
|
7
|
+
<key>NSMicrophoneUsageDescription</key>
|
|
8
|
+
<string>Used to record sounds for your projects</string>
|
|
9
|
+
<key>NSCameraUsageDescription</key>
|
|
10
|
+
<string>Used to create characters for your projects</string>
|
|
11
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
12
|
+
<string>en</string>
|
|
13
|
+
<key>CFBundleDisplayName</key>
|
|
14
|
+
<string>${PRODUCT_NAME}</string>
|
|
15
|
+
<key>CFBundleDocumentTypes</key>
|
|
16
|
+
<array>
|
|
17
|
+
<dict>
|
|
18
|
+
<key>CFBundleTypeIconFiles</key>
|
|
19
|
+
<array>
|
|
20
|
+
<string>sjr-icon</string>
|
|
21
|
+
</array>
|
|
22
|
+
<key>CFBundleTypeName</key>
|
|
23
|
+
<string>SJR</string>
|
|
24
|
+
<key>LSHandlerRank</key>
|
|
25
|
+
<string>Owner</string>
|
|
26
|
+
<key>LSItemContentTypes</key>
|
|
27
|
+
<array>
|
|
28
|
+
<string>org.scratchfoundation.sjr</string>
|
|
29
|
+
</array>
|
|
30
|
+
</dict>
|
|
31
|
+
</array>
|
|
32
|
+
<key>CFBundleExecutable</key>
|
|
33
|
+
<string>${EXECUTABLE_NAME}</string>
|
|
34
|
+
<key>CFBundleIcons</key>
|
|
35
|
+
<dict/>
|
|
36
|
+
<key>CFBundleIcons~ipad</key>
|
|
37
|
+
<dict/>
|
|
38
|
+
<key>CFBundleIdentifier</key>
|
|
39
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
40
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
41
|
+
<string>6.0</string>
|
|
42
|
+
<key>CFBundleName</key>
|
|
43
|
+
<string>${PRODUCT_NAME}</string>
|
|
44
|
+
<key>CFBundlePackageType</key>
|
|
45
|
+
<string>APPL</string>
|
|
46
|
+
<key>CFBundleShortVersionString</key>
|
|
47
|
+
<string>1.2.0</string>
|
|
48
|
+
<key>CFBundleSignature</key>
|
|
49
|
+
<string>????</string>
|
|
50
|
+
<key>CFBundleVersion</key>
|
|
51
|
+
<string>4</string>
|
|
52
|
+
<key>LSRequiresIPhoneOS</key>
|
|
53
|
+
<true/>
|
|
54
|
+
<key>UIAppFonts</key>
|
|
55
|
+
<array>
|
|
56
|
+
<string>Roboto-Bold.ttf</string>
|
|
57
|
+
<string>Roboto-Medium.ttf</string>
|
|
58
|
+
<string>Roboto-Regular.ttf</string>
|
|
59
|
+
</array>
|
|
60
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
61
|
+
<array>
|
|
62
|
+
<string>armv7</string>
|
|
63
|
+
</array>
|
|
64
|
+
<key>UIRequiresFullScreen</key>
|
|
65
|
+
<true/>
|
|
66
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
67
|
+
<array>
|
|
68
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
69
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
70
|
+
</array>
|
|
71
|
+
<key>UTExportedTypeDeclarations</key>
|
|
72
|
+
<array>
|
|
73
|
+
<dict>
|
|
74
|
+
<key>UTTypeConformsTo</key>
|
|
75
|
+
<array>
|
|
76
|
+
<string>public.data</string>
|
|
77
|
+
</array>
|
|
78
|
+
<key>UTTypeDescription</key>
|
|
79
|
+
<string>ScratchJr Project</string>
|
|
80
|
+
<key>UTTypeIdentifier</key>
|
|
81
|
+
<string>org.scratchfoundation.sjr</string>
|
|
82
|
+
<key>UTTypeTagSpecification</key>
|
|
83
|
+
<dict>
|
|
84
|
+
<key>public.filename-extension</key>
|
|
85
|
+
<string>sjr</string>
|
|
86
|
+
<key>public.mime-type</key>
|
|
87
|
+
<string>application/x-scratchjr-project</string>
|
|
88
|
+
</dict>
|
|
89
|
+
</dict>
|
|
90
|
+
</array>
|
|
91
|
+
</dict>
|
|
92
|
+
</plist>
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@robotical/martyblocksjr",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "ScratchJr",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/",
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"lint": "eslint src/**",
|
|
11
|
+
"watch": "webpack --mode=development --progress --watch",
|
|
12
|
+
"dev": "webpack --mode=development --progress",
|
|
13
|
+
"build": "webpack --mode=production --progress",
|
|
14
|
+
"build-dev": "webpack --mode=development --progress",
|
|
15
|
+
"start": "serve ./editions/free/src",
|
|
16
|
+
"build:copy": "npm run build-dev && cp -f src/build/bundles/* editions/free/src",
|
|
17
|
+
"build-prod:copy": "npm run build && cp -f src/build/bundles/* editions/free/src",
|
|
18
|
+
"build:start": "npm run build:copy && npm start"
|
|
19
|
+
},
|
|
20
|
+
"author": "Massachusetts Institute of Technology",
|
|
21
|
+
"license": "BSD-3-Clause",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/llk/scratchjr/issues"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/llk/scratchjr",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@babel/polyfill": "^7.10.4",
|
|
28
|
+
"babel-core": "^6.4.0",
|
|
29
|
+
"babel-eslint": "^4.1.6",
|
|
30
|
+
"babel-loader": "^8.2.5",
|
|
31
|
+
"babel-preset-es2015": "^6.3.13",
|
|
32
|
+
"babel-preset-stage-3": "^6.24.1",
|
|
33
|
+
"esformatter": "^0.8.1",
|
|
34
|
+
"esformatter-braces": "^1.2.1",
|
|
35
|
+
"esformatter-dot-notation": "^1.3.1",
|
|
36
|
+
"esformatter-quotes": "^1.0.3",
|
|
37
|
+
"esformatter-semicolons": "^1.1.2",
|
|
38
|
+
"eslint": "^1.10.3",
|
|
39
|
+
"expose-loader": "^3.0.0",
|
|
40
|
+
"strip-sourcemap-loader": "0.0.1",
|
|
41
|
+
"webpack": "^5.73.0",
|
|
42
|
+
"webpack-cli": "^4.10.0",
|
|
43
|
+
"webpack-notifier": "^1.6.0"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"browserify-fs": "^1.0.0",
|
|
47
|
+
"buffer": "^6.0.3",
|
|
48
|
+
"crypto-browserify": "^3.12.0",
|
|
49
|
+
"crypto-js": "^4.1.1",
|
|
50
|
+
"file-loader": "^6.2.0",
|
|
51
|
+
"filer": "^1.4.1",
|
|
52
|
+
"fs-web": "^1.0.1",
|
|
53
|
+
"intl": "^1.0.1",
|
|
54
|
+
"intl-messageformat": "^1.2.0",
|
|
55
|
+
"jszip": "^2.5.0",
|
|
56
|
+
"path-browserify": "^1.0.1",
|
|
57
|
+
"snapsvg": "^0.3.0",
|
|
58
|
+
"sql.js": "^1.6.2",
|
|
59
|
+
"stream-browserify": "^3.0.0",
|
|
60
|
+
"util": "^0.12.4"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var WebpackNotifierPlugin = require("webpack-notifier");
|
|
2
|
+
// var { FilerWebpackPlugin } = require('filer/webpack');
|
|
3
|
+
// var fallbackConfig = require("./config-overrides");
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
resolve: {
|
|
7
|
+
fallback: {
|
|
8
|
+
path: require.resolve("path-browserify"),
|
|
9
|
+
fs: require.resolve("browserify-fs"),
|
|
10
|
+
stream: require.resolve("stream-browserify"),
|
|
11
|
+
crypto: require.resolve("crypto-browserify"),
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
devtool: "source-map",
|
|
15
|
+
entry: {
|
|
16
|
+
app: "./src/entry/app.js",
|
|
17
|
+
},
|
|
18
|
+
output: {
|
|
19
|
+
path: __dirname + "/src/build/bundles",
|
|
20
|
+
filename: "[name].bundle.js",
|
|
21
|
+
},
|
|
22
|
+
performance: {
|
|
23
|
+
hints: false,
|
|
24
|
+
},
|
|
25
|
+
watchOptions: {
|
|
26
|
+
ignored: ["node_modules", "src/build/**/*"],
|
|
27
|
+
},
|
|
28
|
+
module: {
|
|
29
|
+
rules: [
|
|
30
|
+
{
|
|
31
|
+
test: /\.wasm$/,
|
|
32
|
+
type: "javascript/auto",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
test: /\.js$/,
|
|
36
|
+
include: /node_modules/,
|
|
37
|
+
loader: "strip-sourcemap-loader",
|
|
38
|
+
// options: {
|
|
39
|
+
// // For `underscore` library, it can be `_.map map` or `_.map|map`
|
|
40
|
+
// exposes: "strip-sourcemap-loader",
|
|
41
|
+
// },
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
loader: "babel-loader",
|
|
45
|
+
exclude: /node_modules/,
|
|
46
|
+
test: /\.jsx?$/,
|
|
47
|
+
// options: {
|
|
48
|
+
// // For `underscore` library, it can be `_.map map` or `_.map|map`
|
|
49
|
+
// exposes: "babel-loader",
|
|
50
|
+
// },
|
|
51
|
+
// query: {
|
|
52
|
+
// presets: ['es2015', 'stage-3']
|
|
53
|
+
// }
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
plugins: [
|
|
58
|
+
new WebpackNotifierPlugin({
|
|
59
|
+
title: "ScratchJr",
|
|
60
|
+
alwaysNotify: true,
|
|
61
|
+
}),
|
|
62
|
+
// new FilerWebpackPlugin(),
|
|
63
|
+
],
|
|
64
|
+
};
|