This repository was archived by the owner on Aug 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 30
WIP - publish maven local #70
Closed
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f5cc32d
publish maven local
4cd4e02
installing NDK on CI
dd903a0
set androidx/jetifier for AGP 3.6.x
24c0de0
rollback travis ndk
8e5aaa0
invert wrong comment
799947a
fix merge conflict
marandaneto d71f84f
bump agp to beta03
marandaneto dbd04b3
install ndk-bundle travis-ci
marandaneto 999e6ca
trying to set ndk envs
marandaneto 2db36e1
setting ndkVersion to ndk module
marandaneto 5d792f8
setting multiDexEnabled
marandaneto 3ee2414
set multiDexEnabled only sample app.
marandaneto 9100082
setting appveyor to use build gradle task
marandaneto 9cf46a8
disable jetifier
marandaneto 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
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,8 +1,15 @@ | ||
| # Daemon’s heap size | ||
| org.gradle.jvmargs=-Xms1g -Xmx1g -XX:MaxPermSize=512m -Dfile.encoding=UTF-8 | ||
| org.gradle.jvmargs=-Xms1g -Dkotlin.daemon.jvm.options\="-Xmx1536M" -Xmx1536M -XX\:MaxPermSize\=512m -Dfile.encoding\=UTF-8 | ||
|
|
||
| # Parallel execution | ||
| org.gradle.parallel=true | ||
|
|
||
| # Cacheable unit tests | ||
| android.testConfig.useRelativePath = true | ||
|
|
||
| # Migrating to AndroidX - AGP 3.6.x | ||
| android.useAndroidX=true | ||
| #android.enableJetifier=true - causing SHA1 digest error | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. similar issue AzureAD/microsoft-authentication-library-for-android#455 |
||
|
|
||
| # New default packaging tool, disabled as its still preview | ||
| android.useNewApkCreator=false | ||
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,5 +1,6 @@ | ||
| plugins { | ||
| id("com.android.library") | ||
| `maven-publish` | ||
| } | ||
|
|
||
| android { | ||
|
|
@@ -11,6 +12,7 @@ android { | |
| minSdkVersion(Config.Android.minSdkVersionNdk) | ||
|
|
||
| versionName = "$version" | ||
|
|
||
| } | ||
|
|
||
| compileOptions { | ||
|
|
@@ -30,3 +32,13 @@ dependencies { | |
| api(project(":sentry-android-core")) | ||
| api(project(":sentry-android-ndk")) | ||
| } | ||
|
|
||
| afterEvaluate { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you factor out the repeated publishing logic into the main |
||
| publishing { | ||
| publications { | ||
| register("release", MavenPublication::class) { | ||
| from(components["release"]) | ||
| } | ||
| } | ||
| } | ||
| } | ||
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
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.
@ninniuz what do you think about that?
I'd like to use
maven-publishwith the native support that AGP 3.6.x provides.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.
It is a great addition to AGP and it makes publishing a lot easier, but I wouldn't use beta releases as they could affect aar generation.
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.
@ninniuz based on the changelog, the "only" different thing that affects aar generation would be
useNewApkCreatorwhich I've disabled, that's why I think it's safe to go, but I do understand your concern.