Skip to content

Commit 870546b

Browse files
committed
update deps
1 parent ee13cc3 commit 870546b

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
buildscript {
22
ext.versions = [
3-
'kotlin': '1.5.20',
4-
'supportLibrary': '1.1.0',
3+
'kotlin': '1.5.21',
4+
'supportLibrary': '1.2.0',
55
'atsl': '1.4.0'
66
]
77

@@ -10,7 +10,7 @@ buildscript {
1010
google()
1111
}
1212
dependencies {
13-
classpath 'com.android.tools.build:gradle:4.2.1'
13+
classpath 'com.android.tools.build:gradle:4.2.2'
1414
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
1515
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1616
}

example/src/main/java/helper/update/widget/com/example/simple/single/SingleRemoteViewBuilder.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
public class SingleRemoteViewBuilder {
1616

17-
private RemoteViews remoteViews;
18-
private Context context;
19-
private int widgetId;
17+
private final RemoteViews remoteViews;
18+
private final Context context;
19+
private final int widgetId;
2020
public static final String NEXT_TEXT = "EXAMPLE NEXT TEXT";
2121
public static final String PREVIOUS_TEXT = "EXAMPLE PREVIOUS TEXT";
2222
public static final String NEXT_ACTION = "NEXT_ACTION";

example/src/main/java/helper/update/widget/com/example/simple/single/SingleUpdater.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public void update(@NonNull Context context, Bundle dataBundle, int... ids) {
4848
public Notification makeNotification(@NonNull Context context) {
4949
String NOTIFICATION_CHANNEL_ID = "Test CHANNEL";
5050
String channelName = "SINGLE WIDGET UPDATING";
51-
NotificationChannel chan = new NotificationChannel(NOTIFICATION_CHANNEL_ID, channelName, NotificationManager.IMPORTANCE_NONE);
51+
NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, channelName, NotificationManager.IMPORTANCE_NONE);
5252
NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
5353
if (manager != null) {
54-
manager.createNotificationChannel(chan);
54+
manager.createNotificationChannel(channel);
5555
}
5656

5757
Notification.Builder notificationBuilder = new Notification.Builder(context, NOTIFICATION_CHANNEL_ID);

widget-helper/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ android {
1515

1616
dependencies {
1717
implementation "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}"
18-
implementation "androidx.annotation:annotation:${versions.supportLibrary}"
18+
implementation "androidx.annotation:annotation:${versions.androidx}"
1919

20-
androidTestImplementation "androidx.annotation:annotation:${versions.supportLibrary}"
21-
androidTestImplementation 'junit:junit:4.12'
20+
androidTestImplementation "androidx.annotation:annotation:${versions.androidx}"
21+
androidTestImplementation 'junit:junit:4.13.2'
2222
androidTestImplementation "androidx.test:runner:${versions.atsl}"
2323
androidTestImplementation "androidx.test:rules:${versions.atsl}"
2424
androidTestImplementation 'androidx.core:core-ktx:1.6.0'

0 commit comments

Comments
 (0)