Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit 537b072

Browse files
authored
Move stub package to its own folder (#2)
1 parent 5b2458a commit 537b072

File tree

12 files changed

+46
-24
lines changed

12 files changed

+46
-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: ./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: ./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.

AUTHORS renamed to jni_gen/AUTHORS

File renamed without changes.

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).

LICENSE renamed to jni_gen/LICENSE

File renamed without changes.

README.md renamed to 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/jnigen/workflows/Dart%20CI/badge.svg)](https://github.com/dart-lang/jnigen/actions?query=workflow%3A%22Dart+CI%22+branch%3Amain)
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.

pubspec.yaml renamed to 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:

test/my_test.dart renamed to 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', () {

tool/coverage.sh

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

0 commit comments

Comments
 (0)