Atualizando para Gradle 9.0#87
Merged
gabrielbmoro merged 10 commits intomasterfrom May 5, 2026
Merged
Conversation
- Update Gradle wrapper to 8.13 in `gradle-wrapper.properties`. - Update `android_gradle_plugin` to 8.13.2 in `libs.versions.toml`.
… a dedicated module - Create new `:androidApp` module to serve as the main Android entry point. - Convert `:composeApp` from an application module to a KMP library. - Move `MainActivity`, `CustomApplication`, and Android-specific configuration files (Manifest, Firebase, Kotzilla) from `:composeApp` to `:androidApp`. - Update `CommonExtensions` visibility to `public` to support the new module configuration. - Pin `kotlin_android` version to `2.2.20` in the version catalog. - Update `:composeApp` dependency declarations to use `api` for core shared modules.
- Introduce `streamPlayerApplication` in `AppModule.kt` to centralize shared dependency injection setup. - Update `CustomApplication` (Android) and `KoinIosHelper` (iOS) to use the new centralized Koin initialization helper. - Migrate Kotzilla plugin and configuration from `androidApp` to `composeApp` build logic. - Update `kotzilla.json` to support flavor-specific configurations for debug and release. - Remove unused `com.streamplayer.application.gradle.kts` build logic script.
- Add `composeApp/kotzilla.json` containing the SDK version, application ID, and API keys for the project.
- Delete `androidApp/kotzilla.json` containing SDK key configurations.
- Upgrade Gradle wrapper to 9.3.1. - Upgrade Kotlin to 2.3.20 and Android Gradle Plugin to 9.1.0. - Transition `com.streamplayer.kmp-library` logic to use `com.android.kotlin.multiplatform.library`. - Remove `CommonExtensions.kt` and inline Android configuration (namespace, SDK versions, compile options) directly into build scripts. - Relocate Kotzilla configuration and `kotzilla.json` from `composeApp` to `androidApp`. - Remove Kotzilla monitoring initialization from `CustomApplication` and `KoinIosHelper`. - Remove the unused `org.jetbrains.kotlin.android` plugin from the project.
- Fix whitespace/newline at the end of the file.
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
- Change the default launch build configuration from Release to Debug in the Xcode scheme.
- Enable the "Current Location" scenario for the launch action.
- Replace the hardcoded `DEVELOPMENT_TEAM` ID with the `${TEAM_ID}` variable in `project.pbxproj`.
- Update build step name and Gradle command to reference `:androidApp:assembleDebug` instead of `:composeApp:assembleDebug`.
gabrielbmoro
commented
May 4, 2026
|
|
||
| - name: Build Android (composeApp) | ||
| run: ./gradlew :composeApp:assembleDebug | ||
| - name: Build Android (androidApp) |
Collaborator
Author
There was a problem hiding this comment.
composeApp agora é um modulo library como outro qualquer
gabrielbmoro
commented
May 4, 2026
| plugins { | ||
| id("org.jetbrains.kotlin.multiplatform") | ||
| id("com.android.library") | ||
| id("com.android.kotlin.multiplatform.library") |
Collaborator
Author
There was a problem hiding this comment.
com.android.library não funciona mais, agora precisamos usar com.android.kotlin.multiplatform.library
gabrielbmoro
commented
May 4, 2026
rviannaoliveira
approved these changes
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Descrição
Atualizando para Gradle 9.0
Migração para Android App dedicado
Principais mudanças
Separação do módulo Android: O
composeAppdeixou de ser um aplicativo Android e agora é uma biblioteca KMP. Um novo módulo:androidAppfoi criado como ponto de entrada Android, com seu próprioAndroidManifest.xml,google-services.json,build.gradle.kts,CustomApplicationeMainActivity.Atualização de dependências: Kotlin
2.3.10→2.3.20, AGP8.9.1→9.1.0, Gradle8.11.1→9.3.1.Remoção do Kotzilla: Plugin,
kotzilla.json, chave de API, script de upload de dSYM no Xcode e chamadasmonitoring()foram removidos. -> o setup será realizado novamente em Kotzilla Setup - Gradle 9 #88Build Logic simplificado: O arquivo
com.streamplayer.application.gradle.ktsfoi deletado (não é mais necessário). Ocom.streamplayer.kmp-library.gradle.ktsfoi refatorado para usarcom.android.kotlin.multiplatform.libraryem vez decom.android.library, com namespace e compileSdk definidos inline.DI refatorada:
AppModule(objeto com lista de módulos) foi substituído pela funçãostreamPlayerApplicationque chamastartKoin, permitindo que os pontos de entrada (Android e iOS) configurem o Koin de forma consistente.CI atualizado: Build renomeado de
composeAppparaandroidApp.Xcode:
DEVELOPMENT_TEAMagora usa variável${TEAM_ID}, esquema alterado de Release para Debug, eKotzilla Dsymbuild phase removido.Kotzilla setup será novamente realizado na issue -> Kotzilla Setup - Gradle 9 #88
Screenshots
Gravacao.de.Tela.2026-05-04.as.18.38.38.mp4
Checklist