Skip to content

Commit

Permalink
接口加密
Browse files Browse the repository at this point in the history
  • Loading branch information
haife committed Jul 17, 2020
1 parent c0a0e08 commit 78a713e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions mcas/src/main/java/com/haife/mcas/mvp/BaseModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,6 @@ public int compare(String lhs, String rhs) {
}


public static String packageName(Context context) {
PackageManager manager = context.getPackageManager();
String name = null;
try {
PackageInfo info = manager.getPackageInfo(context.getPackageName(), 0);
name = info.versionName;
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}

return name;
}


/**
* 在框架中 {@link BasePresenter#onDestroy()} 时会默认调用 {@link IModel#onDestroy()}
Expand Down

0 comments on commit 78a713e

Please sign in to comment.