Граф коммитов

137 Коммитов

Автор SHA1 Сообщение Дата
Automated Version Bump c62655cae0 Prep for releasing version 0.9.4. 2024-04-23 22:43:40 +00:00
Lina Butler e74945c5a1 Always use the NDK version from `source.properties`.
Previously, `RustAndroidPlugin` would read the
NDK version from `source.properties` in the NDK
path, while `CargoBuildTask` would try to infer
the NDK version from the pathname.

Inferring the NDK version from the pathname would
fail if the pathname didn't contain the version
(e.g., Mach currently installs the NDK used to
build Firefox for Android into
`~/.mozbuild/android-ndk-r26c`), causing
`Toolchain` to return the wrong path to `ar` for
new NDK versions.
2024-04-23 15:42:14 -07:00
Nick Alexander 109ce8a50e Bump NDK versions to match `-latest` Github runner images. 2024-04-09 20:24:11 -07:00
Nick Alexander f04edb2281 Schedule tests periodically. 2024-04-09 20:24:11 -07:00
Nick Alexander 4fba4b9db1
Fix 0.9.3 notes in `CHANGELOG.md`.
Apparently escaping backticks isn't quite correct.
2022-05-06 15:59:10 -07:00
Automated Version Bump e5006b5ad1 Prep for releasing version 0.9.3. 2022-05-06 22:56:27 +00:00
Nick Alexander 9f17bf28c0 Try to work around https://github.com/actions/cache/issues/454. 2022-05-06 15:54:12 -07:00
Nick Alexander 510d38f60a Fix sample projects in CI. 2022-05-06 15:54:12 -07:00
Nick Alexander 879293c873 Run sample projects in CI. 2022-05-06 10:02:51 -07:00
Nick Alexander 3b58c86757 Run tests on Windows and macOS, not just Linux. 2022-05-06 10:02:51 -07:00
Nick Alexander c24e355505 Log more test project details during tests. 2022-05-06 10:02:51 -07:00
Nick Alexander 71c47b9145 Fix test project generation on Windows: no backslashes in strings. 2022-05-06 10:02:51 -07:00
Nick Alexander 025c329c60 Replace `-lgcc` with `-lunwind` in linker argument @files. Fixes #89.
This applies the fix of #83 to linker argument @files.  Linker
argument files are used on (at least) Windows.
2022-05-06 09:35:55 -07:00
Nick Alexander 99c01fd985 With NDK 23+, look for `llvm-ar`, not target triple-specific `...-ar`. Fixes #91.
I'd prefer to do this by interrogating the binaries on disk, using
something like `which`, but the current expression makes that a little
hard to achieve, so we'll feed the NDK version into the relevant
helper function for now.
2022-05-06 09:28:47 -07:00
Emmanuel Leblond 69ccd74913 Fix missing `android:exported` attributes in `AndroidManifest.xml` (mandatory in Android >= 12). 2022-05-05 19:05:40 -07:00
Nick Alexander 5bfc241fee
Update release instructions to detail new Bump version Github workflow. 2022-02-24 16:08:52 -08:00
Automated Version Bump f37e2a583b Prep for releasing version 0.9.2. 2022-02-24 23:56:01 +00:00
Nick Alexander 16d517ef0d
Add manual "Bump versions" workflow that sets version, adds changelog, and creates release.
That release should then be published to the Gradle Plugin portal by
the existing release workflow.

