uno.xamarin.essentials/README.md

74 строки
4.8 KiB
Markdown
Исходник Обычный вид История

2018-03-06 21:14:57 +03:00
# Project Caboodle
2018-02-20 22:56:56 +03:00
2018-03-06 21:14:57 +03:00
Project Caboodle gives developers essential cross-platform APIs for their mobile applications.
2018-03-02 22:28:42 +03:00
iOS, Android, and UWP offer unique operating system and platform APIs that developers have access to all in C# leveraging Xamarin. It is great that developers have 100% API access in C# with Xamarin, but these APIs are different per platform. This means developers have to learn three different APIs to access platform specific features. With Caboodle developers have a single cross-platform API that works with any iOS, Android, or UWP application that can be accessed from shared code no matter how the user interface is created.
## Build Status
2018-03-10 05:25:49 +03:00
2018-03-10 19:16:54 +03:00
| Build Server | Type | Platform | Status |
|--------------|--------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Jenkins | Build | Windows | [![Jenkins Build Status](https://jenkins.mono-project.com/buildStatus/icon?job=Components-Caboodle)](https://jenkins.mono-project.com/view/Components/job/Components-Caboodle/) |
| VSTS | Build | Windows | ![VSTS Build Status](https://devdiv.visualstudio.com/_apis/public/build/definitions/0bdbc590-a062-4c3f-b0f6-9383f67865ee/8538/badge) |
| Jenkins | Device Tests | macOS | [![Build Status](https://jenkins.mono-project.com/buildStatus/icon?job=Components-Caboodle-DeviceTests-Mac)](https://jenkins.mono-project.com/job/Components-Caboodle-DeviceTests-Mac) |
2018-03-02 22:28:42 +03:00
## Installation
2018-03-06 04:57:01 +03:00
Coming soon...
2018-02-20 22:56:56 +03:00
## Supported Platforms
2018-03-02 22:28:42 +03:00
Caboodle is focused on the following platforms for our first release:
2018-02-20 22:56:56 +03:00
- iOS (10+)
- Android (4.4+)
- UWP (Fall Creators Update+)
## Current Features:
2018-03-02 22:28:42 +03:00
The following cross-platform APIs are planned for our first release:
- [ ] Accelerometer
- [X] App Information
- [x] Battery
- [X] Clipboard
- [x] Compass
- [x] Connectivity
2018-03-23 22:10:13 +03:00
- [x] Data Transfer
2018-03-10 15:49:33 +03:00
- [x] Device Information
- [x] File System Helpers
2018-03-10 15:49:33 +03:00
- [ ] Email
2018-03-28 22:27:11 +03:00
- [x] Flashlight
- [x] Geocoding
- [ ] Geolocation
2018-03-10 15:49:33 +03:00
- [ ] Gyroscope
- [ ] Magnetometer
2018-03-23 22:10:13 +03:00
- [x] Open Browser
- [x] Phone Dialer
- [x] Preferences
2018-03-23 22:10:13 +03:00
- [x] Screen Lock
- [x] Secure Storage
2018-03-23 22:10:13 +03:00
- [x] SMS
2018-03-10 15:49:33 +03:00
- [ ] Text-to-Speech
- [x] Vibrate
2018-03-02 22:28:42 +03:00
## Contributing
Please read through our [Contribution Guide](CONTRIBUTING.md). We are not accepting new PRs for full features, however any issue that is marked as `up for grabs` are open for community contributions. We encourage creating new issues for bugs found during usage that the team will triage. Additionally, we are open for code refactoring suggestions in PRs.
2018-03-02 22:28:42 +03:00
2018-03-05 20:43:05 +03:00
## Building Caboodle
Caboodle is built with the new SDK style projects with multi-targeting enabled. This means that all code for iOS, Android, and UWP exist inside of the Caboodle project.
If building on Visual Studio 2017 simply open the solution and build the project.
If using Visual Studio for Mac the project can be built at the command line with MSBuild. To change the project type that you are working with simply edit Caboodle.csproj and modify the TargetFrameworks for only the project type you want to use.
## FAQ
Here are some frequently asked questions about Caboodle.
### Where are the interfaces?
Some developers prefer an interface based programming model for dependency injection and testing of code. Caboodle does not offer any interfaces and delivers straight API access via direct classes and static properties/methods. There are many reasons that Caboodle is architected this way that include performance, simplicity, and ease of use. We also consider Caboodle a core API of the platform just like System classes, HttpClient, and our platform bindings.
Additionally, we found most developers create their own interfaces even when using a library that have interfaces. They do this so they have control over the APIs they actually use, which may be a very small percentage of the overall APIs in the library. Creating your own `ICaboodle` and exposing only the methods and properties you would like to use gives you more flexibility as Caboodle grows and adds additional APIs. Using this type of architecture will enable you to both have dependency injection and work with unit testing.
### Does Caboodle replace plugins?
Plugins offer a wide variety of cross-platform APIs for developers to use in their applications. Plugins will still continue to grow and flourish as they can offer a wider range of APIs and handle unique scenarios that Cabooble may not offer including additional platform support or add features unique to a single platform.
2018-03-02 22:28:42 +03:00
## License
Please see the [License](LICENSE).