File tree Expand file tree Collapse file tree 7 files changed +20
-14
lines changed Expand file tree Collapse file tree 7 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ apply plugin: 'aar'
7
7
dependencies {
8
8
implementation name : " android"
9
9
10
- implementationAar " com.android.support: support-v4:${ supportLibsVersion } "
10
+ implementationAar ' androidx.legacy:legacy- support-v4:1.0.0 '
11
11
implementationAar " com.google.android.support:wearable:${ wearVersion} "
12
12
}
13
13
Original file line number Diff line number Diff line change 22
22
23
23
package processing .android ;
24
24
25
- import android .support .annotation .IdRes ;
26
- import android .support .annotation .LayoutRes ;
27
- import android .support .v4 .app .Fragment ;
28
- import android .support .v4 .app .FragmentActivity ;
29
- import android .support .v4 .app .FragmentManager ;
30
- import android .support .v4 .app .FragmentTransaction ;
25
+
26
+ import androidx .annotation .IdRes ;
27
+ import androidx .annotation .LayoutRes ;
28
+ import androidx .fragment .app .Fragment ;
29
+ import androidx .fragment .app .FragmentActivity ;
30
+ import androidx .fragment .app .FragmentManager ;
31
+ import androidx .fragment .app .FragmentTransaction ;
32
+
31
33
import android .util .DisplayMetrics ;
32
34
import android .content .Intent ;
33
35
import android .content .pm .ActivityInfo ;
Original file line number Diff line number Diff line change 24
24
25
25
import android .app .Activity ;
26
26
import android .os .Bundle ;
27
- import android . support . v4 .app .ActivityCompat ;
27
+ import androidx . core .app .ActivityCompat ;
28
28
import android .support .v4 .os .ResultReceiver ;
29
29
30
30
// A simple utility activity to request permissions in a service.
Original file line number Diff line number Diff line change 45
45
import android .os .Bundle ;
46
46
import android .os .Handler ;
47
47
import android .os .Looper ;
48
- import android . support .annotation .LayoutRes ;
48
+ import androidx .annotation .LayoutRes ;
49
49
import android .view .ContextMenu ;
50
50
import android .view .LayoutInflater ;
51
51
import android .view .Menu ;
Original file line number Diff line number Diff line change 33
33
import android .os .Handler ;
34
34
import android .os .Looper ;
35
35
import android .service .wallpaper .WallpaperService ;
36
- import android . support . v4 .app .ActivityCompat ;
37
- import android . support . v4 .content .ContextCompat ;
36
+ import androidx . core .app .ActivityCompat ;
37
+ import androidx . core .content .ContextCompat ;
38
38
import android .support .wearable .watchface .WatchFaceService ;
39
39
import android .view .LayoutInflater ;
40
40
import android .view .SurfaceHolder ;
@@ -89,14 +89,15 @@ public AppComponent getComponent() {
89
89
90
90
@ Override
91
91
public Context getContext () {
92
- if (component .getKind () == AppComponent .FRAGMENT ) {
92
+ return activity ;
93
+ /*if (component.getKind() == AppComponent.FRAGMENT) {
93
94
return activity;
94
95
} else if (component.getKind() == AppComponent.WALLPAPER) {
95
96
return wallpaper;
96
97
} else if (component.getKind() == AppComponent.WATCHFACE) {
97
98
return watchface;
98
99
}
99
- return null ;
100
+ */
100
101
}
101
102
102
103
Original file line number Diff line number Diff line change
1
+ android.enableJetifier =true
2
+ android.useAndroidX =true
Original file line number Diff line number Diff line change
1
+ # Thu Apr 30 13:02:23 PDT 2020
1
2
distributionBase =GRADLE_USER_HOME
2
3
distributionPath =wrapper/dists
3
4
zipStoreBase =GRADLE_USER_HOME
4
5
zipStorePath =wrapper/dists
5
- distributionUrl =https\://services.gradle.org/distributions/gradle-4.4.1-bin .zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-5.6.3-all .zip
You can’t perform that action at this time.
0 commit comments