Skip to content

Conversation

@rtsketo
Copy link

@rtsketo rtsketo commented Aug 19, 2025

Summary

This PR updates the project to be 16 KB page size compliant by upgrading build tooling, bumping SDK dependencies, and improving publishing support.

What Changed

  • Build Setup

    • Updated Gradle plugin to 8.12.0 and Gradle wrapper to 8.13 for compatibility with newer Android toolchains.
    • Target SDK bumped to 33 and compile SDK refreshed across all modules.
  • Publishing

    • Set up Maven publishing via maven-publish and local deployment (blurkit/build.gradle), incrementing version to 1.1.1.
  • Tests

    • Dependency updates include modern Mockito and JUnit versions for better test coverage.

Why 16 KB Alignment Matters

With Android 15+ requiring 16 KB ELF/page alignment for native libraries, it’s vital to rebuild and package with proper support. This PR ensures:

  • Uncompressed native .so files use 16 KB alignment by default since we're on AGP ≥ 8.5.1.
  • Builds link with NDK r28+ or equivalent flags so .so load segments align to 2**14 or higher.

Benefits

  • Prevents install-time failures or crashes on 16 KB devices.
  • Future-proofs the library for Play Store compliance bumps coming November 1, 2025.

ImgBotApp and others added 6 commits August 7, 2025 11:38
*Total -- 5,371.59kb -> 5,238.70kb (2.47%)

/demo/src/main/ic_launcher-web.png -- 32.25kb -> 27.12kb (15.9%)
/demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png -- 11.10kb -> 9.80kb (11.75%)
/demo/src/main/res/mipmap-xxhdpi/ic_launcher.png -- 8.19kb -> 7.33kb (10.52%)
/demo/src/main/res/mipmap-xhdpi/ic_launcher.png -- 5.49kb -> 5.10kb (7.15%)
/demo/src/main/res/mipmap-hdpi/ic_launcher.png -- 4.22kb -> 4.01kb (4.86%)
/.repo/bk-demo.gif -- 5,288.05kb -> 5,163.44kb (2.36%)
/.repo/bk-gh-readme-header.svg -- 10.13kb -> 9.92kb (2%)
/.repo/bk-gh-readme-spectrum-button.svg -- 12.17kb -> 11.97kb (1.66%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
This commit updates the project to use Gradle 8.13 and targets Android SDK version 33.

Key changes include:
- Updated Android Gradle Plugin to 8.12.0
- Updated `gradle-bintray-plugin` to 1.8.5
- Replaced `jcenter()` with `mavenCentral()`, `gradlePluginPortal()`, and Grails repository
- Updated `compileSdkVersion` to 33 in both `blurkit` and `demo` modules
- Updated `targetSdkVersion` to 33 in the `demo` module
- Added `namespace` to `blurkit` and `demo` modules
- Added `android:exported="true"` to `MainActivity` in `demo` module's manifest
- Added `jitpack.yml` to specify JDK 17
- Updated Gradle wrapper to use `gradle-8.13-bin.zip`
- Replaced `com.github.dcendents.android-maven` with `maven-publish` plugin in `blurkit` module
- Removed `buildToolsVersion` and version information from `blurkit` module
- Commented out `install` and `publishing` blocks in `blurkit` module
This commit updates the publishing configuration in the `blurkit` module's `build.gradle` file.

Key changes:
- Added a `publishing` block to specify `singleVariant("release")`.
- Replaced the `install` block with an `afterEvaluate` block for publishing.
- Configured a `release` publication using `MavenPublication` with `PUBLISH_GROUP_ID`, `PUBLISH_ARTIFACT_ID`, and `PUBLISH_VERSION`.
- The publication now includes components from `components.release`.
- Removed `apply from : 'deploy.gradle'`.
This commit updates the versions of JUnit, Mockito, and Hamcrest used for testing.

Key changes:
- `junit` updated from `4.12` to `4.13.2`
- `mockito-core` updated from `1.10.19` to `5.18.0`
- `hamcrest-library` updated from `1.3` to `3.0`
[ImgBot] Optimize images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants