Skip to content

Commit 4689821

Browse files
authored
Add AS Canary to dev channel (#5830)
* Add AS Canary to dev channel * generate * tests * tests * update cloud bucket
1 parent 0076139 commit 4689821

File tree

12 files changed

+26
-72
lines changed

12 files changed

+26
-72
lines changed

.github/workflows/presubmit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
version: [4.2, AF.3.1, AS.211, 2021.2]
21+
version: [AF.3.1, AS.211, 2021.2]
2222
steps:
2323
- name: checkout
2424
uses: actions/checkout@v2

docs/building.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ If necessary, install the gs_util command-line utility from
1414
To see a list of all current IntelliJ build pre-reqs:
1515

1616
```shell
17-
$ gsutil ls gs://flutter_infra/flutter/intellij/
17+
$ gsutil ls gs://flutter_infra_release/flutter/intellij/
1818
```
1919

2020
### uploading new artifacts
2121

2222
In order to update or add a new pre-req:
2323

2424
```shell
25-
$ gsutil cp <path-to-archive> gs://flutter_infra/flutter/intellij/
25+
$ gsutil cp <path-to-archive> gs://flutter_infra_release/flutter/intellij/
2626
```
2727
## The plugin tool
2828

flutter-studio/src/io/flutter/android/AndroidModuleLibraryManager.java

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -396,53 +396,6 @@ public void init42(@Nullable ProgressIndicator indicator) {
396396
}
397397
}
398398

