Skip to content

Commit

Permalink
commit test actions publish pub
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabia committed Jan 16, 2022
1 parent c03ee88 commit 7a9574f
Show file tree
Hide file tree
Showing 16 changed files with 80 additions and 49 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dart_pub_flutter_gl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ jobs:
relativePath: flutter_gl
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}
format: true
flutter: true
44 changes: 44 additions & 0 deletions .github/workflows/dart_pub_flutter_gl_web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This is a basic workflow to help you get started with Actions

name: Publish flutter_gl_web package to pub.dev

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
- name: '>> Dart package <<'
uses: k-paxian/dart-package-publisher@master
with:
relativePath: flutter_gl_web
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}
format: true
flutter: true
11 changes: 2 additions & 9 deletions flutter_gl_macos/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
# flutter_gl_macos

A new flutter plugin project.
macOS platform implementation of flutter_gl, cross-platform call OpenGL API by Dart through dart:ffi. Provides OpenGL with Texture Widget on Flutter.

## Getting Started

This project is a starting point for a Flutter
[plug-in package](https://flutter.dev/developing-packages/),
a specialized package that includes platform-specific implementation code for
Android and/or iOS.
[flutter_gl](https://github.com/wasabia/flutter_gl)

For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

2 changes: 1 addition & 1 deletion flutter_gl_macos/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_gl_macos
description: macOS platform implementation for flutter_gl
description: macOS platform implementation of flutter_gl, cross-platform call OpenGL API by Dart through dart:ffi. Provides OpenGL with Texture Widget on Flutter.
version: 0.0.2
homepage: https://github.com/wasabia/flutter_gl

Expand Down
14 changes: 3 additions & 11 deletions flutter_gl_platform_interface/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
# three3d_render
# flutter_gl_platform_interface

A new flutter plugin project.
platform interface implementation of flutter_gl, cross-platform call OpenGL API by Dart through dart:ffi. Provides OpenGL with Texture Widget on Flutter.

## Getting Started

This project is a starting point for a Flutter
[plug-in package](https://flutter.dev/developing-packages/),
a specialized package that includes platform-specific implementation code for
Android and/or iOS.

For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
[flutter_gl](https://github.com/wasabia/flutter_gl)

6 changes: 3 additions & 3 deletions flutter_gl_web/.dart_tool/package_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
},
{
"name": "material_color_utilities",
"rootUri": "file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.2",
"rootUri": "file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.3",
"packageUri": "lib/",
"languageVersion": "2.13"
},
Expand Down Expand Up @@ -164,7 +164,7 @@
"languageVersion": "2.12"
}
],
"generated": "2022-01-16T05:52:40.325056Z",
"generated": "2022-01-16T08:26:36.789823Z",
"generator": "pub",
"generatorVersion": "2.16.0-80.1.beta"
"generatorVersion": "2.16.0-134.1.beta"
}
4 changes: 2 additions & 2 deletions flutter_gl_web/.dart_tool/package_config_subset
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11/
file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11/lib/
material_color_utilities
2.13
file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.2/
file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.2/lib/
file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.3/
file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.3/lib/
meta
2.12
file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0/
Expand Down
2 changes: 1 addition & 1 deletion flutter_gl_web/.dart_tool/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.9.0-0.1.pre
2.10.0-0.1.pre
4 changes: 2 additions & 2 deletions flutter_gl_web/.packages
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2022-01-16 13:52:40.295043.
# Generated by pub on 2022-01-16 16:26:36.770213.
async:file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib/
boolean_selector:file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
characters:file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/lib/
Expand All @@ -17,7 +17,7 @@ flutter_test:file:///Users/zhaolei/development/flutter/packages/flutter_test/lib
flutter_web_plugins:file:///Users/zhaolei/development/flutter/packages/flutter_web_plugins/lib/
js:file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/js-0.6.3/lib/
matcher:file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11/lib/
material_color_utilities:file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.2/lib/
material_color_utilities:file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.3/lib/
meta:file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0/lib/
path:file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/path-1.8.0/lib/
plugin_platform_interface:file:///Users/zhaolei/.pub-cache/hosted/pub.dartlang.org/plugin_platform_interface-2.1.2/lib/
Expand Down
3 changes: 3 additions & 0 deletions flutter_gl_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.0.4

* TODO: Describe initial release.
6 changes: 6 additions & 0 deletions flutter_gl_web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# flutter_gl_web

Web platform implementation of flutter_gl, cross-platform call OpenGL API by Dart through dart:ffi. Provides OpenGL with Texture Widget on Flutter.


[flutter_gl](https://github.com/wasabia/flutter_gl)
11 changes: 5 additions & 6 deletions flutter_gl_web/lib/flutter_gl_web.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Copyright 2019 The Chromium 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 'dart:async';
import 'dart:html';
import 'package:flutter/material.dart';
Expand All @@ -10,7 +6,7 @@ import 'package:flutter_gl_platform_interface/flutter_gl_platform_interface.dart

import 'package:flutter_web_plugins/flutter_web_plugins.dart';


/// FlutterGl web implementation
class FlutterGlPlugin extends FlutterGlPlatform {


Expand All @@ -27,7 +23,7 @@ class FlutterGlPlugin extends FlutterGlPlatform {
}



/// initialize plugin
Future<Map<String, dynamic>> initialize({Map<String, dynamic>? options}) async {
_divId = DateTime.now().microsecondsSinceEpoch;
this.textureId = _divId;
Expand All @@ -42,16 +38,19 @@ class FlutterGlPlugin extends FlutterGlPlatform {
return _resp;
}

/// getEgl no meaning in web
Future<List<int>> getEgl(int textureId) async {
// web no need do something
return [];
}

/// updateTexture no meaning in web
updateTexture(sourceTexture) async {
// web no need do something
return Future.sync(() => true);
}

/// dispose no meaning in web?
dispose() {
// on web what should dispose ???
}
Expand Down
2 changes: 1 addition & 1 deletion flutter_gl_web/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ packages:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
version: "0.1.3"
meta:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions flutter_gl_web/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: flutter_gl_web
description: Web platform implementation of flutter_gl
description: Web platform implementation of flutter_gl, cross-platform call OpenGL API by Dart through dart:ffi. Provides OpenGL with Texture Widget on Flutter.
homepage: https://github.com/wasabia/flutter_gl
version: 0.0.3
version: 0.0.4

flutter:
plugin:
Expand Down
12 changes: 2 additions & 10 deletions flutter_gl_windows/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
# flutter_gl_windows

A new flutter plugin project.
Windows platform implementation of flutter_gl, cross-platform call OpenGL API by Dart through dart:ffi. Provides OpenGL with Texture Widget on Flutter.

## Getting Started

This project is a starting point for a Flutter
[plug-in package](https://flutter.dev/developing-packages/),
a specialized package that includes platform-specific implementation code for
Android and/or iOS.

For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
[flutter_gl](https://github.com/wasabia/flutter_gl)

2 changes: 1 addition & 1 deletion flutter_gl_windows/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_gl_windows
description: Windows platform implementation for flutter_gl
description: Windows platform implementation of flutter_gl, cross-platform call OpenGL API by Dart through dart:ffi. Provides OpenGL with Texture Widget on Flutter.
version: 0.0.1
homepage: https://github.com/wasabia/flutter_gl

Expand Down

0 comments on commit 7a9574f

Please sign in to comment.