Skip to content

Commit a97e35f

Browse files
committed
try fix for api 31
to avoid an issue on android 12
1 parent eb2bec2 commit a97e35f

File tree

12 files changed

+58
-46
lines changed

12 files changed

+58
-46
lines changed

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# PerfectFloatWindow
1+
# Perfect Float Window
22

3-
Android悬浮窗,绝对是目前相关悬浮窗开源库最完美的适配方案。目前已经适配华为,小米,vivo,oppo,一加,三星,魅族,索尼,LG,IQOO,努比亚,中兴,金立,360,锤子等目前是市面上主流机型包括非主流机型,兼容4.4以上包括android11版本。调用方便,配置少,后续会新增更多功功能,绝对满足你的定制化需求
3+
Android 悬浮窗,绝对是目前相关悬浮窗开源库最完美的适配方案。目前已经适配华为,小米,vivo,oppo,一加,三星,魅族,索尼,LGIQOO努比亚,中兴,金立,360,锤子等目前是市面上主流机型包括非主流机型,兼容 4.4 以上包括 Android 11 版本。调用方便,配置少,后续会新增更多功功能,绝对满足你的定制化需求
44

55

6-
# 特性
6+
## 特性
77
1. 支持悬浮窗内容自定义
88

99
2. 内部已处理权限校验,以及设置页面跳转

app/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
44

55
android {
6-
compileSdkVersion 29
7-
buildToolsVersion "29.0.3"
6+
compileSdkVersion 31
7+
buildToolsVersion "31.0.0"
88

99
defaultConfig {
1010
applicationId "com.yy.perfectfloatwindow"
1111
minSdkVersion 19
12-
targetSdkVersion 29
12+
targetSdkVersion 31
1313
versionCode 1
1414
versionName "1.0"
1515

@@ -40,5 +40,4 @@ dependencies {
4040
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
4141
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
4242
implementation project(path: ':floatserver')
43-
// implementation(name: 'floatserver',ext:'aar')
4443
}

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
android:roundIcon="@mipmap/ic_launcher_round"
1313
android:supportsRtl="true"
1414
android:theme="@style/AppTheme">
15-
<activity android:name=".SecondActivity"></activity>
15+
<activity
16+
android:name=".SecondActivity"
17+
android:exported="true" />
1618
<activity android:name=".MainActivity"
17-
android:launchMode="singleTask">
19+
android:launchMode="singleTask"
20+
android:exported="true">
1821
<intent-filter>
1922
<action android:name="android.intent.action.MAIN" />
20-
2123
<category android:name="android.intent.category.LAUNCHER" />
2224
</intent-filter>
2325
</activity>

build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.2.61'
4+
ext.kotlin_version = '1.6.10'
55
repositories {
66
google()
77
jcenter()
8-
98
}
109
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.2.1'
10+
classpath 'com.android.tools.build:gradle:7.2.1'
1211
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
13-
classpath 'com.novoda:bintray-release:0.9.2'
1412
// NOTE: Do not place your application dependencies here; they belong
1513
// in the individual module build.gradle files
1614
}
@@ -20,7 +18,6 @@ allprojects {
2018
repositories {
2119
google()
2220
jcenter()
23-
2421
}
2522
}
2623

0 commit comments

Comments
 (0)