Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes ndk-glue + ndk-macro as part of #372 modularization #373

Closed
wants to merge 1 commit into from

Conversation

rib
Copy link
Contributor

@rib rib commented Dec 6, 2022

The ndk-glue and ndk-macro subdirectores have been split into a stand-alone repository at: https://github.com/rust-mobile/ndk-glue

This is being done as part of the modularization effort described in issue #372

The stand-alone repository was filtered like this:

git clone https://github.com/newren/git-filter-repo
git clone https://github.com/rust-windowing/android-ndk-rs.git ndk-glue
cd ndk-glue
py ../git-filter-repo/git-filter-repo \
    --path ndk-glue --path ndk-macro \
    --path ndk-examples --path-rename ndk-examples:examples \
    --path LICENSE-APACHE --path LICENSE-MIT \
    --path Cargo.toml --path rustfmt.toml \
    --path .github --path .gitignore

The last commit in this repo that is included within the stand-alone repository is 107f03e

Although ndk-glue is also being deprecated at the same time as splitting it out this commit doesn't make any README changes for this repo yet which will be addressed separately.

For now the ndk-examples continue to use the ndk-glue crate (the 0.7 release) and the current plan is to move these examples to the cargo-apk crate where they will be ported to use android-activity

Copy link
Contributor

@dvc94ch dvc94ch left a comment

Choose a reason for hiding this comment

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

Thanks!

The ndk-glue and ndk-macro subdirectores have been split into a
stand-alone repository at: https://github.com/rust-mobile/ndk-glue

This is being done as part of the modularization effort described in
issue rust-mobile#372

The stand-alone repository was filtered like this:

```
git clone https://github.com/newren/git-filter-repo
git clone https://github.com/rust-windowing/android-ndk-rs.git ndk-glue
cd ndk-glue
py ../git-filter-repo/git-filter-repo \
    --path ndk-glue --path ndk-macro \
    --path ndk-examples --path-rename ndk-examples:examples \
    --path LICENSE-APACHE --path LICENSE-MIT \
    --path Cargo.toml --path rustfmt.toml \
    --path .github --path .gitignore
```

The last commit in this repo that is included within the
stand-alone repository is 107f03e

Although ndk-glue is also being deprecated at the same time as
splitting it out this commit doesn't make any README changes for
this repo yet which will be addressed separately.

For now the ndk-examples continue to use the ndk-glue crate (the
0.7 release) and the current plan is to move these examples to
the cargo-apk crate where they will be ported to use `android-activity`
@rib
Copy link
Contributor Author

rib commented Dec 6, 2022

In addressing the last CI failure I've added a note that the ndk-examples are now using the 0.7 release of ndk-glue instead of the in-tree version. This requires a [path.crates-io] to ensure a consistent choice over the ndk crate implementation.

This doesn't look to port the examples away from ndk-glue at this point since the current idea is that the examples will actually be removed from this repo and instead maintained within the cargo apk repo (it's more compelling to have examples in the cargo apk repo for testing that the tool can package and deploy those examples as part of its CI)

Even if we decide we want to keep a copy of these examples in this repo too, it seems reasonable to handle porting to android-activity separately.

@rib
Copy link
Contributor Author

rib commented Dec 7, 2022

I'm closing this PR since I think it's going to be more practical to track all the removal changes related to #372 together

Please see #374 instead (currently a draft until I have made a patch to remove cargo-apk, ndk-build and ndk-examples)

@rib rib closed this Dec 7, 2022
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