-
Notifications
You must be signed in to change notification settings - Fork 18
ADFA-3365: include Kotlin analysis api as dependency #1098
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
Open
itsaky-adfa
wants to merge
9
commits into
stage
Choose a base branch
from
fix/ADFA-3365-include-analysis-api-as-dependency
base: stage
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1b069cb
fix: add ability to re-write class name references in desugar plugin
itsaky-adfa a70fd66
feat: integrate Kotlin analysis API
itsaky-adfa 4ca1e97
Merge branch 'stage' into fix/ADFA-3366-include-analysis-api-as-depen…
itsaky-adfa 43286a6
fix: update kotlin-android to latest version
itsaky-adfa f1fe62f
fix: remove UnsafeImpl
itsaky-adfa 6e6d8b3
fix: update kotlin-android to latest version
itsaky-adfa 0f7f677
fix: update to the latest kotlin-android version
itsaky-adfa 2e5c796
Merge branch 'stage' into fix/ADFA-3365-include-analysis-api-as-depen…
itsaky-adfa 883e3bb
fix: bring-back license headers
itsaky-adfa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
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
31 changes: 31 additions & 0 deletions
31
...ld-logic/desugaring/src/main/java/com/itsaky/androidide/desugaring/dsl/ReplaceClassRef.kt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| package com.itsaky.androidide.desugaring.dsl | ||
|
|
||
| import java.io.Serializable | ||
|
|
||
| /** | ||
| * Describes a full class-reference replacement: every bytecode reference to | ||
| * [fromClass] in any instrumented class will be rewritten to [toClass]. | ||
| * | ||
| * Class names may be given in dot-notation (`com.example.Foo`) or | ||
| * slash-notation (`com/example/Foo`); both are normalised internally. | ||
| * | ||
| * @author Akash Yadav | ||
| */ | ||
| data class ReplaceClassRef( | ||
| /** The class whose references should be replaced (dot-notation). */ | ||
| val fromClass: String, | ||
| /** The class that should replace all [fromClass] references (dot-notation). */ | ||
| val toClass: String, | ||
| ) : Serializable { | ||
|
|
||
| companion object { | ||
| @JvmField | ||
| val serialVersionUID = 1L | ||
| } | ||
|
|
||
| /** ASM internal name (slash-notation) for [fromClass]. */ | ||
| val fromInternal: String get() = fromClass.replace('.', '/') | ||
|
|
||
| /** ASM internal name (slash-notation) for [toClass]. */ | ||
| val toInternal: String get() = toClass.replace('.', '/') | ||
| } |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,24 @@ | ||
| ## For more details on how to configure your build environment visit | ||
| # http://www.gradle.org/docs/current/userguide/build_environment.html | ||
| # | ||
| # Specifies the JVM arguments used for the daemon process. | ||
| # The setting is particularly useful for tweaking memory settings. | ||
| # Default value: -Xmx1024m -XX:MaxPermSize=256m | ||
| # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | ||
| # | ||
| # When configured, Gradle will run in incubating parallel mode. | ||
| # This option should only be used with decoupled projects. More details, visit | ||
| # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
| # org.gradle.parallel=true | ||
| #Wed Feb 02 13:50:55 IST 2022 | ||
|
|
||
| org.gradle.jvmargs=-Xmx8G -Dkotlin.daemon.jvm.options="-Xmx4096M" -XX:+HeapDumpOnOutOfMemoryError --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED | ||
|
|
||
| # Increase memory for aapt2 to prevent Java heap space issues during asset compression | ||
| android.aapt2.daemonHeapSize=8192M | ||
| # For CI builds, set worker max to limit memory usage | ||
| org.gradle.workers.max=2 | ||
| # Use less memory per worker during asset compression | ||
| org.gradle.vfs.watch=true | ||
| org.gradle.parallel=false | ||
| org.gradle.configureondemand=true | ||
| org.gradle.caching=true | ||
| android.useAndroidX=true | ||
| android.enableJetifier=false | ||
| android.jetifier.ignorelist=common-30.2.2.jar | ||
|
|
||
| # TODO : Migrate | ||
| android.nonTransitiveRClass=false | ||
| ## For more details on how to configure your build environment visit | ||
| # http://www.gradle.org/docs/current/userguide/build_environment.html | ||
| # | ||
| # Specifies the JVM arguments used for the daemon process. | ||
| # The setting is particularly useful for tweaking memory settings. | ||
| # Default value: -Xmx1024m -XX:MaxPermSize=256m | ||
| # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | ||
| # | ||
| # When configured, Gradle will run in incubating parallel mode. | ||
| # This option should only be used with decoupled projects. For more details, visit | ||
| # https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects | ||
| # org.gradle.parallel=true | ||
| #Fri Mar 13 16:37:43 IST 2026 | ||
| android.aapt2.daemonHeapSize=8192M | ||
| android.enableJetifier=false | ||
| android.jetifier.ignorelist=common-30.2.2.jar | ||
| android.nonTransitiveRClass=false | ||
| android.useAndroidX=true | ||
| org.gradle.caching=true | ||
| org.gradle.configureondemand=true | ||
| org.gradle.jvmargs=-Xmx8192M -Dkotlin.daemon.jvm.options\="-Xmx8192M" -XX\:+HeapDumpOnOutOfMemoryError --add-opens java.base/java.lang\=ALL-UNNAMED --add-opens java.base/java.util\=ALL-UNNAMED --add-opens java.base/java.io\=ALL-UNNAMED | ||
| org.gradle.parallel=true | ||
| org.gradle.vfs.watch=true | ||
| org.gradle.workers.max=30 |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix unresolved
DesugarParamsimport (build blocker).Line 20 currently imports
DesugarParamsas an unqualified symbol, and the pipeline already fails withUnresolved reference 'DesugarParams'. This must reference the correct fully-qualified type (or be removed if same-package resolution is intended and valid).🧰 Tools
🪛 GitHub Actions: Build and deploy to firebase app distribution
[error] 20-20: Kotlin compilation failed: Unresolved reference 'DesugarParams'.
🤖 Prompt for AI Agents