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
1587ee01
Unverified
Commit
1587ee01
authored
Oct 06, 2022
by
Zachary Anderson
Committed by
GitHub
Oct 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Upgrade targetSdkVersion and compileSdkVersion to 33 (#112936)" (#113064)
This reverts commit
f80411d8
.
parent
f80411d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
76 deletions
+2
-76
flutter.gradle
packages/flutter_tools/gradle/flutter.gradle
+2
-2
android_e2e_api_test.dart
...er_tools/test/integration.shard/android_e2e_api_test.dart
+0
-74
No files found.
packages/flutter_tools/gradle/flutter.gradle
View file @
1587ee01
...
@@ -30,13 +30,13 @@ import org.gradle.util.VersionNumber
...
@@ -30,13 +30,13 @@ import org.gradle.util.VersionNumber
/** For apps only. Provides the flutter extension used in app/build.gradle. */
/** For apps only. Provides the flutter extension used in app/build.gradle. */
class
FlutterExtension
{
class
FlutterExtension
{
/** Sets the compileSdkVersion used by default in Flutter app projects. */
/** Sets the compileSdkVersion used by default in Flutter app projects. */
static
int
compileSdkVersion
=
3
3
static
int
compileSdkVersion
=
3
1
/** Sets the minSdkVersion used by default in Flutter app projects. */
/** Sets the minSdkVersion used by default in Flutter app projects. */
static
int
minSdkVersion
=
16
static
int
minSdkVersion
=
16
/** Sets the targetSdkVersion used by default in Flutter app projects. */
/** Sets the targetSdkVersion used by default in Flutter app projects. */
static
int
targetSdkVersion
=
3
3
static
int
targetSdkVersion
=
3
1
/**
/**
* Sets the ndkVersion used by default in Flutter app projects.
* Sets the ndkVersion used by default in Flutter app projects.
...
...
packages/flutter_tools/test/integration.shard/android_e2e_api_test.dart
deleted
100644 → 0
View file @
f80411d8
// 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.
import
'package:file/file.dart'
;
import
'package:flutter_tools/src/base/io.dart'
;
import
'../src/common.dart'
;
import
'test_utils.dart'
;
void
main
(
)
{
late
Directory
tempDir
;
setUp
(()
async
{
tempDir
=
createResolvedTempDirectorySync
(
'run_test.'
);
});
tearDown
(()
async
{
tryToDelete
(
tempDir
);
});
testWithoutContext
(
'build succeeds with api 33 features'
,
()
async
{
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
'create'
,
tempDir
.
path
,
'--project-name=testapp'
,
],
workingDirectory:
tempDir
.
path
);
expect
(
result
.
exitCode
,
0
);
final
File
api33File
=
tempDir
.
childDirectory
(
'android'
)
.
childDirectory
(
'app'
)
.
childDirectory
(
'src'
)
.
childDirectory
(
'main'
)
.
childDirectory
(
'java'
)
.
childFile
(
'Android33Api.java'
);
api33File
.
createSync
(
recursive:
true
);
// AccessibilityManager.isAudioDescriptionRequested() is an API 33 feature
api33File
.
writeAsStringSync
(
'''
import android.app.Activity;
import android.view.accessibility.AccessibilityManager;
import androidx.annotation.Keep;
import io.flutter.Log;
@Keep
public final class Android33Api extends Activity {
private AccessibilityManager accessibilityManager;
public Android33Api() {
accessibilityManager = getSystemService(AccessibilityManager.class);
}
public void doSomething() {
if (accessibilityManager.isAudioDescriptionRequested()) {
Log.e("flutter", "User has requested to enable audio descriptions");
}
}
}
'''
);
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'build'
,
'apk'
,
],
workingDirectory:
tempDir
.
path
);
expect
(
result
.
exitCode
,
0
);
expect
(
result
.
stdout
.
toString
(),
contains
(
'app-release.apk'
));
});
}
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