Everything here was cribbed from or inspired by
b9f6de7f8b.
2022-02-24 15:54:58 -08:00
Nick Alexander 2622c03fb2
Start working on a "version bump" manual workflow.
Some commit is required to the main branch, per discussion in
https://github.community/t/workflow-files-only-picked-up-from-master/16129/43.
2022-02-24 12:27:48 -08:00
minyung 80674a7d8f
When targeting Android NDK 23+, use unwind library instead of gcc library. Fixes #75.
This works around an unfortunate issue with the Rust `std` library
where-by `-lgcc` is requested but not provided by newer NDKs.  There
are a multiple ways to address this, but since `rust-android-gradle`
already has a linker script it's reasonable to use it for this
purpose.
2022-02-23 22:11:44 -08:00
Nick Alexander 2299861d7e
Pre: Allow to set NDK version in tests; test multiple NDK versions. 2022-02-23 22:10:45 -08:00
Nick Alexander 7d8dea667c
Pre: Run all tests in automation. 2022-02-23 22:10:20 -08:00
Nick Alexander 327a1887d5
Prep for releasing 0.9.1. 2022-01-15 15:25:07 -08:00
Sammy Khamis c4bf58464a
Add `darwin-x86-64` and `darwin-aarch64`, superseding `darwin`.
Eventually we will remove `darwin` in favour of the explicit
`darwin-86-64`.  For backwards compatibility, we leave the output
directory names unchanged.
2022-01-15 15:21:24 -08:00
Nick Alexander fe0e14fc64
Actually run `CargoTargetTest`. 2022-01-15 15:21:17 -08:00
Nick Alexander 50294f8b5a Test that `targets = ...` produces per-target outputs. 2022-01-14 19:35:34 -08:00
Nick Alexander 193b9fc0c1 Extract and use `SimpleCargoProject`. 2022-01-14 19:35:34 -08:00
Daniel Sommermann 057e5fccb2 Generate toolchain even if destination directory exists 2021-09-29 09:49:06 -07:00
Nick Alexander bdc7bc91f7
Publish to https://plugins.gradle.org/plugin/org.mozilla.rust-android-gradle.rust-android. (Fixes #70) 2021-08-16 09:59:29 -07:00
Nick Alexander d804a12ea3
Prep for releasing version 0.9.0. 2021-08-15 22:09:25 -07:00
Nick Alexander e0245cc94a
Test against multiple versions. 2021-08-15 22:01:20 -07:00
Nick Alexander 7218fcd0b0
Update Gradle and AGP. Seems to Just Work. 2021-08-15 21:42:06 -07:00
Nick Alexander 196528ee4c
Allow `module` and `targetDirectory` to be absolute paths. 2021-08-15 21:41:48 -07:00
Nick Alexander 75093fed6e
Pre: no jcenter(). 2021-08-15 21:41:48 -07:00
Nick Alexander d14ac45b72
Add samples/unittest. 2021-08-15 21:36:32 -07:00
Nick Alexander dacf19fc28
Pre: Simplify Rust to speed up build time. 2021-08-15 21:36:32 -07:00
Nick Alexander 370ee7a64c
Pre: Cleanup release.yml. 2021-08-15 21:36:32 -07:00
Daniel Sommermann 3a272a9ec2 Remove deprecated Cargo environment variables
Setting AR and CC via Cargo is not supported. AR is still documented but marked deprecated here:
https://doc.rust-lang.org/nightly/cargo/reference/config.html#targettriplear
https://doc.rust-lang.org/rustc/codegen-options/index.html#ar

Setting CC via config is not documented at all now, and searching for cc
in Cargo source code also comes up empty. It's also missing from the
`rustc` codegen options link above.

I also removed a comment reference to RUSTFLAGS which doesn't appear to be
accurate (we don't set or modify RUSTFLAGS anywhere in this library)
2021-08-15 20:26:35 -07:00
Nick Alexander 67fb933f33
Prep for releasing version 0.8.7. 2021-07-13 09:04:19 -07:00
Corey Johnson 8183f9e927 Update README.md with correct classpath
The gradle classpath for the plugin returns a 403 and will fail to resolve on a new project. If you just drop the `gradle.plugin` part it works good though. This would be a quick fix to make starting out a little easier!
2021-05-26 09:07:26 -07:00
Daniel Sommermann aff8cdb1fb Use per-platform API level for selecting toolchain
Now that `apiLevels` can be relied on to have the correct per-platform API level, this heuristic can be replaced
with a direct lookup.
2021-04-30 10:04:21 -07:00
Nick Alexander e2183c1f3f
Prep for releasing version 0.8.6. 2021-04-26 21:43:40 -07:00
Nick Alexander 38f578bb1e
Revert "Don't publish the plugin twice."
This reverts commit c202f1c824.
2021-04-26 21:42:40 -07:00
Nick Alexander 5af73c5f25
Prep for releasing version 0.8.5. 2021-04-23 20:20:55 -07:00
Nick Alexander c202f1c824
Don't publish the plugin twice.
When updating the publishing plugin, I must have fixed this block,
'cuz I accidentally published the plugin a second time.  Don't do that
again.
2021-04-23 20:20:12 -07:00
Nick Alexander d35dd9a2ba
Allow to set `cargo { rustupChannel = "..." }`. Fixes #24. 2021-04-23 19:52:01 -07:00
Nick Alexander 85dae59723
Allow to set `cargo { (cargo|python|rustc)Command = "..." }`. Fixes #48. 2021-04-23 19:51:50 -07:00
Nick Alexander fcc3bc5954
Correct libname in `sample/app`. Fixes #25. 2021-04-23 15:15:24 -07:00
Daniel Sommermann bd696155b7 Add `apiLevels` parameter, allowing per-architecture control of api level 2021-04-23 15:08:17 -07:00
Daniel Sommermann 6f680c2490 Fix documentation for noDefaultBut() / --no-default-features 2021-04-23 15:01:07 -07:00