Skip to content

Commit f0e923d

Browse files
author
zhangqinghua.wanjian
committed
支持Android 9.0
1 parent 07172aa commit f0e923d

22 files changed

+251
-396
lines changed

.idea/misc.xml

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

.idea/modules.xml

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

Main.dex

74.2 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public interface IRotationWatcher {
210210

211211

212212
### 打包dex方式:
213-
首先命令窗口切换到 `androidScreenShareAndControl/shareandcontrollib/build/intermediates/classes/debug` 目录下,可以看到
213+
首先命令窗口切换到 `/androidScreenShareAndControl/shareandcontrollib/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes` 目录下,可以看到
214214
所有编译生成的class文件,如果没有先执行上面步骤生成class文件。
215215

216216
然后使用 `dx --dex --output=Main.dex ./`命令生成dex文件。dx命令文件在 `sdk/build-tools/版本号`

build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
buildscript {
44
repositories {
55
jcenter()
6+
maven {
7+
url 'https://maven.google.com/'
8+
name 'Google'
9+
}
610
}
711
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.0'
12+
classpath 'com.android.tools.build:gradle:3.2.1'
913

1014
// NOTE: Do not place your application dependencies here; they belong
1115
}
@@ -14,6 +18,10 @@ buildscript {
1418
allprojects {
1519
repositories {
1620
jcenter()
21+
maven {
22+
url 'https://maven.google.com/'
23+
name 'Google'
24+
}
1725
}
1826
}
1927

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Dec 28 10:00:20 PST 2015
1+
#Tue Jun 18 14:49:50 CST 2019
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

shareandcontrollib/build.gradle

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 25
5-
buildToolsVersion "25.0.2"
4+
compileSdkVersion 28
5+
buildToolsVersion "28.0.3"
66

77
defaultConfig {
8-
minSdkVersion 9
9-
targetSdkVersion 25
8+
minSdkVersion 16
9+
targetSdkVersion 28
1010
versionCode 1
1111
versionName "1.0"
1212

13-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1413

1514
}
16-
buildTypes {
17-
release {
18-
minifyEnabled false
19-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
20-
}
21-
}
15+
2216
}
2317

2418
dependencies {
2519
compile fileTree(dir: 'libs', include: ['*.jar'])
26-
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
27-
exclude group: 'com.android.support', module: 'support-annotations'
28-
})
29-
compile 'com.android.support:appcompat-v7:25.2.0'
30-
testCompile 'junit:junit:4.12'
20+
compile 'com.android.support:appcompat-v7:28.0.0'
3121
}

shareandcontrollib/src/androidTest/java/com/wanjian/puppet/ExampleInstrumentedTest.java

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

shareandcontrollib/src/main/AndroidManifest.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.wanjian.puppet">
1+
<manifest package="com.wanjian.puppet"
2+
xmlns:android="http://schemas.android.com/apk/res/android">
33

4-
<application android:allowBackup="true"
5-
android:label="@string/app_name"
6-
android:supportsRtl="true"
4+
<application
75
>
86

97
</application>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package android.os;
2+
3+
public class ServiceManager {
4+
public static IBinder getService(String s) {
5+
return null;
6+
}
7+
}

0 commit comments

Comments
 (0)