-
Notifications
You must be signed in to change notification settings - Fork 79
RFC for API 102 #15
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
Dr-TSNG
wants to merge
9
commits into
master
Choose a base branch
from
102
base: master
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
RFC for API 102 #15
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ffb5420
Add lint check for api versions
Dr-TSNG 0b43923
Update dependencies
Dr-TSNG ef9cfda
Add hot reload interfaces
Dr-TSNG 8c4812d
onHotReloadDone should be oneway
Dr-TSNG 156b215
Add API constants to aidl
Dr-TSNG dfd7d0e
Add snapshots
Dr-TSNG e6c962a
Add proguard-rules.pro
Dr-TSNG 2ce4942
Improve API boundaries
Dr-TSNG bb58007
Update README.md
Dr-TSNG 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| name: Publish Sonatype Snapshot | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| deploy_interface: | ||
| description: 'Deploy interface module' | ||
| type: boolean | ||
| default: true | ||
| deploy_service: | ||
| description: 'Deploy service module' | ||
| type: boolean | ||
| default: true | ||
|
Dr-TSNG marked this conversation as resolved.
|
||
| dependency_snapshot: | ||
| description: 'Use snapshot annotation and lint dependencies' | ||
| type: boolean | ||
| default: false | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| publish: | ||
| if: github.event.inputs.deploy_interface == 'true' || github.event.inputs.deploy_service == 'true' | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| submodules: 'recursive' | ||
| fetch-depth: 0 | ||
|
|
||
| - name: set up JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '21' | ||
| distribution: 'temurin' | ||
| cache: gradle | ||
|
|
||
| - name: Publish snapshot to Sonatype | ||
| run: | | ||
| echo 'org.gradle.caching=true' >> gradle.properties | ||
| echo 'org.gradle.parallel=true' >> gradle.properties | ||
| echo 'org.gradle.vfs.watch=true' >> gradle.properties | ||
| echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties | ||
| echo 'publishSnapshot=true' >> gradle.properties | ||
| echo 'dependencySnapshot=${{ github.event.inputs.dependency_snapshot }}' >> gradle.properties | ||
| TASKS="" | ||
| if [[ "${{ github.event.inputs.deploy_interface }}" == "true" ]]; then | ||
| TASKS="$TASKS publishInterfacePublicationToSnapshotsRepository" | ||
| fi | ||
| if [[ "${{ github.event.inputs.deploy_service }}" == "true" ]]; then | ||
| TASKS="$TASKS publishServicePublicationToSnapshotsRepository" | ||
| fi | ||
| ./gradlew $TASKS | ||
| ./gradlew --stop | ||
| env: | ||
| ORG_GRADLE_PROJECT_signingKey: ${{ secrets.maven_pgp_signingKey }} | ||
| ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.maven_pgp_signingPassword }} | ||
| ORG_GRADLE_PROJECT_snapshotsUsername: ${{ secrets.OSSRHUSERNAME }} | ||
| ORG_GRADLE_PROJECT_snapshotsPassword: ${{ secrets.OSSRHPASSWORD }} | ||
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,3 +1,14 @@ | ||
| val dependencySnapshot = providers.gradleProperty("dependencySnapshot").orNull == "true" | ||
|
|
||
| allprojects { | ||
| configurations.configureEach { | ||
| if (dependencySnapshot) { | ||
| resolutionStrategy.cacheChangingModulesFor(0, "seconds") | ||
| } | ||
|
|
||
| } | ||
| } | ||
|
|
||
| tasks.register("Delete", Delete::class) { | ||
| delete(rootProject.layout.buildDirectory) | ||
| } |
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,12 +1,13 @@ | ||
| [versions] | ||
| annotation = "1.9.1" | ||
| agp = "9.1.0" | ||
| dokka = "2.1.0" | ||
| agp = "9.2.1" | ||
| dokka = "2.2.0" | ||
| libxposed-annotation = "1.0.0" | ||
| libxposed-lint = "1.0.0" | ||
|
|
||
| [plugins] | ||
| agp-lib = { id = "com.android.library", version.ref = "agp" } | ||
| dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" } | ||
| dokka-javadoc = { id = "org.jetbrains.dokka-javadoc", version.ref = "dokka" } | ||
|
|
||
| [libraries] | ||
| annotation = { module = "androidx.annotation:annotation", version.ref = "annotation" } | ||
| androidx-annotation = { module = "androidx.annotation:annotation", version = "1.10.0" } |
Binary file not shown.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Uh oh!
There was an error while loading. Please reload this page.