-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
115 changed files
with
6,212 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,9 @@ FriendCircle | |
【简略更新日志】 | ||
--- | ||
|
||
* 2019/07/30 | ||
* 第三次初步重构。 | ||
|
||
* 2019/07/23 | ||
* 准备开始第三轮重构 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
朋友圈工程第三次重构记录 | ||
|
||
### 2019/07/30 | ||
|
||
第三次组件化大致结构: | ||
|
||
基类lib | ||
↑ | ||
ui类库uilib | ||
↑ | ||
通用类common + network | ||
↑ | ||
路由router | ||
↑ | ||
各个组件 | ||
↑ | ||
组件私有application | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,2 @@ | ||
<resources> | ||
<string name="app_name">BaseLibrary</string> | ||
|
||
<!--other--> | ||
<string name="format_time_year" formatted="false">%s年前</string> | ||
<string name="format_time_month" formatted="false">%s个月前</string> | ||
<string name="format_time_day" formatted="false">%s天前</string> | ||
<string name="format_time_hour" formatted="false">%s小时前</string> | ||
<string name="format_time_minute" formatted="false">%s分钟前</string> | ||
<string name="format_time_sec">刚刚</string> | ||
|
||
|
||
<!--权限--> | ||
<string-array name="permissions"> | ||
<item>@string/permission_recode_audio_hint</item> | ||
<item>@string/permission_get_accounts_hint</item> | ||
<item>@string/permission_read_phone_hint</item> | ||
<item>@string/permission_call_phone_hint</item> | ||
<item>@string/permission_camera_hint</item> | ||
<item>@string/permission_access_fine_location_hint</item> | ||
<item>@string/permission_access_coarse_location_hint</item> | ||
<item>@string/permission_read_external_hint</item> | ||
<item>@string/permission_white_external_hint</item> | ||
</string-array> | ||
|
||
<string name="permission_get_accounts_hint">没有此权限,无法开启这个功能。\n请手动开启权限:\n【PERMISSION_GET_ACCOUNTS】</string> | ||
<string name="permission_read_phone_hint">没有此权限,无法开启这个功能。\n请手动开启权限:\n【PERMISSION_READ_PHONE_STATE】</string> | ||
<string name="permission_call_phone_hint">没有此权限,无法开启这个功能。\n请手动开启权限:\n【PERMISSION_CALL_PHONE】</string> | ||
<string name="permission_camera_hint">没有此权限,无法开启这个功能。\n请手动开启权限:\n【PERMISSION_CAMERA】</string> | ||
<string name="permission_access_fine_location_hint">没有此权限,无法开启这个功能。\n请手动开启权限:\n【PERMISSION_ACCESS_FINE_LOCATION】</string> | ||
<string name="permission_access_coarse_location_hint">没有此权限,无法开启这个功能。\n请手动开启权限:\n【PERMISSION_ACCESS_COARSE_LOCATION】</string> | ||
<string name="permission_read_external_hint">没有此权限,无法开启这个功能。\n请手动开启权限:\n【PERMISSION_READ_EXTERNAL_STORAGE】</string> | ||
<string name="permission_white_external_hint">没有此权限,无法开启这个功能。\n请手动开启权限:\n【PERMISSION_WRITE_EXTERNAL_STORAGE】</string> | ||
<string name="permission_recode_audio_hint">没有此权限,无法开启这个功能。\n请手动开启权限:\n【PERMISSION_RECORD_AUDIO】</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apply plugin: 'com.android.library' | ||
|
||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
api project(':uilib') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# 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 | ||
|
||
# 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 |
26 changes: 26 additions & 0 deletions
26
common/src/androidTest/java/com/razerdp/github/common/ExampleInstrumentedTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.razerdp.github.common; | ||
|
||
import android.content.Context; | ||
import android.support.test.InstrumentationRegistry; | ||
import android.support.test.runner.AndroidJUnit4; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
*/ | ||
@RunWith(AndroidJUnit4.class) | ||
public class ExampleInstrumentedTest { | ||
@Test | ||
public void useAppContext() { | ||
// Context of the app under test. | ||
Context appContext = InstrumentationRegistry.getTargetContext(); | ||
|
||
assertEquals("com.razerdp.github.common.test", appContext.getPackageName()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<manifest package="com.razerdp.github.common" | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | ||
<uses-permission android:name="android.permission.WAKE_LOCK"/> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/> | ||
<uses-permission android:name="android.permission.READ_PHONE_STATE"/> | ||
<uses-permission android:name="android.permission.CAMERA"/> | ||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> | ||
|
||
|
||
|
||
</manifest> |
17 changes: 17 additions & 0 deletions
17
common/src/main/java/com/razerdp/github/common/base/BaseAppActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.razerdp.github.common.base; | ||
|
||
import android.content.Intent; | ||
|
||
import com.razerdp.github.lib.base.BaseLibActivity; | ||
|
||
/** | ||
* Created by 大灯泡 on 2019/7/30. | ||
* | ||
* app用的activity | ||
*/ | ||
public class BaseAppActivity extends BaseLibActivity { | ||
@Override | ||
public void onHandleIntent(Intent intent) { | ||
|
||
} | ||
} |
Oops, something went wrong.