typo fix on the FLUTTER_STORAGE_BASE_URL usage (#56685)
This commit is contained in:
@@ -58,7 +58,7 @@ task printEngineMavenUrl() {
|
||||
gradlewExecutable,
|
||||
<String>['printEngineMavenUrl', '-q'],
|
||||
environment: <String, String>{
|
||||
'FLUTTER_STORAGE_BASE_URL': 'my.special.proxy',
|
||||
'FLUTTER_STORAGE_BASE_URL': 'https://my.special.proxy',
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -53,12 +53,12 @@ void configureProject(Project project, String outputDir) {
|
||||
"See: https://github.com/flutter/flutter/issues/40866")
|
||||
}
|
||||
|
||||
String storageUrl = System.getenv('FLUTTER_STORAGE_BASE_URL') ?: "storage.googleapis.com"
|
||||
String storageUrl = System.getenv('FLUTTER_STORAGE_BASE_URL') ?: "https://storage.googleapis.com"
|
||||
// This is a Flutter plugin project. Plugin projects don't apply the Flutter Gradle plugin,
|
||||
// as a result, add the dependency on the embedding.
|
||||
project.repositories {
|
||||
maven {
|
||||
url "https://$storageUrl/download.flutter.io"
|
||||
url "$storageUrl/download.flutter.io"
|
||||
}
|
||||
}
|
||||
String engineVersion = Paths.get(getFlutterRoot(project), "bin", "internal", "engine.version")
|
||||
|
||||
@@ -41,7 +41,7 @@ android {
|
||||
apply plugin: FlutterPlugin
|
||||
|
||||
class FlutterPlugin implements Plugin<Project> {
|
||||
private static final String DEFAULT_MAVEN_HOST = "storage.googleapis.com";
|
||||
private static final String DEFAULT_MAVEN_HOST = "https://storage.googleapis.com";
|
||||
|
||||
// The platforms that can be passed to the `--Ptarget-platform` flag.
|
||||
private static final String PLATFORM_ARM32 = "android-arm";
|
||||
@@ -203,7 +203,7 @@ class FlutterPlugin implements Plugin<Project> {
|
||||
String hostedRepository = System.env.FLUTTER_STORAGE_BASE_URL ?: DEFAULT_MAVEN_HOST
|
||||
String repository = useLocalEngine()
|
||||
? project.property('local-engine-repo')
|
||||
: "https://$hostedRepository/download.flutter.io"
|
||||
: "$hostedRepository/download.flutter.io"
|
||||
project.rootProject.allprojects {
|
||||
repositories {
|
||||
maven {
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
|
||||
import java.nio.file.Paths
|
||||
|
||||
String storageUrl = System.getenv('FLUTTER_STORAGE_BASE_URL') ?: "storage.googleapis.com"
|
||||
String storageUrl = System.getenv('FLUTTER_STORAGE_BASE_URL') ?: "https://storage.googleapis.com"
|
||||
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
maven {
|
||||
url "https://$storageUrl/download.flutter.io"
|
||||
url "$storageUrl/download.flutter.io"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -664,13 +664,13 @@ void printHowToConsumeAar({
|
||||
1. Open ${fileSystem.path.join('<host>', 'app', 'build.gradle')}
|
||||
2. Ensure you have the repositories configured, otherwise add them:
|
||||
|
||||
String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "storage.googleapis.com"
|
||||
String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "https://storage.googleapis.com"
|
||||
repositories {
|
||||
maven {
|
||||
url '${repoDirectory.path}'
|
||||
}
|
||||
maven {
|
||||
url 'https://\$storageUrl/download.flutter.io'
|
||||
url '\$storageUrl/download.flutter.io'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2324,13 +2324,13 @@ plugin1=${plugin1.path}
|
||||
' 1. Open <host>/app/build.gradle\n'
|
||||
' 2. Ensure you have the repositories configured, otherwise add them:\n'
|
||||
'\n'
|
||||
' String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "storage.googleapis.com"\n'
|
||||
' String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "https://storage.googleapis.com"\n'
|
||||
' repositories {\n'
|
||||
' maven {\n'
|
||||
" url 'build/'\n"
|
||||
' }\n'
|
||||
' maven {\n'
|
||||
" url 'https://\$storageUrl/download.flutter.io'\n"
|
||||
" url '\$storageUrl/download.flutter.io'\n"
|
||||
' }\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
@@ -2375,13 +2375,13 @@ plugin1=${plugin1.path}
|
||||
' 1. Open <host>/app/build.gradle\n'
|
||||
' 2. Ensure you have the repositories configured, otherwise add them:\n'
|
||||
'\n'
|
||||
' String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "storage.googleapis.com"\n'
|
||||
' String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "https://storage.googleapis.com"\n'
|
||||
' repositories {\n'
|
||||
' maven {\n'
|
||||
" url 'build/'\n"
|
||||
' }\n'
|
||||
' maven {\n'
|
||||
" url 'https://\$storageUrl/download.flutter.io'\n"
|
||||
" url '\$storageUrl/download.flutter.io'\n"
|
||||
' }\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
@@ -2413,13 +2413,13 @@ plugin1=${plugin1.path}
|
||||
' 1. Open <host>/app/build.gradle\n'
|
||||
' 2. Ensure you have the repositories configured, otherwise add them:\n'
|
||||
'\n'
|
||||
' String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "storage.googleapis.com"\n'
|
||||
' String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "https://storage.googleapis.com"\n'
|
||||
' repositories {\n'
|
||||
' maven {\n'
|
||||
" url 'build/'\n"
|
||||
' }\n'
|
||||
' maven {\n'
|
||||
" url 'https://\$storageUrl/download.flutter.io'\n"
|
||||
" url '\$storageUrl/download.flutter.io'\n"
|
||||
' }\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
@@ -2452,13 +2452,13 @@ plugin1=${plugin1.path}
|
||||
' 1. Open <host>/app/build.gradle\n'
|
||||
' 2. Ensure you have the repositories configured, otherwise add them:\n'
|
||||
'\n'
|
||||
' String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "storage.googleapis.com"\n'
|
||||
' String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "https://storage.googleapis.com"\n'
|
||||
' repositories {\n'
|
||||
' maven {\n'
|
||||
" url 'build/'\n"
|
||||
' }\n'
|
||||
' maven {\n'
|
||||
" url 'https://\$storageUrl/download.flutter.io'\n"
|
||||
" url '\$storageUrl/download.flutter.io'\n"
|
||||
' }\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
|
||||
Reference in New Issue
Block a user