Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
1b73a35f
Unverified
Commit
1b73a35f
authored
Oct 02, 2021
by
Littlegnal
Committed by
GitHub
Oct 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change project.buildDir in standalone subprojects property (#91030)
parent
23cea267
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
147 additions
and
0 deletions
+147
-0
build.gradle
dev/benchmarks/complex_layout/android/build.gradle
+2
-0
build.gradle
dev/benchmarks/macrobenchmarks/android/build.gradle
+2
-0
build.gradle
dev/benchmarks/microbenchmarks/android/build.gradle
+2
-0
build.gradle
dev/benchmarks/platform_views_layout/android/build.gradle
+2
-0
build.gradle
...form_views_layout_hybrid_composition/android/build.gradle
+2
-0
build.gradle
dev/benchmarks/test_apps/stocks/android/build.gradle
+2
-0
build.gradle
...ion_tests/abstract_method_smoke_test/android/build.gradle
+2
-0
build.gradle
...ests/android_embedding_v2_smoke_test/android/build.gradle
+2
-0
build.gradle
...tion_tests/android_semantics_testing/android/build.gradle
+2
-0
build.gradle
dev/integration_tests/android_views/android/build.gradle
+2
-0
build.gradle
dev/integration_tests/channels/android/build.gradle
+2
-0
build.gradle
dev/integration_tests/external_ui/android/build.gradle
+2
-0
build.gradle
dev/integration_tests/flavors/android/build.gradle
+2
-0
build.gradle
dev/integration_tests/flutter_gallery/android/build.gradle
+2
-0
build.gradle
...ion_tests/gradle_deprecated_settings/android/build.gradle
+2
-0
build.gradle
...tegration_tests/hybrid_android_views/android/build.gradle
+2
-0
build.gradle
dev/integration_tests/non_nullable/android/build.gradle
+2
-0
build.gradle
...tegration_tests/platform_interaction/android/build.gradle
+2
-0
build.gradle
...integration_tests/release_smoke_test/android/build.gradle
+2
-0
build.gradle
dev/integration_tests/ui/android/build.gradle
+2
-0
build.gradle
dev/manual_tests/android/build.gradle
+2
-0
build.gradle
examples/flutter_view/android/build.gradle
+2
-0
build.gradle
examples/hello_world/android/build.gradle
+2
-0
build.gradle
examples/image_list/android/build.gradle
+2
-0
build.gradle
examples/layers/android/build.gradle
+2
-0
build.gradle
examples/platform_channel/android/build.gradle
+2
-0
build.gradle
examples/platform_view/android/build.gradle
+2
-0
build.gradle
...tools/templates/app_shared/android-java.tmpl/build.gradle
+2
-0
build.gradle
...ols/templates/app_shared/android-kotlin.tmpl/build.gradle
+2
-0
flutter_build_android_app_project_builddir_test.dart
...hard/flutter_build_android_app_project_builddir_test.dart
+85
-0
deferred_components_project.dart
...egration.shard/test_data/deferred_components_project.dart
+2
-0
build.gradle
packages/integration_test/example/android/build.gradle
+2
-0
No files found.
dev/benchmarks/complex_layout/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/benchmarks/macrobenchmarks/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/benchmarks/microbenchmarks/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/benchmarks/platform_views_layout/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/benchmarks/platform_views_layout_hybrid_composition/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/benchmarks/test_apps/stocks/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/abstract_method_smoke_test/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/android_embedding_v2_smoke_test/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/android_semantics_testing/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/android_views/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/channels/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/external_ui/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/flavors/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/flutter_gallery/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/gradle_deprecated_settings/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/hybrid_android_views/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/non_nullable/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/platform_interaction/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/release_smoke_test/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/integration_tests/ui/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
dev/manual_tests/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
examples/flutter_view/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
examples/hello_world/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
examples/image_list/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
examples/layers/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
examples/platform_channel/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
examples/platform_view/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
packages/flutter_tools/templates/app_shared/android-java.tmpl/build.gradle
View file @
1b73a35f
...
...
@@ -19,6 +19,8 @@ allprojects {
rootProject
.
buildDir
=
'../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
}
...
...
packages/flutter_tools/templates/app_shared/android-kotlin.tmpl/build.gradle
View file @
1b73a35f
...
...
@@ -21,6 +21,8 @@ allprojects {
rootProject
.
buildDir
=
'../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
}
...
...
packages/flutter_tools/test/integration.shard/flutter_build_android_app_project_builddir_test.dart
0 → 100644
View file @
1b73a35f
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'package:file_testing/file_testing.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'../src/common.dart'
;
import
'test_utils.dart'
;
// Test the android/app/build directory not be created unexpectedly after
// `flutter build` commands, see https://github.com/flutter/flutter/issues/91018.
//
// The easiest way to reproduce this issue is to create a plugin project, then run
// `flutter build` command inside the `example` directory, so we create a plugin
// project in the test.
void
main
(
)
{
Directory
tempDir
;
String
flutterBin
;
Directory
exampleAppDir
;
setUp
(()
async
{
tempDir
=
createResolvedTempDirectorySync
(
'flutter_plugin_test.'
);
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
,
);
exampleAppDir
=
tempDir
.
childDirectory
(
'aaa'
).
childDirectory
(
'example'
);
processManager
.
runSync
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'create'
,
'--template=plugin'
,
'--platforms=android'
,
'aaa'
,
],
workingDirectory:
tempDir
.
path
);
});
tearDown
(()
async
{
tryToDelete
(
tempDir
);
});
void
_checkBuildDir
()
{
// The android/app/build directory should not exists
final
Directory
appBuildDir
=
fileSystem
.
directory
(
fileSystem
.
path
.
join
(
exampleAppDir
.
path
,
'android'
,
'app'
,
'build'
,
));
expect
(
appBuildDir
,
isNot
(
exists
));
}
test
(
'android/app/build should not exists after flutter build apk'
,
()
async
{
processManager
.
runSync
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'build'
,
'apk'
,
'--target-platform=android-arm'
,
],
workingDirectory:
exampleAppDir
.
path
);
_checkBuildDir
();
},
);
test
(
'android/app/build should not exists after flutter build appbundle'
,
()
async
{
processManager
.
runSync
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'build'
,
'appbundle'
,
'--target-platform=android-arm'
,
],
workingDirectory:
exampleAppDir
.
path
);
_checkBuildDir
();
},
);
}
packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart
View file @
1b73a35f
...
...
@@ -131,6 +131,8 @@ class BasicDeferredComponentsConfig extends DeferredComponentsConfig {
rootProject.buildDir = '
../
build
'
subprojects {
project.buildDir = "
${rootProject.buildDir}
/
${project.name}
"
}
subprojects {
project.evaluationDependsOn('
:
app
')
}
...
...
packages/integration_test/example/android/build.gradle
View file @
1b73a35f
...
...
@@ -34,6 +34,8 @@ rootProject.buildDir = '../build'
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
}
subprojects
{
project
.
evaluationDependsOn
(
':app'
)
dependencyLocking
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment