From 21bb1a1eb624d7ac79029c48b895952758ad8586 Mon Sep 17 00:00:00 2001 From: chrisgarrity Date: Mon, 1 Oct 2018 13:45:15 -0400 Subject: [PATCH 1/2] Updated versions to allow building --- android/ScratchJr/.idea/misc.xml | 5 ++++- android/ScratchJr/app/build.gradle | 8 +++++--- android/ScratchJr/build.gradle | 2 +- bin/bundle-compile.sh | 2 +- editions/free/android-resources/google-services.json | 2 +- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/android/ScratchJr/.idea/misc.xml b/android/ScratchJr/.idea/misc.xml index ba7052b..cbd46bd 100644 --- a/android/ScratchJr/.idea/misc.xml +++ b/android/ScratchJr/.idea/misc.xml @@ -1,5 +1,8 @@ + + + - + diff --git a/android/ScratchJr/app/build.gradle b/android/ScratchJr/app/build.gradle index 9d0e0d2..e7bce47 100644 --- a/android/ScratchJr/app/build.gradle +++ b/android/ScratchJr/app/build.gradle @@ -1,9 +1,8 @@ apply plugin: 'com.android.application' -apply plugin: 'com.google.gms.google-services' android { compileSdkVersion 27 - buildToolsVersion "21.1.2" + buildToolsVersion "24.0.2" defaultConfig { applicationId "org.scratchjr.android" @@ -30,7 +29,8 @@ android { dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:27.1.0' - compile 'com.google.android.gms:play-services-analytics:8.3.0' + compile 'com.android.support:support-v4:27.1.0' + compile 'com.google.android.gms:play-services-analytics:15.0.0' } def appModuleRootFolder = '.' @@ -103,3 +103,5 @@ afterEvaluate { } clean.dependsOn('cleanScratchJrResources') + +apply plugin: 'com.google.gms.google-services' diff --git a/android/ScratchJr/build.gradle b/android/ScratchJr/build.gradle index c81c113..c6e0221 100644 --- a/android/ScratchJr/build.gradle +++ b/android/ScratchJr/build.gradle @@ -9,7 +9,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:2.2.1' - classpath 'com.google.gms:google-services:1.5.0-beta2' + classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/bin/bundle-compile.sh b/bin/bundle-compile.sh index 842bab0..8b24b4e 100755 --- a/bin/bundle-compile.sh +++ b/bin/bundle-compile.sh @@ -1,3 +1,3 @@ #!/bin/sh cd ..; -/usr/local/bin/node ./node_modules/webpack/bin/webpack.js +/usr/local/bin/node ./node_modules/webpack/bin/webpack.js --mode=production diff --git a/editions/free/android-resources/google-services.json b/editions/free/android-resources/google-services.json index 85a592e..2537c7a 100644 --- a/editions/free/android-resources/google-services.json +++ b/editions/free/android-resources/google-services.json @@ -1 +1 @@ -{"project_info":{"project_id":"scratchjr-1118","project_number":"162006577143","name":"ScratchJr"},"client":[{"client_info":{"mobilesdk_app_id":"1:162006577143:android:30ace9185722a94d","client_id":"android:org.scratchjr.androidfree","client_type":1,"android_client_info":{"package_name":"org.scratchjr.androidfree"}},"oauth_client":[],"api_key":[],"services":{"analytics_service":{"status":2,"analytics_property":{"tracking_id":"UA-68375411-1"}},"cloud_messaging_service":{"status":1,"apns_config":[]},"appinvite_service":{"status":1,"other_platform_oauth_client":[]},"google_signin_service":{"status":1},"ads_service":{"status":1}}}],"client_info":[],"ARTIFACT_VERSION":"1"} +{"project_info":{"project_id":"scratchjr-1118","project_number":"162006577143","name":"ScratchJr"},"client":[{"client_info":{"mobilesdk_app_id":"1:162006577143:android:30ace9185722a94d","client_id":"android:org.scratchjr.androidfree","client_type":1,"android_client_info":{"package_name":"org.scratchjr.androidfree"}},"oauth_client":[],"api_key":[{"current_key":""}],"services":{"analytics_service":{"status":2,"analytics_property":{"tracking_id":"UA-68375411-1"}},"cloud_messaging_service":{"status":1,"apns_config":[]},"appinvite_service":{"status":1,"other_platform_oauth_client":[]},"google_signin_service":{"status":1},"ads_service":{"status":1}}}],"client_info":[],"ARTIFACT_VERSION":"1"} From 1fcdff79f272a50bf2f79b212b5290f1845821c5 Mon Sep 17 00:00:00 2001 From: chrisgarrity Date: Mon, 1 Oct 2018 17:12:03 -0400 Subject: [PATCH 2/2] Remove unnecessary screen settings from manifest --- android/ScratchJr/app/src/main/AndroidManifest.xml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/android/ScratchJr/app/src/main/AndroidManifest.xml b/android/ScratchJr/app/src/main/AndroidManifest.xml index 3b5beb6..b7dec29 100644 --- a/android/ScratchJr/app/src/main/AndroidManifest.xml +++ b/android/ScratchJr/app/src/main/AndroidManifest.xml @@ -12,11 +12,7 @@ - +