Skip to content

Commit 5f17581

Browse files
authored
refactor: rename this crate to cargo-mobile2 (#219)
* refactor: rename this crate to `cargo-mobile2` * use tauri-apps fork * Update config.json * actually rename
1 parent 094c1e4 commit 5f17581

26 files changed

Lines changed: 116 additions & 153 deletions

.changes/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"gitSiteUrl": "https://github.com/tauri-apps/tauri-mobile/",
2+
"gitSiteUrl": "https://github.com/tauri-apps/cargo-mobile2/",
33
"pkgManagers": {
44
"rust": {
55
"version": true,
@@ -8,7 +8,7 @@
88
}
99
},
1010
"packages": {
11-
"tauri-mobile": {
11+
"cargo-mobile2": {
1212
"path": ".",
1313
"postversion": ["cargo check"],
1414
"manager": "rust"

.changes/rename-cargo-mobile2.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"cargo-mobile2": "minor"
3+
---
4+
5+
Rename this crate to `cargo-mobile2`
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
---
22
name: Bug report
3-
about: Create a report to help us improve tauri-mobile
4-
title: ''
5-
labels: 'type: bug'
6-
assignees: ''
7-
3+
about: Create a report to help us improve cargo-mobile2
4+
title: ""
5+
labels: "type: bug"
6+
assignees: ""
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is. If you are using tauri-cli, please consider open an issue in Tauri main repo first.
1211

1312
**Steps To Reproduce**
14-
Steps to reproduce the behavior. It **must** use tauri-mobile itself and wry template directly instead of tauri-cli.
13+
Steps to reproduce the behavior. It **must** use cargo-mobile2 itself and wry template directly instead of tauri-cli.
1514

1615
**Expected behavior**
1716
A clear and concise description of what you expected to happen.
@@ -27,10 +26,9 @@ Rustc:
2726
(if you build with specific commit, please list it as well)
2827

2928
**Would you want to assign yourself to resolve this bug?**
29+
3030
- [ ] Yes
3131
- [ ] No
3232

3333
**Additional context**
3434
Add any other context about the problem here.
35-
36-
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
3-
about: Suggest an idea for Tauri-mobile
4-
title: ''
3+
about: Suggest an idea for cargo-mobile2
4+
title: ""
55
labels: feature request
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

109
**Is your feature request related to a problem? Please describe.**
@@ -17,10 +16,9 @@ A clear and concise description of what you want to happen.
1716
A clear and concise description of any alternative solutions or features you've considered.
1817

1918
**Would you want to assign yourself to implement this feature?**
19+
2020
- [ ] Yes
2121
- [ ] No
2222

2323
**Additional context**
2424
Add any other context or screenshots about the feature request here.
25-
26-

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Please make sure to read the Pull Request Guidelines: https://github.com/tauri-a
55
-->
66

77
### What kind of change does this PR introduce?
8+
89
<!-- Check at least one. If you are introducing a new binding, you must reference an issue where this binding has been proposed, discussed and approved by the maintainers. -->
910

1011
- [ ] Bugfix
@@ -16,16 +17,17 @@ Please make sure to read the Pull Request Guidelines: https://github.com/tauri-a
1617
- [ ] Other, please describe:
1718

1819
### Does this PR introduce a breaking change?
20+
1921
<!-- If yes, please describe the impact and migration path for existing applications in an attached issue. -->
2022

2123
- [ ] Yes
2224
- [ ] No
2325

2426
### Checklist
25-
- [ ] This PR will resolve #___
26-
- [ ] A change file is added if any packages will require a version bump due to this PR per [the instructions in the readme](https://github.com/tauri-apps/tauri-mobile/blob/dev/.changes/readme.md).
27+
28+
- [ ] This PR will resolve #\_\_\_
29+
- [ ] A change file is added if any packages will require a version bump due to this PR per [the instructions in the readme](https://github.com/tauri-apps/cargo-mobile2/blob/dev/.changes/readme.md).
2730
- [ ] I have added a convincing reason for adding this feature, if necessary
2831
- [ ] It can be built on all targets and pass CI/CD.
2932

3033
### Other information
31-

.github/workflows/covector-version-or-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
createRelease: true
3636
- name: Create Pull Request With Versions Bumped
3737
id: cpr
38-
uses: peter-evans/create-pull-request@v3
38+
uses: tauri-apps/create-pull-request@v3
3939
if: steps.covector.outputs.commandRan == 'version'
4040
with:
4141
title: "Publish New Versions"

Cargo.lock

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "tauri-mobile"
2+
name = "cargo-mobile2"
33
version = "0.5.4"
44
authors = [
55
"Tauri Programme within The Commons Conservancy",
@@ -8,8 +8,8 @@ authors = [
88
]
99
edition = "2021"
1010
description = "Rust on mobile made easy!"
11-
documentation = "https://docs.rs/tauri-mobile"
12-
repository = "https://github.com/tauri-apps/tauri-mobile"
11+
documentation = "https://docs.rs/cargo-mobile2"
12+
repository = "https://github.com/tauri-apps/cargo-mobile2"
1313
readme = "README.md"
1414
keywords = [ "cargo", "mobile", "ios", "android", "tauri" ]
1515
categories = [ "development-tools::cargo-plugins" ]

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
1-
# ❗⚠️ WARNING - DEPRECATION NOTICE ❗⚠️
2-
3-
THIS CRATE HAS BEEN DEPRECATED, AND HAS BEEN RENAMED TO `cargo-mobile2`
4-
5-
# tauri-mobile
1+
# cargo-mobile2
62

73
> _The answer to "how do I use Rust on iOS and Android?"_
84
>
95
> cargo-mobile takes care of generating Xcode and Android Studio project files, building and running on device, generating project boilerplate, and a few other things!
106
117
This project is a fork of [cargo-mobile](https://github.com/BrainiumLLC/cargo-mobile/). Tauri uses it as a library dependency instead of using its CLI directly. For more information, please visit [Tauri's mobile guide](https://next--tauri.netlify.app/next/mobile/).
128

13-
In the meantime, tauri-mobile contains the template of wry, please follow [wry's instruction](https://github.com/tauri-apps/wry#android--ios) if you want to use with it.
9+
In the meantime, cargo-mobile2 contains the template of wry, please follow [wry's instruction](https://github.com/tauri-apps/wry#android--ios) if you want to use with it.
1410

1511
## Installation
1612

1713
The build will probably take a bit, so feel free to go get a snack or something.
1814

1915
```bash
20-
cargo install --git https://github.com/tauri-apps/tauri-mobile
16+
cargo install --git https://github.com/tauri-apps/cargo-mobile2
2117
```
2218

23-
tauri-mobile is currently supported on macOS, Linux and Windows. Note that it's not possible to target iOS on platforms other than macOS! You'll still get to target Android either way.
19+
cargo-mobile2 is currently supported on macOS, Linux and Windows. Note that it's not possible to target iOS on platforms other than macOS! You'll still get to target Android either way.
2420

2521
You'll need to have Xcode and the Android SDK/NDK installed. Some of this will ideally be automated in the future, or at least we'll provide a helpful guide and diagnostics.
2622

fast-install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function copyy {
1818
cp "$cargoTargetDir\debug\cargo-$args.exe" "$cargoHome\bin\cargo-$args.exe"
1919
}
2020

21-
cargo build -p tauri-mobile
21+
cargo build -p cargo-mobile2
2222
copyy "android"
2323
copyy "apple"
2424
copyy "mobile"

0 commit comments

Comments
 (0)