Unverified Commit 12a0e475 authored by Emmanuel Garcia's avatar Emmanuel Garcia Committed by GitHub

Make paths absolute in settings.gradle (#33228)

parent 1bd85dd6
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
include ':app' include ':app'
setBinding(new Binding([gradle: this])) setBinding(new Binding([gradle: this]))
evaluate(new File('../.android/include_flutter.groovy')) evaluate(new File(settingsDir.parentFile, '.android/include_flutter.groovy'))
...@@ -3,4 +3,4 @@ include ':app' ...@@ -3,4 +3,4 @@ include ':app'
rootProject.name = 'android_generated' rootProject.name = 'android_generated'
setBinding(new Binding([gradle: this])) setBinding(new Binding([gradle: this]))
evaluate(new File('include_flutter.groovy')) evaluate(new File(settingsDir, 'include_flutter.groovy'))
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
rootProject.name = 'android_generated' rootProject.name = 'android_generated'
setBinding(new Binding([gradle: this])) setBinding(new Binding([gradle: this]))
evaluate(new File('include_flutter.groovy')) evaluate(new File(settingsDir, 'include_flutter.groovy'))
...@@ -126,7 +126,7 @@ void main() { ...@@ -126,7 +126,7 @@ void main() {
expectExists(project.directory.childDirectory('.android').childDirectory('Flutter')); expectExists(project.directory.childDirectory('.android').childDirectory('Flutter'));
expect( expect(
project.directory.childDirectory('android').childFile('settings.gradle').readAsStringSync(), project.directory.childDirectory('android').childFile('settings.gradle').readAsStringSync(),
contains('../.android/include_flutter.groovy'), contains('new File(settingsDir.parentFile, \'.android/include_flutter.groovy\')'),
); );
}); });
testInMemory('can be redone after deletion', () async { testInMemory('can be redone after deletion', () async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment