浏览代码

chore: updated kotlin dep and added possible fix to call start bug

Sduduzog 6 年之前
父节点
当前提交
214c60e589

+ 3 - 3
app/build.gradle

@@ -7,11 +7,11 @@ apply plugin: 'kotlin-android-extensions'
 apply plugin: 'kotlin-kapt'
 
 android {
-    compileSdkVersion 28
+    compileSdkVersion 29
     defaultConfig {
         applicationId "com.sduduzog.slimlauncher"
         minSdkVersion 16
-        targetSdkVersion 28
+        targetSdkVersion 29
         versionCode 38
         versionName "2.3.3"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -44,7 +44,7 @@ dependencies {
     // Support Libraries
     implementation 'androidx.appcompat:appcompat:1.0.2'
     implementation 'androidx.recyclerview:recyclerview:1.0.0'
-    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta1'
+    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
 
     // Arch Components
     implementation 'androidx.core:core-ktx:1.2.0-alpha02'

二进制
app/release/app.aab


+ 1 - 1
app/src/main/java/com/sduduzog/slimlauncher/ui/main/HomeFragment.kt

@@ -117,7 +117,7 @@ class HomeFragment : BaseFragment(), OnLaunchAppListener {
                 if (componentName == null) launchActivity(view, intent) else
                     pm.getLaunchIntentForPackage(componentName.packageName)?.let {
                         launchActivity(view, it)
-                    }
+                    } ?: run { launchActivity(view, intent) }
             } catch (e: Exception) {
                 // Do nothing
             }

+ 1 - 1
app/src/main/res/xml/home_motion_scene.xml

@@ -16,7 +16,7 @@
             android:id="@+id/home_fragment_time"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:layout_marginTop="@dimen/_64sdp"
+            android:layout_marginTop="@dimen/_42sdp"
             motion:layout_constraintEnd_toEndOf="parent"
             motion:layout_constraintHorizontal_bias="0.506"
             motion:layout_constraintStart_toStartOf="parent"

+ 1 - 1
build.gradle

@@ -7,7 +7,7 @@ buildscript {
         jcenter()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:3.4.1'
+        classpath 'com.android.tools.build:gradle:3.4.2'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
 
         // NOTE: Do not place your application dependencies here; they belong