Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ targets:
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 0 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

- name: Linux_android android_platform_tests_shard_2 master
recipe: packages/packages
Expand All @@ -319,6 +323,10 @@ targets:
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 1 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

- name: Linux_android android_platform_tests_shard_3 master
recipe: packages/packages
Expand All @@ -328,6 +336,10 @@ targets:
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 2 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

- name: Linux_android android_platform_tests_shard_4 master
recipe: packages/packages
Expand All @@ -337,6 +349,10 @@ targets:
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 3 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

- name: Linux_android android_platform_tests_shard_5 master
recipe: packages/packages
Expand All @@ -346,6 +362,10 @@ targets:
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 4 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

- name: Linux_android android_platform_tests_shard_6 master
recipe: packages/packages
Expand All @@ -355,6 +375,10 @@ targets:
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 5 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

- name: Linux_android android_platform_tests_shard_1 stable
recipe: packages/packages
Expand All @@ -365,6 +389,10 @@ targets:
channel: stable
version_file: flutter_stable.version
package_sharding: "--shardIndex 0 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

- name: Linux_android android_platform_tests_shard_2 stable
recipe: packages/packages
Expand All @@ -375,6 +403,10 @@ targets:
channel: stable
version_file: flutter_stable.version
package_sharding: "--shardIndex 1 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

- name: Linux_android android_platform_tests_shard_3 stable
recipe: packages/packages
Expand All @@ -385,6 +417,10 @@ targets:
channel: stable
version_file: flutter_stable.version
package_sharding: "--shardIndex 2 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

- name: Linux_android android_platform_tests_shard_4 stable
recipe: packages/packages
Expand All @@ -395,6 +431,10 @@ targets:
channel: stable
version_file: flutter_stable.version
package_sharding: "--shardIndex 3 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

- name: Linux_android android_platform_tests_shard_5 stable
recipe: packages/packages
Expand All @@ -405,6 +445,10 @@ targets:
channel: stable
version_file: flutter_stable.version
package_sharding: "--shardIndex 4 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

- name: Linux_android android_platform_tests_shard_6 stable
recipe: packages/packages
Expand All @@ -415,6 +459,10 @@ targets:
channel: stable
version_file: flutter_stable.version
package_sharding: "--shardIndex 5 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
]

### Web tasks ###
- name: Linux_web web_build_all_packages master
Expand Down
15 changes: 6 additions & 9 deletions .ci/targets/android_platform_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@ tasks:
- name: native unit tests
script: script/tool_runner.sh
args: ["native-test", "--android", "--no-integration", "--exclude=script/configs/exclude_native_unit_android.yaml"]
# TODO(stuartmorgan): Enable these once
# https://github.com/flutter/flutter/issues/120736 is implemented.
# See also https://github.com/flutter/flutter/issues/114373
#- name: native integration tests
# script: script/tool_runner.sh
# args: ["native-test", "--android", "--no-unit"]
#- name: drive examples
# script: script/tool_runner.sh
# args: ["drive-examples", "--android", "--exclude=script/configs/exclude_integration_android.yaml"]
- name: native integration tests
script: script/tool_runner.sh
args: ["native-test", "--android", "--no-unit"]
- name: drive examples
script: script/tool_runner.sh
args: ["drive-examples", "--android", "--exclude=script/configs/exclude_integration_android.yaml,script/configs/exclude_integration_android_emulator.yaml"]
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,33 @@ void main() {
billingClient = BillingClient((PurchasesResultWrapper _) {});
});

test('BillingClient.acknowledgePurchase', () async {
testWidgets('BillingClient.acknowledgePurchase',
(WidgetTester tester) async {
try {
await billingClient.acknowledgePurchase('purchaseToken');
} on MissingPluginException {
fail('Method channel is not setup correctly');
}
});

test('BillingClient.consumeAsync', () async {
testWidgets('BillingClient.consumeAsync', (WidgetTester tester) async {
try {
await billingClient.consumeAsync('purchaseToken');
} on MissingPluginException {
fail('Method channel is not setup correctly');
}
});

test('BillingClient.endConnection', () async {
testWidgets('BillingClient.endConnection', (WidgetTester tester) async {
try {
await billingClient.endConnection();
} on MissingPluginException {
fail('Method channel is not setup correctly');
}
});

test('BillingClient.isFeatureSupported', () async {
testWidgets('BillingClient.isFeatureSupported',
(WidgetTester tester) async {
try {
await billingClient
.isFeatureSupported(BillingClientFeature.productDetails);
Expand All @@ -63,15 +65,15 @@ void main() {
}
});

test('BillingClient.isReady', () async {
testWidgets('BillingClient.isReady', (WidgetTester tester) async {
try {
await billingClient.isReady();
} on MissingPluginException {
fail('Method channel is not setup correctly');
}
});

test('BillingClient.launchBillingFlow', () async {
testWidgets('BillingClient.launchBillingFlow', (WidgetTester tester) async {
try {
await billingClient.launchBillingFlow(product: 'product');
} on MissingPluginException {
Expand All @@ -84,7 +86,8 @@ void main() {
}
});

test('BillingClient.queryProductDetails', () async {
testWidgets('BillingClient.queryProductDetails',
(WidgetTester tester) async {
try {
await billingClient
.queryProductDetails(productList: <ProductWrapper>[]);
Expand All @@ -99,23 +102,24 @@ void main() {
}
});

test('BillingClient.queryPurchaseHistory', () async {
testWidgets('BillingClient.queryPurchaseHistory',
(WidgetTester tester) async {
try {
await billingClient.queryPurchaseHistory(ProductType.inapp);
} on MissingPluginException {
fail('Method channel is not setup correctly');
}
});

test('BillingClient.queryPurchases', () async {
testWidgets('BillingClient.queryPurchases', (WidgetTester tester) async {
try {
await billingClient.queryPurchases(ProductType.inapp);
} on MissingPluginException {
fail('Method channel is not setup correctly');
}
});

test('BillingClient.startConnection', () async {
testWidgets('BillingClient.startConnection', (WidgetTester tester) async {
try {
await billingClient.startConnection(
onBillingServiceDisconnected: () {});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT

* Fixes the example app to be debuggable on Android.
* Deletes deprecated splash screen meta-data element.

## 2.2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.sharedpreferencesexample">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
8 changes: 8 additions & 0 deletions script/configs/exclude_integration_android_emulator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Hangs due to permission issue, see https://github.com/flutter/flutter/issues/130987
# TODO(stuartmorgan): Remove once the permission issue is addressed.
- camera/camera
- camera_android
- camera_android_camerax
# Frequent flaky failures, see https://github.com/flutter/flutter/issues/130986
# TODO(stuartmorgan): Remove once the flake is fixed.
- google_maps_flutter_android