Skip to content

Commit

Permalink
Change : sample code dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyi.hwj committed Sep 27, 2015
1 parent 3255a2f commit dd0f151
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sample/dexposedexamples/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ android {
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.taobao.dexposed"
applicationId "com.taobao.android.dexposed"
minSdkVersion 15
targetSdkVersion 21
versionName "1.0"
Expand All @@ -25,6 +25,6 @@ android {
}

dependencies {
compile( 'com.taobao.android:dexposed:0.1.6@aar')
// compile project(':dexposed')
compile( 'com.taobao.android:dexposed:0.1.7@aar')
//compile project(':dexposed')
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ public class MainActivity extends Activity {
static {
// load xposed lib for hook.
try {
if (android.os.Build.VERSION.SDK_INT > 19 && android.os.Build.VERSION.SDK_INT <= 21){
if (android.os.Build.VERSION.SDK_INT == 22){
System.loadLibrary("dexposed_l51");
} else if (android.os.Build.VERSION.SDK_INT > 19 && android.os.Build.VERSION.SDK_INT <= 21){
System.loadLibrary("dexposed_l");
} else if (android.os.Build.VERSION.SDK_INT > 14){
System.loadLibrary("dexposed");
}
} catch (Throwable e) {
e.printStackTrace();
}
}

Expand All @@ -42,7 +45,7 @@ protected void onCreate(Bundle savedInstanceState) {
mLogContent = (TextView) (this.findViewById(R.id.log_content));
// check device if support and auto load libs
isSupport = true;
isLDevice = android.os.Build.VERSION.SDK_INT == 21;
isLDevice = android.os.Build.VERSION.SDK_INT >= 20;
}

//Hook system log click
Expand Down

0 comments on commit dd0f151

Please sign in to comment.