Skip to content

Conversation

@WonyoungChoi
Copy link
Contributor

@WonyoungChoi WonyoungChoi commented Jun 28, 2021

context: #77

  • Download tizen engine artifacts by using ArtifactUpdater
  • Download gen_snapshot(.exe) from the android's url
  • Move the location of tizen artifacts to flutter/bin/cache/artifacts/engine
  • Remove tizen_artifacts.dart

The artifacts should be uploaded to the github releases in the following form:

  • tizen-common.zip
  • tizen-x86-debug.zip
  • tizen-arm-debug.zip
  • tizen-arm-profile.zip
  • tizen-arm-release.zip
  • tizen-arm64-debug.zip
  • tizen-arm64-profile.zip
  • tizen-arm64.release.zip

Use following two environment variables:

  • AZURE_BUILD_ID to download artifacts from the Azure pipeline's artifacts
  • TIZEN_ENGINE_BASE_URL to override the default url https://github.com/flutter-tizen/engine/releases
    AZURE_BUILD_ID takes precedence over TIZEN_ENGINE_BASE_URL

@WonyoungChoi WonyoungChoi changed the title Download engine artifacts in dart [WIP] Download engine artifacts in dart Jun 28, 2021
@WonyoungChoi WonyoungChoi marked this pull request as draft June 28, 2021 05:27
@WonyoungChoi WonyoungChoi force-pushed the cached-tizen-artifacts branch from 185bcf4 to 9ddcb5e Compare June 28, 2021 05:31
- Download tizen engine artifacts by using ArtifactUpdater
- Download gen_snapshot(.exe) from the android's url
- Move the location of tizen artifacts to `flutter/bin/cache/artifacts/engine`
- Remove tizen_artifacts.dart

The artifacts should be uploaded to the github releases in the following form:
- tizen-common.zip
- tizen-x86-debug.zip
- tizen-arm-debug.zip
- tizen-arm-profile.zip
- tizen-arm-release.zip
- tizen-arm64-debug.zip
- tizen-arm64-profile.zip
- tizen-arm64.release.zip
@WonyoungChoi WonyoungChoi force-pushed the cached-tizen-artifacts branch from 9ddcb5e to 71389e3 Compare June 28, 2021 05:33
@WonyoungChoi WonyoungChoi marked this pull request as ready for review June 28, 2021 08:01
@WonyoungChoi WonyoungChoi changed the title [WIP] Download engine artifacts in dart Download engine artifacts in dart code Jun 28, 2021
Copy link
Member

@swift-kim swift-kim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your hard work!

'/_apis/build/builds/$buildId/artifacts?artifactName=release';

final http.Response response = await http.get(Uri.parse(azureRestUrl));
if (response.statusCode == 200) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I searched for the keyword "response.statusCode" in flutter_tools and it seemed more common to use predefined constants:

Suggested change
if (response.statusCode == 200) {
if (response.statusCode == HttpStatus.ok) {

@swift-kim
Copy link
Member

@WonyoungChoi WonyoungChoi merged commit cc19719 into flutter-tizen:master Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants