-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from didi/master
拉取更新代码
- Loading branch information
Showing
499 changed files
with
17,220 additions
and
2,789 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Please complete the following informations. | ||
> Expected behavior and actual behavior. | ||
> Steps to reproduce the problem. | ||
> Android or iOS? OS version? Brand? | ||
> More informations such as error messages and stack traces are welcomed. | ||
请补充如下信息。 | ||
> 期望的表现和实际的表现。(如有) | ||
> 问题重现的步骤。(如有) | ||
> Android 还是 iOS?系统版本是多少?手机品牌是什么?(如有) | ||
> 其他的错误信息和堆栈信息如果有也可以一并提供出来。(如有) |
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,2 +1 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.didichuxing.doraemonkit.adb" /> | ||
<manifest package="com.didichuxing.doraemonkit.adb" /> |
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,6 @@ | ||
#!/usr/bin/env bash | ||
echo -n "please enter bintray userid ->" | ||
read userid_bintray | ||
echo -n "please enter bintray apikey ->" | ||
read apikey_bintray | ||
../gradlew clean build bintrayUpload -PbintrayUser=${userid_bintray} -PbintrayKey=${apikey_bintray} -PdryRun=false |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ext { | ||
// 很多app都会有自己的打包开关,来区分线上包和测试包,可以通过给applyPlugin赋值来区分测试包和线上包 | ||
// 线上包不会接入DoraemonKit,测试包会自动接入 | ||
applyPlugin = true | ||
} | ||
if (applyPlugin) { | ||
// 引用插件,插件会在编译期把DoraemonKit.install方法插入Application中,前提是用户必须实现自己的Application | ||
apply plugin: 'com.doraemon.compiler.plugin' | ||
// 这里引用正常库 | ||
dependencies { | ||
implementation project(":doraemonkit") | ||
} | ||
} else { | ||
// 引用no-op的库 | ||
dependencies { | ||
implementation project(":doraemonkit-no-op") | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
Android/app/src/main/java/com/didichuxing/doraemondemo/TestActivity.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,15 @@ | ||
package com.didichuxing.doraemondemo; | ||
|
||
import android.os.Bundle; | ||
import android.support.annotation.Nullable; | ||
import android.support.v7.app.AppCompatActivity; | ||
|
||
/** | ||
* @desc: | ||
*/ | ||
public class TestActivity extends AppCompatActivity { | ||
@Override | ||
protected void onCreate(@Nullable Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
} | ||
} |
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,27 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
tools:context="com.didichuxing.doraemondemo.MainActivity"> | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
tools:context="com.didichuxing.doraemondemo.MainActivity"> | ||
|
||
<Button | ||
android:id="@+id/btn_test_urlconnection" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:text="HttpUrlConnection Test" /> | ||
android:text="HttpUrlConnection Test"/> | ||
|
||
<Button | ||
android:id="@+id/btn_test_okhttp" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:text="OkHttp Test" /> | ||
android:text="OkHttp Test"/> | ||
|
||
<Button | ||
android:id="@+id/btn_test_custom" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:text="其他网络库 Test"/> | ||
|
||
<Button | ||
android:id="@+id/btn_show_hide_icon" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:text="显示/隐藏入口"/> | ||
|
||
<Button | ||
android:id="@+id/btn_time_count" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:text="页面跳转耗时"/> | ||
|
||
<Button | ||
android:id="@+id/btn_test_crash" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:text="Crash Test" /> | ||
android:text="模拟 Crash"/> | ||
|
||
|
||
</LinearLayout> |
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
Android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,2 +1,3 @@ | ||
<resources> | ||
<string name="app_name">DoraemonDemo</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
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
Oops, something went wrong.