Browse Source

update gradle

lyq.me@qq.com 1 year ago
parent
commit
906b5098c3
3 changed files with 36 additions and 25 deletions
  1. 12 10
      app/build.gradle
  2. 14 7
      app/src/main/AndroidManifest.xml
  3. 10 8
      guidelib/build.gradle

+ 12 - 10
app/build.gradle

@@ -3,14 +3,14 @@ plugins {
 }
 
 android {
-    compileSdkVersion 31
+    compileSdkVersion 33
 
     defaultConfig {
         applicationId "epson.print"
         minSdkVersion 16
-        targetSdkVersion 31
-        versionCode 1
-        versionName "1.0"
+        targetSdkVersion 33
+        versionCode 100001
+        versionName "1.0.1"
         multiDexEnabled true
 
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -40,14 +40,16 @@ android {
 }
 
 dependencies {
+    implementation fileTree(dir: 'libs', include: ['*.jar'])
+    
+    implementation 'androidx.appcompat:appcompat:1.5.0'
+    implementation 'com.google.android.material:material:1.6.1'
+    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
+    testImplementation 'junit:junit:4.13.2'
+    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
+    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
 
-    implementation 'androidx.appcompat:appcompat:1.2.0'
-    implementation 'com.google.android.material:material:1.2.1'
-    implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
     implementation 'androidx.multidex:multidex:2.0.1'
     implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
 
-    testImplementation 'junit:junit:4.+'
-    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
-    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
 }

+ 14 - 7
app/src/main/AndroidManifest.xml

@@ -63,7 +63,8 @@
         <activity
             android:name="epson.print.WebShareActivity"
             android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
-            android:resizeableActivity="false">
+            android:resizeableActivity="false"
+            android:exported="true">
             <intent-filter>
                 <action android:name="android.intent.action.SEND" />
                 <category android:name="android.intent.category.DEFAULT" />
@@ -80,7 +81,8 @@
             android:configChanges="locale|keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|layoutDirection|fontScale"
             android:hardwareAccelerated="false"
             android:resizeableActivity="false"
-            android:screenOrientation="unspecified" >
+            android:screenOrientation="unspecified"
+            android:exported="true">
             <intent-filter>
                 <action android:name="android.intent.action.VIEW" />
                 <action android:name="android.intent.action.SEND" />
@@ -273,7 +275,8 @@
             android:name="epson.print.WellcomeScreenActivity"
             android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
             android:resizeableActivity="false"
-            android:screenOrientation="unspecified">
+            android:screenOrientation="unspecified"
+            android:exported="true">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.LAUNCHER" />
@@ -298,7 +301,8 @@
             android:name="epson.print.ActivityDocsPrintPreview"
             android:configChanges="locale|keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|layoutDirection|fontScale"
             android:resizeableActivity="false"
-            android:screenOrientation="unspecified">
+            android:screenOrientation="unspecified"
+            android:exported="true">
             <intent-filter>
                 <action android:name="android.intent.action.SEND" />
                 <action android:name="android.intent.action.VIEW" />
@@ -406,7 +410,8 @@
             android:excludeFromRecents="false"
             android:noHistory="false"
             android:resizeableActivity="false"
-            android:theme="@style/AppTheme.Translucent">
+            android:theme="@style/AppTheme.Translucent"
+            android:exported="true">
             <intent-filter>
                 <action android:name="com.epson.iprint.photo" />
                 <action android:name="com.epson.iprint.scan" />
@@ -645,7 +650,8 @@
             android:theme="@style/LicenseTheme" />
         <activity
             android:name="com.epson.mobilephone.common.usb.UsbReciever"
-            android:resizeableActivity="false">
+            android:resizeableActivity="false"
+            android:exported="true">
             <intent-filter>
                 <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
             </intent-filter>
@@ -654,7 +660,8 @@
                 android:resource="@xml/usb_device_filter" />
         </activity>
 
-        <receiver android:name="com.epson.mobilephone.common.usb.UsbReciever$UsbReceiver">
+        <receiver android:name="com.epson.mobilephone.common.usb.UsbReciever$UsbReceiver"
+            android:exported="true">
             <intent-filter>
                 <action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" />
             </intent-filter>

+ 10 - 8
guidelib/build.gradle

@@ -3,11 +3,11 @@ plugins {
 }
 
 android {
-    compileSdkVersion 31
+    compileSdkVersion 33
 
     defaultConfig {
         minSdkVersion 16
-        targetSdkVersion 31
+        targetSdkVersion 33
         versionCode 1
         versionName "1.0"
 
@@ -28,10 +28,12 @@ android {
 }
 
 dependencies {
-
-    implementation 'androidx.appcompat:appcompat:1.2.0'
-    implementation 'com.google.android.material:material:1.2.1'
-    testImplementation 'junit:junit:4.+'
-    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
-    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
+    implementation fileTree(dir: 'libs', include: ['*.jar'])
+    
+    implementation 'androidx.appcompat:appcompat:1.5.0'
+    implementation 'com.google.android.material:material:1.6.1'
+    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
+    testImplementation 'junit:junit:4.13.2'
+    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
+    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
 }