-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: Use androidx
namespace
#44
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2d2bf68
chore: remove unused code/files
wzieba 0387ded
build: use androidx dependencies
wzieba f421f7a
build: bump play services ads to 21.0.0
wzieba 8be209d
ci: add android lint validation
wzieba a5307b2
fix: set targetSdk to 32 and compileSdk to 32
wzieba e03b58c
revert: set minSdk version to 23
wzieba d0121e0
fix: lint only debug buildtype
wzieba 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 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 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 |
---|---|---|
|
@@ -3,12 +3,12 @@ plugins { | |
} | ||
|
||
android { | ||
compileSdkVersion 28 | ||
compileSdkVersion 32 | ||
|
||
defaultConfig { | ||
applicationId "com.parsely.example.parselyexample" | ||
minSdkVersion 21 | ||
targetSdkVersion 28 | ||
minSdkVersion 23 | ||
targetSdkVersion 32 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
@@ -21,12 +21,5 @@ android { | |
|
||
dependencies { | ||
implementation project(':parsely') | ||
implementation 'com.android.support:appcompat-v7:28.0.0' | ||
implementation 'com.android.support:customtabs:28.0.0' | ||
implementation 'com.android.support:support-v4:28.0.0' | ||
implementation 'com.android.support:support-media-compat:28.0.0' | ||
implementation 'com.android.support:design:28.0.0' | ||
implementation 'org.codehaus.jackson:jackson-mapper-lgpl:1.9.13' | ||
implementation 'org.codehaus.jackson:jackson-core-lgpl:1.9.13' | ||
implementation 'com.google.android.gms:play-services-ads:17.1.3' | ||
Comment on lines
-24
to
-31
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. Unused dependencies |
||
implementation 'androidx.appcompat:appcompat:1.4.2' | ||
} |
This file contains 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 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 |
---|---|---|
|
@@ -76,12 +76,6 @@ public void run() { | |
|
||
} | ||
|
||
@Override | ||
public boolean onCreateOptionsMenu(Menu menu) { | ||
getMenuInflater().inflate(R.menu.main, menu); | ||
return true; | ||
} | ||
Comment on lines
-79
to
-83
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. The menu was not used |
||
|
||
@Override | ||
protected void onDestroy() { | ||
ParselyTracker.sharedInstance().flushEventQueue(); | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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
2 changes: 1 addition & 1 deletion
2
parsely/src/main/java/com/parsely/parselyandroid/ParselyMetadata.java
This file contains 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 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
4 changes: 2 additions & 2 deletions
4
parsely/src/main/java/com/parsely/parselyandroid/ParselyVideoMetadata.java
This file contains 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.
Question (❓): Why did you chose to completely remove the
targetSdkVersion
from both, theparsely
library and theexample
app module?I built and then run the example app. Then, on launching the
HiParsely
app, I got a permission screen first, and following that, a version dialog afterwards. I think this is done because of the fact that whentargetSdkVersion
is not set, the default value equals that given tominSdkVersion
(see docs).I then tried to point both, the
parsely
andexample
modules, both, theircompileSdkVersion
andtargetSdkVersion
values, to32
. Everything started working as expected. I also built therelease
build type (./gradlew assembleRelease
) and it worked this time. Mind the fact, that this doesn't work as at its current state. Then, I triggered Lint for therelease
build type and it too worked okay (./gradlew lintRelease
). 🎉I wonder now... can't we use
targetSdkVersion 32
, is something blocking us to do so? 🤔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.
Thanks, good point! Yes, let's specify
targetSdkVersion
to32
. I went too far with removing configuration code.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.
Additionally, due to the permission issue you've pointed out, I've reverted my previous change of
minSdk
from 21 to 23 (as it was before).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.
Great, nicely done! 🥇