Rename fxa-rust-client to fxa-client

This commit is contained in:
Edouard Oger 2018-08-09 15:13:50 -04:00
Родитель 79ed32da21
Коммит c23022ab96
82 изменённых файлов: 36 добавлений и 37 удалений

Просмотреть файл

@ -78,7 +78,7 @@ tasks:
routes:
- index.project.fxaclient.builds.{{ event.version }}
metadata:
name: fxa-rust-client Android Build
description: Builds the FxA rust lib for Android architectures
name: fxa-client Android Build
description: Builds the FxA lib for Android architectures
owner: '{{ event.head.user.email }}'
source: '{{ event.head.repo.url }}'

Просмотреть файл

@ -1,7 +1,7 @@
[workspace]
members = [
"fxa-rust-client",
"fxa-rust-client/ffi",
"fxa-client",
"fxa-client/ffi",
"logins",
"sandvich/desktop",
"sync15-adapter",

Просмотреть файл

@ -2,8 +2,8 @@
### Contents
* [fxa-rust-client](fxa-rust-client) - cross compiled FxA Rust client that can work with Firefox Sync keys and more
* [sandvich](sandvich) - Example apps that use SDKs built on top of `fxa-rust-client` to demonstrate an FxA login flow.
* [fxa-client](fxa-client) - cross compiled FxA Rust client that can work with Firefox Sync keys and more
* [sandvich](sandvich) - Example apps that use SDKs built on top of `fxa-client` to demonstrate an FxA login flow.
* [sync15-adapter](sync15-adapter) - Sync 1.5 adapter
* [libs](libs) - libs directory has build scripts for native libraries
* [docs](docs) - documentation sources
@ -12,7 +12,6 @@
### Other Resources
* [fxa-client-ios](https://github.com/eoger/fxa-client-ios) - an iOS framework that exposes `fxa-rust-client`.
* [mentat](https://github.com/mozilla/mentat) - a persistent, relational store inspired by Datomic and DataScript.
* [sync-server](https://github.com/mozilla-services/syncserver) - an all-in-one package for running a self-hosted Firefox Sync server.

Просмотреть файл

@ -9,7 +9,7 @@ The **Firefox Accounts iOS SDK** provides a way for iOS applications to do the f
* Get access to Firefox Sync keys to fetch the sync data.
* Fetch user's profile to personalize the applications.
Please see the [FxA iOS SDK documentation](https://github.com/mozilla/application-services/tree/master/fxa-rust-client/sdks/swift/FxAClient)
Please see the [FxA iOS SDK documentation](https://github.com/mozilla/application-services/tree/master/fxa-client/sdks/swift/FxAClient)
to integrate this component into your application.
## Implementing the OAuth flow in iOS

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -1,4 +1,4 @@
# FxA Rust Client FFI
# FxA Client FFI
## iOS build

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -195,7 +195,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# build fxa-rust-client lipoed library\ncd \"$SRCROOT\"/../../../ffi\nenv -i PATH=$PATH \\\n\"$HOME\"/.cargo/bin/cargo +beta lipo --release";
shellScript = "# build fxa-client lipoed library\ncd \"$SRCROOT\"/../../../ffi\nenv -i PATH=$PATH \\\n\"$HOME\"/.cargo/bin/cargo +beta lipo --release";
};
/* End PBXShellScriptBuildPhase section */

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 1.1 KiB

После

Ширина:  |  Высота:  |  Размер: 1.1 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 274 B

После

Ширина:  |  Высота:  |  Размер: 274 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 1.3 KiB

После

Ширина:  |  Высота:  |  Размер: 1.3 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 1.5 KiB

После

Ширина:  |  Высота:  |  Размер: 1.5 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 274 B

После

Ширина:  |  Высота:  |  Размер: 274 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 1.3 KiB

После

Ширина:  |  Высота:  |  Размер: 1.3 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 1.5 KiB

После

Ширина:  |  Высота:  |  Размер: 1.5 KiB

Просмотреть файл

@ -1,152 +1,152 @@
{
"warnings": [
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"line": 7,
"symbol": "FxAError",
"symbol_kind": "source.lang.swift.decl.enum",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"line": 8,
"symbol": "FxAError.Unauthorized",
"symbol_kind": "source.lang.swift.decl.enumelement",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"line": 9,
"symbol": "FxAError.Unspecified",
"symbol_kind": "source.lang.swift.decl.enumelement",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"line": 10,
"symbol": "FxAError.Panic",
"symbol_kind": "source.lang.swift.decl.enumelement",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"line": 32,
"symbol": "FxAError.unwrap(_:)",
"symbol_kind": "source.lang.swift.decl.function.method.static",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/Errors/FxAError.swift",
"line": 44,
"symbol": "FxAError.tryUnwrap(_:)",
"symbol_kind": "source.lang.swift.decl.function.method.static",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 11,
"symbol": "FxAConfig",
"symbol_kind": "source.lang.swift.decl.class",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 51,
"symbol": "FirefoxAccount",
"symbol_kind": "source.lang.swift.decl.class",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 132,
"symbol": "FirefoxAccount.getTokenServerEndpointURL()",
"symbol_kind": "source.lang.swift.decl.function.method.instance",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 218,
"symbol": "OAuthInfo",
"symbol_kind": "source.lang.swift.decl.class",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 219,
"symbol": "OAuthInfo.scopes",
"symbol_kind": "source.lang.swift.decl.var.instance",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 225,
"symbol": "OAuthInfo.accessToken",
"symbol_kind": "source.lang.swift.decl.var.instance",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 231,
"symbol": "OAuthInfo.keys",
"symbol_kind": "source.lang.swift.decl.var.instance",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 247,
"symbol": "Profile",
"symbol_kind": "source.lang.swift.decl.class",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 248,
"symbol": "Profile.uid",
"symbol_kind": "source.lang.swift.decl.var.instance",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 254,
"symbol": "Profile.email",
"symbol_kind": "source.lang.swift.decl.var.instance",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 260,
"symbol": "Profile.avatar",
"symbol_kind": "source.lang.swift.decl.var.instance",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 266,
"symbol": "Profile.displayName",
"symbol_kind": "source.lang.swift.decl.var.instance",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 282,
"symbol": "SyncKeys",
"symbol_kind": "source.lang.swift.decl.class",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 283,
"symbol": "SyncKeys.syncKey",
"symbol_kind": "source.lang.swift.decl.var.instance",
"warning": "undocumented"
},
{
"file": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"file": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient/FxAClient/FirefoxAccount.swift",
"line": 289,
"symbol": "SyncKeys.xcs",
"symbol_kind": "source.lang.swift.decl.var.instance",
"warning": "undocumented"
}
],
"source_directory": "/Users/eoger/application-services/fxa-rust-client/sdks/swift/FxAClient"
}
"source_directory": "/Users/eoger/application-services/fxa-client/sdks/swift/FxAClient"
}

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["Edouard Oger <eoger@fastmail.com>"]
[dependencies.fxa-client]
path = "../../fxa-rust-client"
path = "../../fxa-client"
[dependencies]
text_io = "0.1.7"

Просмотреть файл

@ -7,7 +7,7 @@ rustup target add armv7-apple-ios
rustup target add i386-apple-ios
rustup target add x86_64-apple-ios
cargo install --git https://github.com/TimNN/cargo-lipo
cd fxa-rust-client/sdks
cd fxa-client/sdks
carthage build --no-skip-current --verbose && carthage archive
rm -rf Carthage
mv FxAClient.framework.zip ../..

Просмотреть файл

@ -22,7 +22,7 @@ failure_derive = "= 0.1.1"
[dev-dependencies]
env_logger = "0.5"
prettytable-rs = "0.6"
fxa-client = { path = "../fxa-rust-client" }
fxa-client = { path = "../fxa-client" }
[[example]]
name = "sync-pass"

Просмотреть файл

@ -10,7 +10,7 @@ The initial version of the Firefox Accounts Android component has been released
<!--truncate-->
This new component consumes the new [fxa-rust-client](https://github.com/mozilla/application-services/tree/master/fxa-rust-client), which allows us to write things once and later cross-compile the code to different mobile platforms. As part of developing this component we utilize the following technologies: Rust, Kotlin, JNA, JOSE and more.
This new component consumes the new [fxa-client](https://github.com/mozilla/application-services/tree/master/fxa-client), which allows us to write things once and later cross-compile the code to different mobile platforms. As part of developing this component we utilize the following technologies: Rust, Kotlin, JNA, JOSE and more.
Since the initial release the [team](https://github.com/mozilla-mobile/android-components/graphs/contributors) already made various improvements, such as making method calls asynchronous, improving error handling and slimming down the size of the library. The component is available as a “tech preview” and you can try it in a [sample Android app](https://github.com/mozilla-mobile/android-components/tree/master/samples/firefox-accounts).