WordPress for iOS - 官方儲存庫
AI 翻譯
WordPress for iOS - Official repository
媒體Swift · Objective-CGitHub @wordpress-mobile自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
正在載入完整 README。 以下為已儲存的摘錄。
Please refer to the sections below for more detailed information. The instructions assume the work is performed from a command line inside the repository.
1. Download and install Xcode. Refer to the .xcode-version file for the minimum required version.
1. Clone this repository in the folder of your preference.
1. Run rake dependencies.檢視完整 README ↗Please refer to the sections below for more detailed information. The instructions assume the work is performed from a command line inside the repository.
WordPress.xcworkspace in Xcode and build the Jetpack or WordPress scheme. The first build downloads the Gutenberg frameworks the app needs (about 60 MB).https://localhost, and Type to Native.Client ID and Client Secret from the OAuth Information.make credentials to set up your own WordPress.com API credentials, so you can log in to WordPress.com in the app. To skip the prompts, run Scripts/setup-credentials.sh --client-id <id> --client-secret <secret> instead.open WordPress.xcworkspace to open the project in Xcode.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.
The 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.
We use a few Ruby tools for release and CI, such as fastlane and Danger. Run bundle install to install or update them. Building and testing the app doesn't need them. Use the Ruby version in .ruby-version; a tool like rbenv picks it up automatically (rbenv install).
Open WordPress.xcworkspace in Xcode. The first build downloads the Gutenberg frameworks the app needs.
In 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, you should select "Native client" for the application type.
The "Website URL", "Redirect URLs", and "Javascript Origins" fields are required but not used for the 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 make credentials. You will be prompted for your Client ID and your Client Secret. Once added, you will be able to log into the WordPress app.
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.
Read our Contributing Guide to learn about reporting issues, contributing code, and more ways to contribute.
If 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.
If you have questions about getting setup or just want to say hi, join the WordPress Slack and drop a message on the #mobile channel.
WordPress for iOS is an Open Source project covered by the GNU General Public License version 2.