Skip to content

Commit

Permalink
Update gradle and rewrite project with kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
cyunrei committed Sep 4, 2022
1 parent d4bc1b1 commit ab60843
Show file tree
Hide file tree
Showing 15 changed files with 473 additions and 445 deletions.
32 changes: 20 additions & 12 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
apply plugin: 'com.android.application'
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}

android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
compileSdk 32

defaultConfig {
applicationId "com.cyunrei.videolivewallpaper"
minSdkVersion 21
targetSdkVersion 30
targetSdkVersion 32
versionCode 2
versionName "0.1.4.4_200811_nano"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled true
shrinkResources true
proguardFiles(getDefaultProguardFile('proguard-android-optimize.txt'),
'proguard-rules.pro')
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])

}



implementation 'androidx.core:core-ktx:1.8.0'
}
Binary file removed app/libs/android-support-v4.jar
Binary file not shown.
16 changes: 10 additions & 6 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\tools\adt-bundle-windows-x86_64-20131030\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
32 changes: 18 additions & 14 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.cyunrei.videolivewallpaper" >
package="com.cyunrei.videolivewallpaper">

<uses-permission android:name="android.permission.SET_WALLPAPER" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
android:label="@string/app_name"
android:theme="@android:style/Theme.Material.Light"
android:allowBackup="true"
android:label="@string/app_name"
android:requestLegacyExternalStorage="true"
tools:ignore="AllowBackup,MissingApplicationIcon"
tools:targetApi="q">
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
android:name=".activity.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Settings"
android:name=".activity.SettingsActivity"
android:exported="false"
android:label="@string/settings">
<intent-filter>
<action android:name="android.intent.action.APPLICATION_PREFERENCES"/>
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
</intent-filter>
</activity>
<service
android:name=".VideoLiveWallpaper"

<service
android:name=".service.VideoLiveWallpaperService"
android:exported="true"
android:label="@string/app_name"
android:permission="android.permission.BIND_WALLPAPER"
android:process=":wallpaper">
Expand All @@ -40,8 +42,10 @@
android:name="android.service.wallpaper"
android:resource="@xml/livewallpaper" />
</service>

<receiver android:name=".BootBroadCast" >

<receiver
android:name=".broadcast.BootBroadCast"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
Expand Down
Loading

0 comments on commit ab60843

Please sign in to comment.