-
Notifications
You must be signed in to change notification settings - Fork 38
(fix): this fixes proguard rules when running minifyEnabled #266
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
Changes from all commits
93a5198
60aede4
b3fb0f8
ebe465b
40e56ae
8bcb74d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,8 +66,7 @@ dependencies { | |
exclude group: 'com.google.code.findbugs' | ||
} | ||
|
||
compileOnly group: 'org.slf4j', name: 'slf4j-android', version: '1.7.25' | ||
|
||
compileOnly "com.fasterxml.jackson.core:jackson-databind:$jacksonversion" | ||
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. Does this mean we explicitly bundle jackson with our SDK? Would the user be able to exclude it from their app? 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. It is compile only. So, it is not a explicit dependency. If you are not using jackson, then, there is no effect. If you are using jackson, you would add this as a implementation in your gradle. Essentially, this is so our jackson code compiles. We still default to gson. |
||
implementation "com.android.support:support-annotations:$support_annotations_ver" | ||
|
||
testImplementation "junit:junit:$junit_ver" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,11 +157,11 @@ private void cancelRepeating(PendingIntent pendingIntent, Intent intent) { | |
Integer id = null; | ||
try { | ||
id = (Integer) Class.forName(clazz).getDeclaredField("JOB_ID").get(null); | ||
pendingIntent.cancel(); | ||
// only cancel periodic services | ||
if (ServiceScheduler.isScheduled(context, id)) { | ||
jobScheduler.cancel(id); | ||
} | ||
pendingIntent.cancel(); | ||
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. What does moving this here do? 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. It is just consistent with what is below it. We first cancel the alarm and then the pendingIntent. Here we cancel the job and then the pending intent. Basically, it is so if the pendingIntent throws, we have still cancelled the scheduled job. |
||
} catch (Exception e) { | ||
logger.error("Error in Cancel ", e); | ||
} | ||
|
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.
We don't need this anymore?
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.
We have a compile only for noveo android logger. We don't need both.