Remove files that are unnecessary in a plugin (#89445)
This commit is contained in:
parent
0c5431d99c
commit
50b0037803
@ -1,3 +0,0 @@
|
||||
org.gradle.jvmargs=-Xmx1536M
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
@ -1,5 +0,0 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
|
@ -727,25 +727,6 @@ void main() {
|
||||
);
|
||||
});
|
||||
|
||||
testUsingContext('androidx is used by default in a plugin project', () async {
|
||||
Cache.flutterRoot = '../..';
|
||||
|
||||
final CreateCommand command = CreateCommand();
|
||||
final CommandRunner<void> runner = createTestCommandRunner(command);
|
||||
|
||||
await runner.run(<String>['create', '--no-pub', '--template=plugin', '--platform', 'android', projectDir.path]);
|
||||
|
||||
void expectExists(String relPath) {
|
||||
expect(globals.fs.isFileSync('${projectDir.path}/$relPath'), true);
|
||||
}
|
||||
|
||||
expectExists('android/gradle.properties');
|
||||
|
||||
final String actualContents = await globals.fs.file('${projectDir.path}/android/gradle.properties').readAsString();
|
||||
|
||||
expect(actualContents.contains('useAndroidX'), true);
|
||||
});
|
||||
|
||||
testUsingContext('creating a new project should create v2 embedding and never show an Android v1 deprecation warning', () async {
|
||||
Cache.flutterRoot = '../..';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user