diff --git a/.gitignore b/.gitignore index 7b408076..49cfcb58 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,5 @@ /android/ScratchJr/.idea/caches /android/ScratchJr/.idea/modules.xml ios/Pods +google-services.json +GoogleService-Info.plist diff --git a/README.md b/README.md index fbe8a2e7..a11b4b38 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,12 @@ This is the official git repository hosting the source code for the [ScratchJr](http://scratchjr.org/) project. ScratchJr can be built both for iOS and Android. -A pure-web version or Chrome-app version is planned to follow at some point in the future. +A pure-web version is planned to follow at some point in the future. Platform | Status -------- | ------------- iOS | Released in App Store -Android | Released in Google Play and Amazon store +Android | Released in Google Play ## Release Schedule @@ -50,6 +50,14 @@ Regardless of whether you are doing iOS development or Android development, you 5. Run brew install imagemagick to install commandline `magick` 6. In the top level of the scratchjr repo directory, install npm dependencies for bundling the JavaScript: npm install +### Analytics +ScratchJr uses the Firebase SDK to record analytics for the app. Scratch Team developers should look for +the configuration files in the Scratch Devs Vault. If you're not on the Scratch Team, then you'll need to +set up your own [app analytics](https://firebase.google.com/products/analytics) with Google Firebase. It's free. + +1. Place the `google-services.json` file in `editions/free/android-resources` +2. Place the `GoogleService-Info.plist` file in `editions/free/ios-resources` + ### iOS 1. To build the iOS version, you need to have a Mac with XCode diff --git a/editions/free/android-resources/.exist b/editions/free/android-resources/.exist new file mode 100644 index 00000000..e69de29b diff --git a/editions/free/android-resources/google-services.json b/editions/free/android-resources/google-services.json deleted file mode 100644 index af0b7bf9..00000000 --- a/editions/free/android-resources/google-services.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "project_info": { - "project_number": "", - "firebase_url": "", - "project_id": "", - "storage_bucket": "" - }, - "client": [ - { - "client_info": { - "mobilesdk_app_id": "", - "android_client_info": { - "package_name": "" - } - }, - "oauth_client": [ - { - "client_id": "", - "client_type": 3 - } - ], - "api_key": [ - { - "current_key": "" - } - ], - "services": { - "appinvite_service": { - "other_platform_oauth_client": [ - { - "client_id": "", - "client_type": 3 - } - ] - } - } - } - ], - "configuration_version": "1" -} diff --git a/editions/free/ios-resources/GoogleService-Info.plist b/editions/free/ios-resources/GoogleService-Info.plist deleted file mode 100644 index a0745545..00000000 --- a/editions/free/ios-resources/GoogleService-Info.plist +++ /dev/null @@ -1,38 +0,0 @@ - - - - - CLIENT_ID - - REVERSED_CLIENT_ID - - ANDROID_CLIENT_ID - - API_KEY - - GCM_SENDER_ID - - PLIST_VERSION - 1 - BUNDLE_ID - - PROJECT_ID - - STORAGE_BUCKET - - IS_ADS_ENABLED - - IS_ANALYTICS_ENABLED - - IS_APPINVITE_ENABLED - - IS_GCM_ENABLED - - IS_SIGNIN_ENABLED - - GOOGLE_APP_ID - - DATABASE_URL - - - diff --git a/ios/ScratchJr.xcodeproj/xcshareddata/xcschemes/ScratchJr Free.xcscheme b/ios/ScratchJr.xcodeproj/xcshareddata/xcschemes/ScratchJr Free.xcscheme new file mode 100644 index 00000000..1af1d0d6 --- /dev/null +++ b/ios/ScratchJr.xcodeproj/xcshareddata/xcschemes/ScratchJr Free.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +