Skip to content

Commit

Permalink
Android render test quality of life (#2200)
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers authored Mar 15, 2024
1 parent 63ea5dc commit 3e0d23d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ jobs:
fi
- name: Build Benchmark, copy to platform/android
if: github.ref != 'refs/heads/main'
run: |
./gradlew assembleDrawableRelease assembleDrawableReleaseAndroidTest -PtestBuildType=release
cp MapboxGLAndroidSDKTestApp/build/outputs/apk/drawable/release/MapboxGLAndroidSDKTestApp-drawable-release.apk .
Expand Down
6 changes: 6 additions & 0 deletions render-test/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 33

sourceSets {
test {
assets.srcDirs += ['../../../metrics']
}
}

defaultConfig {
applicationId = 'org.maplibre.render_test_runner'
minSdkVersion 21
Expand Down
4 changes: 1 addition & 3 deletions render-test/manifest_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,7 @@ std::optional<Manifest> ManifestParser::parseManifest(const std::string& manifes
testId = testId.substr(rootLength + 1, testId.length() - rootLength - 1);

std::vector<mbgl::filesystem::path> expectedMetricPaths{expectedMetricPath};
#if defined(__ANDROID__)
expectedMetricPaths.emplace_back("/sdcard/baselines/");
#elif defined(__APPLE__)
#if defined(__APPLE__)
expectedMetricPaths.emplace_back(manifest.manifestPath + "/baselines/");
#endif
testPaths.emplace_back(testPath,
Expand Down

0 comments on commit 3e0d23d

Please sign in to comment.