Skip to content

Commit 4b14d34

Browse files
authored
[jnigen] Move stub package to its own folder (#2)
1 parent f4b022d commit 4b14d34

File tree

12 files changed

+79
-24
lines changed

12 files changed

+79
-24
lines changed

.github/workflows/test-package.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ env:
1919
jobs:
2020
# Check code formatting and static analysis on a single OS (linux)
2121
# against Dart stable.
22-
analyze:
22+
analyze_jni_gen:
2323
runs-on: ubuntu-latest
24+
defaults:
25+
run:
26+
working-directory: pkg/jni_gen
2427
strategy:
2528
fail-fast: false
2629
matrix:
@@ -40,9 +43,12 @@ jobs:
4043
run: dart analyze --fatal-infos
4144
if: always() && steps.install.outcome == 'success'
4245

43-
test:
44-
needs: analyze
46+
test_jni_gen:
47+
needs: analyze_jni_gen
4548
runs-on: ${{ matrix.os }}
49+
defaults:
50+
run:
51+
working-directory: pkg/jni_gen
4652
strategy:
4753
fail-fast: false
4854
matrix:
@@ -58,10 +64,12 @@ jobs:
5864
run: dart pub get
5965
- name: Run VM tests
6066
run: dart test --platform vm
67+
- name: Install coverage
68+
run: dart pub global activate coverage
6169
- name: Collect coverage
62-
run: ./tool/coverage.sh
70+
run: dart pub global run coverage:test_with_coverage
6371
- name: Upload coverage
6472
uses: coverallsapp/[email protected]
6573
with:
6674
github-token: ${{ secrets.GITHUB_TOKEN }}
67-
path-to-lcov: lcov.info
75+
path-to-lcov: ./jni_gen/coverage/lcov.info
File renamed without changes.

pkgs/jni_gen/AUTHORS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Below is a list of people and organizations that have contributed
2+
# to the Dart project. Names should be added to the list like so:
3+
#
4+
# Name/Organization <email address>
5+
6+
Google LLC

pkgs/jni_gen/CONTRIBUTING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# How to Contribute
2+
3+
We'd love to accept your patches and contributions to this project. There are
4+
just a few small guidelines you need to follow.
5+
6+
## Contributor License Agreement
7+
8+
Contributions to this project must be accompanied by a Contributor License
9+
Agreement. You (or your employer) retain the copyright to your contribution;
10+
this simply gives us permission to use and redistribute your contributions as
11+
part of the project. Head over to <https://cla.developers.google.com/> to see
12+
your current agreements on file or to sign a new one.
13+
14+
You generally only need to submit a CLA once, so if you've already submitted one
15+
(even if it was for a different project), you probably don't need to do it
16+
again.
17+
18+
## Code reviews
19+
20+
All submissions, including submissions by project members, require review. We
21+
use GitHub pull requests for this purpose. Consult
22+
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
23+
information on using pull requests.
24+
25+
## Community Guidelines
26+
27+
This project follows [Google's Open Source Community
28+
Guidelines](https://opensource.google/conduct/) and the [Dart code of
29+
conduct](https://dart.dev/code-of-conduct).

pkgs/jni_gen/LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright 2022, the Dart project authors.
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above
10+
copyright notice, this list of conditions and the following
11+
disclaimer in the documentation and/or other materials provided
12+
with the distribution.
13+
* Neither the name of Google LLC nor the names of its
14+
contributors may be used to endorse or promote products derived
15+
from this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

pkgs/jnigen/README.md renamed to pkgs/jni_gen/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://github.com/dart-lang/native/actions/workflows/jnigen.yaml/badge.svg)](https://github.com/dart-lang/native/actions/workflows/jnigen.yaml)
1+
[![Build Status](https://github.com/dart-lang/jni_gen/workflows/Dart%20CI/badge.svg)](https://github.com/dart-lang/jni_gen/actions?query=workflow%3A%22Dart+CI%22+branch%3Amain)
22

33
# Experimental generator for FFI+JNI bindings.
44

File renamed without changes.
File renamed without changes.
File renamed without changes.

pkgs/pubspec.yaml renamed to pkgs/jni_gen/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# for details. All rights reserved. Use of this source code is governed by a
33
# BSD-style license that can be found in the LICENSE file.
44

5-
name: jnigen
5+
name: jni_gen
66
version: 0.0.1
7-
homepage: https://github.com/google/jnigen.dart
7+
homepage: https://github.com/dart-lang/jni_gen
88
description: Experimental generator for FFI+JNI bindings.
99

1010
environment:

pkgs/test/my_test.dart renamed to pkgs/jni_gen/test/my_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
import 'package:test/test.dart';
6-
import 'package:jnigen/jnigen.dart';
6+
import 'package:jni_gen/jni_gen.dart';
77

88
void main() {
99
test('dummy test', () {

pkgs/tool/coverage.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)