代码拉取完成,页面将自动刷新
This module ensures that commonmark-java is supported on Android
Requirements:
path_to_android_sdk/platform-tools
and path_to_android_sdk/tools
/local.properties
sdk.dir=/path_to_android_sdk
/test.properties
# Absolute or relative (./ == /app) path to test reports.
path.report=../report
# Version number of commonmark and extensions in maven central.
version.maven=0.13.1
# Version number of autolink in maven central (not bundled with extension jar).
version.maven_autolink=0.10.0
# Version number of commonmark and extensions in project.
version.snapshot=0.13.1-SNAPSHOT
# Version number of autolink for snapshots (not bundled in extension jar).
version.snapshot_autolink=0.10.0
If you're going to test on device with Android 15 then you can skip downloading emulator.
on Mac/Linux:
./gradlew :app:connectedMavenDebugAndroidTest
on Windows:
.\gradlew :app:connectedMavenDebugAndroidTest
Before running tests you need to run mvn clean install
in the root of
this repository.
on Mac/Linux:
./gradlew :app:connectedSnapshotDebugAndroidTest
on Windows:
.\gradlew :app:connectedSnapshotDebugAndroidTest
on Mac/Linux:
echo no | android create avd --force -n test -t "android-15"
emulator -avd test &
adb wait-for-device
./gradlew :app:clean :app:connectedSnapshotDebugAndroidTest
adb emu kill
on Windows:
echo no | android create avd --force -n test -t "android-15"
start emulator -avd test
adb wait-for-device
gradlew :app:clean :app:connectedSnapshotDebugAndroidTest & adb emu kill
There could be problems with command adb wait-for-device
which could be resolved by adding additional pause before running test.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。