Skip to content

Commit 0e02d43

Browse files
Add tests. Check if cmake_layout is generated properly
1 parent 2016291 commit 0e02d43

32 files changed

Lines changed: 1044 additions & 1 deletion

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,11 @@ jobs:
1818
name: maven-local
1919
path: ~/.m2
2020
if-no-files-found: error
21+
22+
- run: echo "y" | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;26.3.11579264"
23+
24+
- run: ./gradlew assemble
25+
working-directory: tests/0_sample_library
26+
27+
- run: ./gradlew assemble
28+
working-directory: tests/1_cmake_layout

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
if: ${{ github.event.inputs.version_increment == 'true' }}
7373
with:
7474
commit_message: "Post release version increment to ${{ steps.postReleaseVersionIncrement.outputs.newVersion }} (from ${{ steps.postReleaseVersionIncrement.outputs.oldVersion }})"
75-
file_pattern: build.gradle.kts README.md
75+
file_pattern: build.gradle.kts README.md tests/0_sample_library/build.gradle tests/1_cmake_layout/build.gradle
7676

7777
- run: echo -n > UpcomingReleaseNotes.md
7878
if: ${{ github.event.inputs.github_release == 'true' }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ bin/
3636
### Mac OS ###
3737
.DS_Store
3838
__pycache__
39+
tests/**/.cxx
40+
tests/**/build

ci-scripts/incrementVersion.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ def main():
3636
replace_version_in_file(root_dir / "README.md", " id 'app.opendocument.conanandroidgradleplugin' version \"", old_version, "\" apply false")
3737
replace_version_in_file(root_dir / "build.gradle.kts", "version = \"", new_version, "\"")
3838

39+
replace_version_in_file(root_dir / "tests" / "0_sample_library" / "build.gradle",
40+
prefix=" id 'app.opendocument.conanandroidgradleplugin' version \"",
41+
version=new_version,
42+
suffix="\" apply false")
43+
replace_version_in_file(root_dir / "tests" / "1_cmake_layout" / "build.gradle",
44+
prefix=" id 'app.opendocument.conanandroidgradleplugin' version \"",
45+
version=new_version,
46+
suffix="\" apply false")
47+
3948

4049
if __name__ == "__main__":
4150
main()
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
plugins {
3+
id 'com.android.library' version '8.5.1' apply false
4+
id 'app.opendocument.conanandroidgradleplugin' version "0.9.1" apply false
5+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Project-wide Gradle settings.
2+
# IDE (e.g. Android Studio) users:
3+
# Gradle settings configured through the IDE *will override*
4+
# any settings specified in this file.
5+
# For more details on how to configure your build environment visit
6+
# http://www.gradle.org/docs/current/userguide/build_environment.html
7+
# Specifies the JVM arguments used for the daemon process.
8+
# The setting is particularly useful for tweaking memory settings.
9+
org.gradle.jvmargs=-Xmx1536m
10+
# When configured, Gradle will run in incubating parallel mode.
11+
# This option should only be used with decoupled projects. More details, visit
12+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13+
# org.gradle.parallel=true
14+
android.useAndroidX=true
42.5 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

tests/0_sample_library/gradlew

Lines changed: 252 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)