399-
public void init41(@Nullable ProgressIndicator indicator) {
400-
boolean finished = false;
401-
try {
402-
//ProjectManagerImpl.initProject(path, this, true, null, null);
403-
Method method = ReflectionUtil
404-
.getDeclaredMethod(ProjectManagerImpl.class, "initProject", Path.class, ProjectImpl.class, boolean.class, Project.class,
405-
ProgressIndicator.class);
406-
assert (method != null);
407-
try {
408-
method.invoke(null, path, this, true, null, null);
409-
}
410-
catch (IllegalAccessException | InvocationTargetException e) {
411-
disableGradleSyncAndNotifyUser();
412-
return;
413-
}
414-
finished = true;
415-
}
416-
finally {
417-
if (!finished) {
418-
TransactionGuard.submitTransaction(this, () -> WriteAction.run(() -> {
419-
if (isDisposed() && !isDisabled.get()) {
420-
Disposer.dispose(this);
421-
}
422-
}));
423-
}
424-
}
425-
}
426-
427-
public void initPre41(@Nullable ProgressIndicator indicator) {
428-
boolean finished = false;
429-
try {
430-
registerComponents((List<IdeaPluginDescriptorImpl>)PluginManagerCore.getLoadedPlugins(), null);
431-
getStateStore().setPath(path, true, null);
432-
super.init(false, indicator);
433-
finished = true;
434-
}
435-
finally {
436-
if (!finished) {
437-
TransactionGuard.submitTransaction(this, () -> WriteAction.run(() -> {
438-
if (isDisposed() && !isDisabled.get()) {
439-
Disposer.dispose(this);
440-
}
441-
}));
442-
}
443-
}
444-
}
445-
446399
private void disableGradleSyncAndNotifyUser() {
447400
final FlutterSettings instance = FlutterSettings.getInstance();
448401
instance.setSyncingAndroidLibraries(false);
Binary file not shown.

product-matrix.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
{
22
"list": [
3-
{
4-
"channel": "stable",
5-
"comments": "IntelliJ 2020.2.3, Android Studio 4.2",
6-
"name": "Android Studio 4.2",
7-
"version": "4.2",
8-
"ideaProduct": "android-studio",
9-
"ideaVersion": "202.6987402",
10-
"baseVersion": "202.7660.26",
11-
"dartPluginVersion": "202.8070",
12-
"sinceBuild": "202.7660.26",
13-
"untilBuild": "202.*"
14-
},
153
{
164
"channel": "stable",
175
"comments": "IntelliJ 2020.3.4, Android Studio 2020.3.1",
@@ -26,7 +14,7 @@
2614
},
2715
{
2816
"channel": "stable",
29-
"comments": "IntelliJ 2021.1, Android Studio 2021.1.1 Canary 13",
17+
"comments": "IntelliJ 2021.1, Android Studio 2021.1.1 Beta",
3018
"name": "Bumblebee",
3119
"isUnitTestTarget": "true",
3220
"version": "AS.211",
@@ -46,9 +34,21 @@
4634
"ideaVersion": "212.3724.25",
4735
"baseVersion": "212.4746.92",
4836
"dartPluginVersion": "212.3724.2",
49-
"sinceBuild": "212.3724.25",
37+
"sinceBuild": "212.5457.6",
5038
"untilBuild": "212.*",
5139
"filesToSkip": ["flutter-studio/src/io/flutter/actions/FlutterNewProjectAction.java_stub"]
40+
},
41+
{
42+
"channel": "dev",
43+
"comments": "Android Studio 2021.2 Canary",
44+
"name": "Chipmunk",
45+
"version": "AS.212",
46+
"ideaProduct": "android-studio",
47+
"ideaVersion": "2021.2.1.2",
48+
"baseVersion": "212.5284.40",
49+
"dartPluginVersion": "212.5486",
50+
"sinceBuild": "212.5284.40",
51+
"untilBuild": "212.5284.40"
5252
}
5353
]
5454
}

resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<category>Custom Languages</category>
2323
<version>SNAPSHOT</version>
24-
<idea-version since-build="202.7660.26" until-build="211.7727"/>
24+
<idea-version since-build="203.6682.168" until-build="211.7727"/>
2525

2626
<depends>com.intellij.modules.platform</depends>
2727
<depends>com.intellij.modules.lang</depends>

src/io/flutter/utils/JxBrowserUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public String getSwingFileName() {
4848
}
4949

5050
public String getDistributionLink(String fileName) {
51-
return "https://storage.googleapis.com/flutter_infra/flutter/intellij/jxbrowser/" + fileName;
51+
return "https://storage.googleapis.com/flutter_infra_release/flutter/intellij/jxbrowser/" + fileName;
5252
}
5353

5454
public String getJxBrowserKey() throws FileNotFoundException {

testSrc/unit/io/flutter/editor/FlutterIconLineMarkerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public void xtestLocatesIconCtor() throws Exception {
4646
assertNotNull(element);
4747
}
4848

49-
@Test
50-
public void testLocatesCupertinoIconCtor() throws Exception {
49+
//@Test
50+
public void xtestLocatesCupertinoIconCtor() throws Exception {
5151
final PsiElement testIdentifier =
5252
setUpDartElement("main() { IconData(0xe190, fontFamily: 'CupertinoIcons'); }", "IconData", LeafPsiElement.class);
5353
final LineMarkerInfo<?> marker = new FlutterIconLineMarkerProvider().getLineMarkerInfo(testIdentifier, getSdk());

tool/plugin/lib/artifact.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Artifact {
4040

4141
class ArtifactManager {
4242
final String base =
43-
'https://storage.googleapis.com/flutter_infra/flutter/intellij';
43+
'https://storage.googleapis.com/flutter_infra_release/flutter/intellij';
4444

4545
final List<Artifact> artifacts = [];
4646

tool/plugin/lib/edit.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ void checkAndClearAppliedEditCommands() {
2929
appliedEditCommands.clear();
3030
}
3131

32+
// TODO(messick): Remove edits for AS 4.2 when confident they won't be needed again.
3233
List<EditCommand> editCommands = [
3334
EditAndroidModuleLibraryManager(),
3435
Subst(

tool/plugin/test/plugin_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ void main() {
4343
expect(
4444
specs.map((spec) => spec.ideaProduct).toList(),
4545
orderedEquals([
46-
'android-studio',
4746
'android-studio',
4847
'android-studio',
4948
'ideaIC',
49+
'android-studio',
5050
]));
5151
});
5252
});
@@ -59,10 +59,10 @@ void main() {
5959
expect(
6060
specs.map((spec) => spec.ideaProduct).toList(),
6161
orderedEquals([
62-
'android-studio',
6362
'android-studio',
6463
'android-studio',
6564
'ideaIC',
65+
'android-studio',
6666
]));
6767
});
6868
});
@@ -75,10 +75,10 @@ void main() {
7575
expect(
7676
specs.map((spec) => spec.ideaProduct).toList(),
7777
orderedEquals([
78-
'android-studio',
7978
'android-studio',
8079
'android-studio',
8180
'ideaIC',
81+
'android-studio',
8282
]));
8383
});
8484
});

0 commit comments

Comments
 (0)