Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Android SDK target to 14 #7233

Merged
merged 2 commits into from
Jul 19, 2024
Merged

Update Android SDK target to 14 #7233

merged 2 commits into from
Jul 19, 2024

Conversation

wec43
Copy link
Contributor

@wec43 wec43 commented Jul 17, 2024

@wec43 wec43 changed the base branch from master to dev-mail July 17, 2024 14:19
@wec43 wec43 marked this pull request as draft July 17, 2024 14:19
@wec43 wec43 force-pushed the android-sdk-target-14 branch 3 times, most recently from 993bf86 to 99b72cb Compare July 19, 2024 10:16
@wec43 wec43 marked this pull request as ready for review July 19, 2024 10:17
def room_version = '2.6.1'
def lifecycle_version = '2.8.3'
def activity_version = '1.9.0'
def coroutines_version = '1.8.1'

implementation "de.tutao:tutasdk"

// Important: cannot be updated without additional measures as Android 6 and 7 do not have Java 9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should delete this comment now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

def lifecycle_version = "2.4.1"
def activity_version = "1.4.0"
def coroutines_version = "1.8.0"
def room_version = '2.6.1'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option to enable Kotlin code generation (or “Kotlin CodeGen”) is now available in Room KSP. (4297ec0). To turn on Kotlin CodeGen in Room, add the room.generateKotlin option name to your processor options for KSP. For more details on how to pass processor options for KSP, see the KSP documentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added an option to let KSP generate Kotlin in gradle.


implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.1'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.3'
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can throw away livedata! maybe!!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is removed.

Copy link
Contributor

@charlag charlag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please prefix both commits with [android]

Update AGP, Kotlin and all dependencies versions

Workaround AGP bug with rust plugin

Adapt to KSP argument

Remove unnecessary Android SDK version checks
Fix lifecycle related calls
@wec43 wec43 merged commit bcba38a into dev-mail Jul 19, 2024
2 checks passed
@wec43 wec43 deleted the android-sdk-target-14 branch July 19, 2024 15:30
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.

3 participants