在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:wordpress-mobile/WordPress-iOS开源软件地址:https://github.com/wordpress-mobile/WordPress-iOS开源编程语言:Swift 81.0%开源软件介绍:WordPress for iOSBuild InstructionsPlease refer to the sections below for more detailed information. The instructions assume the work is performed from a command line.
Getting Started
Create WordPress.com API Credentials
Configure Your WordPress App Development Environment
If all went well you can now compile to your iOS device or simulator, and log into the WordPress app. Note: You can only log in with the WordPress.com account that you used to create the WordPress application. Configuration DetailsThe steps above will help you configure the WordPress app to run and compile. But you may sometimes need to update or re-run specific parts of the initial setup (like updating the dependencies.) To see how to do that, please check out the steps below. Third party toolsWe use a few tools to help with development. Running CocoaPodsWordPress for iOS uses CocoaPods to manage third party libraries. SwiftLintWe use SwiftLint to enforce a common style for Swift code. The app should build and work without it, but if you plan to write code, you are encouraged to install it. No commit should have lint warnings or errors. You can set up a Git pre-commit hook to run SwiftLint automatically when committing by running:
This is the recommended way to include SwiftLint in your workflow, as it catches lint issues locally before your code makes its way to Github. Alternately, a SwiftLint scheme is exposed within the project; Xcode will show a warning if you don't have SwiftLint installed. Finally, you can also run SwiftLint manually from the command line with:
If your code has any style violations, you can try to automatically correct them by running:
Otherwise you have to fix them manually. Open XcodeLaunch the workspace by running the following from the command line:
This will ensure any dependencies are ready before launching Xcode. You can also open the project by double clicking on Setup CredentialsIn order to login to WordPress.com with the app you need to create an account over at the WordPress.com Developer Portal. After you create an account you can create an application on the WordPress.com applications manager. When creating your application, select "Native client" for the application type. The applications manager currently requires a "redirect URL", but this isn't used for mobile apps. Just use "https://localhost". Your new application will have an associated client ID and a client secret key. These are used to authenticate the API calls made by your application. Next, run the command Remember the only WordPress.com account you will be able to login in with is the one used to create your client ID and client secret. Read more about OAuth2 and the WordPress.com REST endpoint. ContributingRead our Contributing Guide to learn about reporting issues, contributing code, and more ways to contribute. SecurityIf you happen to find a security vulnerability, we would appreciate you letting us know at https://hackerone.com/automattic and allowing us to respond before disclosing the issue publicly. Getting in TouchIf you have questions about getting setup or just want to say hi, join the WordPress Slack and drop a message on the Resources
LicenseWordPress for iOS is an Open Source project covered by the GNU General Public License version 2. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论