wordpress-mobile/WordPress-Android
Fork: 1325 Star: 2986 (更新于 2024-11-19 23:15:43)
license: GPL-2.0
Language: Kotlin .
WordPress for Android
最后发布版本: 25.4 ( 2024-10-16 01:23:23)
WordPress for Android
If you're just looking to install WordPress for Android, you can find it on Google Play. If you're a developer wanting to contribute, read on.
Build Instructions
- Make sure you've installed Android Studio.
- Install npm using Node Version Manager(nvm), as described in step one from the Block Editor Quickstart guide
-
cd WordPress-Android
to enter the working directory. - In Android Studio, open the project from the local repository. This will auto-generate
local.properties
with the SDK location. - Recommended: The CI uses JDK11 to build the app and run the tests. Some tests won't pass on the JDK embedded in Android Studio (JDK8). You might want to set JAVA_HOME and JDK location in Android Studio to JDK11.
- Go to Tools → AVD Manager and create an emulated device.
- Run.
Notes:
- While loading/building the app in Android Studio, ignore the prompt to update the Gradle plugin version, as that will probably introduce build errors. On the other hand, feel free to update if you are planning to work on ensuring the compatibility of the newer version.
Build and Test
To build, install, and test the project from the command line:
$ ./gradlew assembleWordPressVanillaDebug # assemble the debug .apk
$ ./gradlew installWordPressVanillaDebug # install the debug .apk if you have an
# emulator or an Android device connected
$ ./gradlew :WordPress:testWordPressVanillaDebugUnitTest # assemble, install and run unit tests
$ ./gradlew :WordPress:connectedWordPressVanillaDebugAndroidTest # assemble, install and run Android tests
Running the app
You can use your own WordPress site for developing and testing the app. If you don't have one, you can create a temporary test site for free at https://jurassic.ninja/. On the app start up screen, choose "Enter your existing site address" and enter the URL of your site and your credentials.
Note: Access to WordPress.com features is temporarily disabled in the development environment.
Directory structure
.
├── libs # dependencies used to build debug variants
├── tools # script collection
├── gradle.properties # properties imported by the build script
├── WordPress
│ |-- build.gradle # main build script
│ └── src
│ ├── androidTest # Android test assets, resources and code
│ ├── test # Unit tests
│ ├── main
│ │ ├── assets # main project assets
│ │ ├── java # main project java code
│ │ └── res # main project resources
│ ├── debug # debug variant
│ └── wasabi # wasabi variant specific resources and manifest
Google Configuration
Google Sign-In is only available for WordPress.com accounts through the official app. Contributors can build and run the app without issue, but Google Sign-In will always fail. Google Sign-In requires configuration files which contain client and server information that can't be shared publicly. More documentation and guides can be found on the Google Identity Platform website.
Contributing
Read our Contributing Guide to learn about reporting issues, contributing code, and more ways to contribute.
Security
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.
Getting in Touch
If you have questions or just want to say hi, join the WordPress Slack and drop a message on the #mobile
channel.
Documentation
- Coding Style - guidelines and validation and auto-formatting tools
- Pull Request Guidelines - branch naming and how to write good pull requests
Please read the docs for more.
Resources
License
WordPress for Android is an Open Source project covered by the
GNU General Public License version 2. Note: code
in the libs/
directory comes from external libraries, which might
be covered by a different license compatible with the GPLv2.
最近版本更新:(数据更新于 2024-10-28 14:36:57)
2024-10-16 01:23:23 25.4
2024-09-27 05:52:15 25.4-rc-1
2024-08-26 11:40:46 25.3-rc-1
2024-08-26 10:24:22 25.2.1
2024-08-01 03:54:10 25.2
2024-07-26 02:01:39 25.2-rc-2
2024-07-26 02:02:29 25.2-rc-1
2024-06-27 07:23:19 25.1
2024-06-25 05:46:26 25.1-rc-4
2024-06-22 04:59:34 25.1-rc-3
主题(topics):
android, app, java, mobile, oauth2-authentication, read, secret, website, wordpress, write
wordpress-mobile/WordPress-Android同语言 Kotlin最近更新仓库
2024-11-19 23:12:26 jellyfin/jellyfin-androidtv
2024-11-18 20:14:29 gkd-kit/gkd
2024-11-11 21:37:35 FooIbar/EhViewer
2024-11-01 20:22:27 EhViewer-NekoInverter/EhViewer
2024-11-01 16:15:30 tiann/KernelSU
2024-10-27 19:26:53 salvogiangri/KnoxPatch