Skip to content

Conversation

@sande11
Copy link

@sande11 sande11 commented Aug 27, 2025

Update android API from 34 to 35

Summary

This PR addresses updates of Android API from 34 to 35 and visual issues that occurred after updating the app to target Android API 35 (Android 15) and It implements the necessary edge-to-edge enforcement opt-out.

Changes Made

Fixed Edge-to-Edge Enforcement Issues

  • Added android:windowOptOutEdgeToEdgeEnforcement="true" to Theme.GATBReferenceGuide
  • This temporarily (until we update to android 16) opts out of the new edge-to-edge enforcement introduced in Android 15

Files Modified

  • app/src/main/res/values/themes.xml
       <!-- edge-to-edge opt-out for API 35 -->
        <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
  • /app/build.gradle

Before:

android {
    compileSdk 34

    defaultConfig {
        applicationId "org.apphatchery.gatbreferenceguide"
        minSdk 24
        targetSdk 34
        versionCode 34
        versionName "1.13"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildFeatures {
        viewBinding true
    }

After:


android {
    compileSdk 35

    defaultConfig {
        applicationId "org.apphatchery.gatbreferenceguide"
        minSdk 24
        targetSdk 35
        versionCode 34
        versionName "1.13"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildFeatures {
        viewBinding true
    }

Testing

  • Tested on Android 15 (API 35) devices/emulator
  • Confirmed no layout issues with edge-to-edge enforcement opt-out

Future Considerations

Important: The windowOptOutEdgeToEdgeEnforcement attribute has been removed in Android 16. We have priotized other work (updating UI for TB Guide Android) then later on will update the app to the latest Android 16 and fix layout issues that will follow.

@sande11 sande11 requested a review from MaxwellKJr August 27, 2025 12:55
@sande11 sande11 self-assigned this Aug 27, 2025
@sande11 sande11 linked an issue Aug 27, 2025 that may be closed by this pull request
@Wiza-Munthali Wiza-Munthali requested review from Wiza-Munthali and removed request for MaxwellKJr September 1, 2025 06:17
… results duplication bug, keyboard not being dismissed, search loading icon stuck on screen, bookmark card cut off, search result tabs being clipped
Changed the text in body fragment to expand when display and font size of the display changes
… rest of the app and subchapter.json to remove a duplicate subchapter title
private const val BUILD_VERSION = 12
private const val PENDO_RELEASE_VERSION = "Oct-25-"
…n' into 133-update-android-app-to-target-latest-api-level-and-google-sdks
…rget-latest-api-level-and-google-sdks

updated from API 34 to 35 (#133) in TB Guide android and then merged that branch into #131 that way we have both UI updates and API level updates in one branch
…d-app-to-target-latest-api-level-and-google-sdks

Revert "updated from API 34 to 35 in TB Guide android UI Updates"
…app-ui-with-new-figma-design

Merging #131 update-tb-guide-android-app-UI-with-new-figma-design into #133-update-android-app-to-target-latest-api-level-and-google-sdks
- Bump compileSdk and targetSdk to 36
- Update dependencies to latest versions
- Implement edge-to-edge layout in MainActivity
- Add status bar background view in activity_main.xml
- Add support for 16KB page size in gradle.properties
Updated tab container structure to improve appearance when font size is increased
Added logic to automatically expand collapsed dropdowns, tabs, and details elements that contain search results before performing in-page search. Also added a method to collapse expanded sections when clearing the search. Updated custom_action_bar_title.xml to use wrap_content for height with a minimum height of 56dp for better layout flexibility.
Changed the floating notes button margins and constraint to improve positioning. MarginEnd increased to 25dp, marginBottom added, and constraint now aligns to bottom_toolbar instead of search_view_include.
…app-ui-with-new-figma-design

Merge the latest UI updates to API level update branch
Replaces removeLast() with removeAt(recentSearches.lastIndex) to remove the last item from the recent searches list, ensuring compatibility
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.

Update Android app to target latest API level and Google SDKs

2 participants