uage-java"> @Override 122 121
    public void loadImage(@NonNull Context context, @NonNull String url,
123 122
                          @NonNull ImageView imageView,
124 123
                          SubsamplingScaleImageView longImageView) {
@ -188,7 +187,6 @@ public class GlideEngine implements ImageEngine {
188 187
     * @param url       图片路径
189 188
     * @param imageView 承载图片ImageView
190 189
     */
191
    @Override
192 190
    public void loadAsGifImage(@NonNull Context context, @NonNull String url,
193 191
                               @NonNull ImageView imageView) {
194 192
        Glide.with(context)

+ 6 - 4
autolayout/build.gradle

@ -1,11 +1,13 @@
1 1
apply plugin: 'com.android.library'
2 2
3 3
android {
4
    compileSdkVersion 29
5
    buildToolsVersion '29.0.2'
4
    def android = rootProject.ext.android
5
6
    compileSdkVersion android["compileSdkVersion"]
7
//    buildToolsVersion '29.0.2'
6 8
    defaultConfig {
7
        minSdkVersion 24
8
        targetSdkVersion 29
9
        minSdkVersion android["minSdkVersion"]
10
        targetSdkVersion android["targetSdkVersion"]
9 11
        versionCode 1
10 12
        versionName "1.0"
11 13
    }

+ 5 - 10
build.gradle

@ -1,4 +1,5 @@
1 1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
apply from: "config.gradle"
2 3
buildscript {
3 4
//    apply plugin: 'bugly'
4 5
//    apply plugin: 'org.greenrobot.greendao'
@ -11,11 +12,12 @@ buildscript {
11 12
        maven {url 'https://maven.aliyun.com/repository/google/'}
12 13
        maven {url 'https://maven.aliyun.com/repository/public/'}
13 14
        maven {url 'https://maven.aliyun.com/repository/gradle-plugin/'}
15
        mavenCentral()
14 16
    }
15 17
16 18
    dependencies {
17
        classpath 'com.android.tools.build:gradle:3.6.3'
18
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
19
        classpath 'com.android.tools.build:gradle:4.2.1'
20
        classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0'
19 21
        classpath 'com.tencent.bugly:symtabfileuploader:latest.release'
20 22
21 23
        classpath "com.mob.sdk:MobSDK:+"
@ -31,13 +33,6 @@ allprojects {
31 33
        maven {url 'https://maven.aliyun.com/repository/gradle-plugin/'}
32 34
        maven { url "https://www.jitpack.io" }
33 35
        maven { url 'https://repo1.maven.org/maven2/' }
36
        mavenCentral()
34 37
    }
35 38
}
36
ext{
37
    manifestPlaceholders= [
38
            JPUSH_PKGNAME : "com.electric.chargingpile",
39
            JPUSH_APPKEY  : "19fde8a6fe56b6918522bfa3", //JPush 上注册的包名对应的 Appkey.
40
            JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
41
    ]
42
43
}

+ 14 - 0
config.gradle

@ -0,0 +1,14 @@
1
ext{
2
    android = [
3
            compileSdkVersion: 31,
4
            applicationId    : "com.electric.chargingpile",
5
            minSdkVersion    : 24,
6
            targetSdkVersion : 31,
7
    ]
8
9
    manifestPlaceholders= [
10
            JPUSH_PKGNAME : "com.electric.chargingpile",
11
            JPUSH_APPKEY  : "19fde8a6fe56b6918522bfa3", //JPush 上注册的包名对应的 Appkey.
12
            JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
13
    ]
14
}

+ 1 - 1
gradle/wrapper/gradle-wrapper.properties

@ -4,4 +4,4 @@ distributionPath=wrapper/dists
4 4
zipStoreBase=GRADLE_USER_HOME
5 5
org.gradle.jvmargs=-Xmx4096m -XX\:MaxPermSize\=6144m
6 6
zipStorePath=wrapper/dists
7
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
7
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip

+ 5 - 3
library/build.gradle

@ -1,10 +1,12 @@
1 1
apply plugin: 'com.android.library'
2 2
android {
3
    compileSdkVersion 29
4
    buildToolsVersion '29.0.2'
3
    def android = rootProject.ext.android
4
5
    compileSdkVersion android["compileSdkVersion"]
6
//    buildToolsVersion '29.0.2'
5 7
6 8
    defaultConfig {
7
        minSdkVersion 24
9
        minSdkVersion android["minSdkVersion"]
8 10
    }
9 11
10 12
    buildTypes {

+ 7 - 4
zxing/build.gradle

@ -1,11 +1,14 @@
1 1
apply plugin: 'com.android.library'
2 2
3 3
android {
4
    compileSdkVersion 29
5
    buildToolsVersion '29.0.2'
4
    def android = rootProject.ext.android
5
    compileSdkVersion android["compileSdkVersion"]
6
7
//    buildToolsVersion '29.0.2'
6 8
    defaultConfig {
7
        minSdkVersion 24
8
        targetSdkVersion 29
9
        minSdkVersion android["minSdkVersion"]
10
11
        targetSdkVersion android["targetSdkVersion"]
9 12
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
10 13
    }
11 14
    buildTypes {

+ 7 - 1
zxing/src/main/AndroidManifest.xml

@ -35,7 +35,9 @@
35 35
    <application
36 36
        android:label="@string/app_name"
37 37
        >
38
        <activity android:name=".CaptureActivity"
38
        <activity
39
            android:exported="true"
40
            android:name=".CaptureActivity"
39 41
            android:screenOrientation="portrait"
40 42
            android:clearTaskOnLaunch="true"
41 43
            android:stateNotNeeded="true"
@ -83,8 +85,10 @@
83 85
        </activity>
84 86
        <activity android:name=".PreferencesActivity"
85 87
            android:label="@string/preferences_name"
88
            android:exported="true"
86 89
            android:stateNotNeeded="true"/>
87 90
        <activity android:name=".encode.EncodeActivity"
91
            android:exported="true"
88 92
            android:stateNotNeeded="true">
89 93
            <intent-filter>
90 94
                <action android:name="com.google.zxing.client.android.ENCODE"/>
@ -106,6 +110,7 @@
106 110
        <activity android:name=".book.SearchBookContentsActivity"
107 111
            android:label="@string/sbc_name"
108 112
            android:stateNotNeeded="true"
113
            android:exported="true"
109 114
            android:screenOrientation="sensorLandscape">
110 115
            <intent-filter>
111 116
                <action android:name="com.google.zxing.client.android.SEARCH_BOOK_CONTENTS"/>
@ -114,6 +119,7 @@
114 119
        </activity>
115 120
        <activity android:name=".share.ShareActivity"
116 121
            android:stateNotNeeded="true"
122
            android:exported="true"
117 123
            android:screenOrientation="user">
118 124
            <intent-filter>
119 125
                <action android:name="com.google.zxing.client.android.SHARE"/>

+ 3 - 2
zxing/src/main/java/com/google/zxing/client/android/SystemTypeUtil.java

@ -30,6 +30,7 @@ public class SystemTypeUtil {
30 30
    private static final String KEY_MIUI_VERSION_CODE = "ro.miui.ui.version.code";
31 31
    private static final String KEY_MIUI_VERSION_NAME = "ro.miui.ui.version.name";
32 32
    private static final String KEY_MIUI_INTERNAL_STORAGE = "ro.miui.internal.storage";
33
    private static final String APPLICATION_ID = "com.electric.chargingpile";
33 34
34 35
35 36
    /**
@ -85,7 +86,7 @@ public class SystemTypeUtil {
85 86
//            ToastUtil.show("我是魅族");
86 87
            Intent intent = new Intent("com.meizu.safe.security.SHOW_APPSEC");
87 88
            intent.addCategory(Intent.CATEGORY_DEFAULT);
88
            intent.putExtra("packageName", BuildConfig.APPLICATION_ID);
89
            intent.putExtra("packageName", APPLICATION_ID);
89 90
            try {
90 91
                context.startActivity(intent);
91 92
            } catch (Exception e) {
@ -97,7 +98,7 @@ public class SystemTypeUtil {
97 98
            Intent intent = new Intent("miui.intent.action.APP_PERM_EDITOR");
98 99
            ComponentName componentName = new ComponentName("com.miui.securitycenter", "com.miui.permcenter.permissions.AppPermissionsEditorActivity");
99 100
            intent.setComponent(componentName);
100
            intent.putExtra("extra_pkgname", BuildConfig.APPLICATION_ID);
101
            intent.putExtra("extra_pkgname", APPLICATION_ID);
101 102
            try {
102 103
                context.startActivity(intent);
103 104
            } catch (Exception e) {

Sign In - Gogs: Go Git Service

Sign In