mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2025-07-04 09:00:57 -04:00
Improve Analytics setup documentation
Added instructions to the README for how to get the google services configuration files for analytics. Removed (and ignored in future) the empty config files. Note: empty folders are ignored in git, so added an empty file `.exist` to the android folder so that it will be there as a place to hold the actual google services file. Finally added the xCode scheme for the app that you need for newer versions of xCode.
This commit is contained in:
parent
09fbe4cfed
commit
7f1f966984
6 changed files with 90 additions and 80 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -29,3 +29,5 @@
|
||||||
/android/ScratchJr/.idea/caches
|
/android/ScratchJr/.idea/caches
|
||||||
/android/ScratchJr/.idea/modules.xml
|
/android/ScratchJr/.idea/modules.xml
|
||||||
ios/Pods
|
ios/Pods
|
||||||
|
google-services.json
|
||||||
|
GoogleService-Info.plist
|
||||||
|
|
12
README.md
12
README.md
|
@ -3,12 +3,12 @@ This is the official git repository hosting the source code for the
|
||||||
[ScratchJr](http://scratchjr.org/) project.
|
[ScratchJr](http://scratchjr.org/) project.
|
||||||
|
|
||||||
ScratchJr can be built both for iOS and Android.
|
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
|
Platform | Status
|
||||||
-------- | -------------
|
-------- | -------------
|
||||||
iOS | Released in App Store
|
iOS | Released in App Store
|
||||||
Android | Released in Google Play and Amazon store
|
Android | Released in Google Play
|
||||||
|
|
||||||
## Release Schedule
|
## Release Schedule
|
||||||
|
|
||||||
|
@ -50,6 +50,14 @@ Regardless of whether you are doing iOS development or Android development, you
|
||||||
5. Run <tt>brew install imagemagick</tt> to install commandline `magick`
|
5. Run <tt>brew install imagemagick</tt> to install commandline `magick`
|
||||||
6. In the top level of the scratchjr repo directory, install npm dependencies for bundling the JavaScript: <tt>npm install</tt>
|
6. In the top level of the scratchjr repo directory, install npm dependencies for bundling the JavaScript: <tt>npm install</tt>
|
||||||
|
|
||||||
|
### 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
|
### iOS
|
||||||
|
|
||||||
1. To build the iOS version, you need to have a Mac with XCode
|
1. To build the iOS version, you need to have a Mac with XCode
|
||||||
|
|
0
editions/free/android-resources/.exist
Normal file
0
editions/free/android-resources/.exist
Normal file
|
@ -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"
|
|
||||||
}
|
|
|
@ -1,38 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>CLIENT_ID</key>
|
|
||||||
<string></string>
|
|
||||||
<key>REVERSED_CLIENT_ID</key>
|
|
||||||
<string></string>
|
|
||||||
<key>ANDROID_CLIENT_ID</key>
|
|
||||||
<string></string>
|
|
||||||
<key>API_KEY</key>
|
|
||||||
<string></string>
|
|
||||||
<key>GCM_SENDER_ID</key>
|
|
||||||
<string></string>
|
|
||||||
<key>PLIST_VERSION</key>
|
|
||||||
<string>1</string>
|
|
||||||
<key>BUNDLE_ID</key>
|
|
||||||
<string></string>
|
|
||||||
<key>PROJECT_ID</key>
|
|
||||||
<string></string>
|
|
||||||
<key>STORAGE_BUCKET</key>
|
|
||||||
<string></string>
|
|
||||||
<key>IS_ADS_ENABLED</key>
|
|
||||||
<false/>
|
|
||||||
<key>IS_ANALYTICS_ENABLED</key>
|
|
||||||
<true/>
|
|
||||||
<key>IS_APPINVITE_ENABLED</key>
|
|
||||||
<true/>
|
|
||||||
<key>IS_GCM_ENABLED</key>
|
|
||||||
<true/>
|
|
||||||
<key>IS_SIGNIN_ENABLED</key>
|
|
||||||
<true/>
|
|
||||||
<key>GOOGLE_APP_ID</key>
|
|
||||||
<string></string>
|
|
||||||
<key>DATABASE_URL</key>
|
|
||||||
<string></string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
|
@ -0,0 +1,78 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "1130"
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "D92D0F861C33381B00C573AD"
|
||||||
|
BuildableName = "ScratchJr Free.app"
|
||||||
|
BlueprintName = "ScratchJr Free"
|
||||||
|
ReferencedContainer = "container:ScratchJr.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||||
|
<Testables>
|
||||||
|
</Testables>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
debugServiceExtension = "internal"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "D92D0F861C33381B00C573AD"
|
||||||
|
BuildableName = "ScratchJr Free.app"
|
||||||
|
BlueprintName = "ScratchJr Free"
|
||||||
|
ReferencedContainer = "container:ScratchJr.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "D92D0F861C33381B00C573AD"
|
||||||
|
BuildableName = "ScratchJr Free.app"
|
||||||
|
BlueprintName = "ScratchJr Free"
|
||||||
|
ReferencedContainer = "container:ScratchJr.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
Loading…
Add table
Add a link
Reference in a new issue