Skip to content

Commit 2bd6f8b

Browse files
committed
update
1 parent 39e6f02 commit 2bd6f8b

11 files changed

Lines changed: 588 additions & 3 deletions

File tree

app-lib/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app-lib/build.gradle

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
plugins {
2+
id 'com.android.library'
3+
}
4+
5+
android {
6+
compileSdkVersion 31
7+
8+
defaultConfig {
9+
minSdkVersion 21
10+
targetSdkVersion 31
11+
consumerProguardFiles "consumer-rules.pro"
12+
}
13+
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
compileOptions {
21+
sourceCompatibility JavaVersion.VERSION_1_8
22+
targetCompatibility JavaVersion.VERSION_1_8
23+
}
24+
}
25+
apply plugin: 'com.github.dcendents.android-maven'
26+
group ='com.github.AsmrMaker'
27+
28+
dependencies {
29+
implementation fileTree(dir: "libs", include: ["*.jar"])
30+
implementation 'androidx.multidex:multidex:2.+'
31+
implementation 'com.github.bumptech.glide:glide:4.+'
32+
33+
implementation project(path: ':util-lib')
34+
implementation project(path: ':easy-ui')
35+
36+
}

app-lib/consumer-rules.pro

Whitespace-only changes.

app-lib/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.moioio.android.applib">
4+
5+
</manifest>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package com.moioio.android.applib;
2+
3+
import android.content.Context;
4+
5+
import androidx.multidex.MultiDex;
6+
7+
import com.moioio.android.MyAndroidLib;
8+
import com.moioio.android.applib.res.AppResource;
9+
import com.moioio.android.easyui.MyApplication;
10+
import com.moioio.util.UtilConf;
11+
12+
public abstract class BaseApplication extends MyApplication {
13+
14+
15+
static Context appContext;
16+
17+
18+
public void onCreate() {
19+
20+
super.onCreate();
21+
appContext = this;
22+
23+
MultiDex.install(this);
24+
initConf(this);
25+
MyAndroidLib.init(this);
26+
UtilConf.setBufferSize(100*1024);
27+
AppResource.init(this);
28+
initApp(this);
29+
}
30+
31+
32+
public void initConf(Context context) {
33+
34+
}
35+
36+
public abstract void initApp(Context context);
37+
38+
39+
public static Context getAppContext() {
40+
return appContext;
41+
}
42+
43+
}

0 commit comments

Comments
 (0)