Skip to content

Commit

Permalink
Remove donation stuff and update version
Browse files Browse the repository at this point in the history
  • Loading branch information
williamd1k0 committed Mar 15, 2019
1 parent 616a3e3 commit 0307f4a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 30 deletions.
3 changes: 1 addition & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
minSdkVersion 17
targetSdkVersion 27
versionCode 26
versionName "1.7.3"
versionName "0.1.3"
resConfigs "en", "zh-rCN"
}

Expand Down Expand Up @@ -64,5 +64,4 @@ dependencies {
implementation 'com.github.bumptech.glide:glide:4.0.0'
implementation 'com.wang.avi:library:2.1.3'
implementation 'com.google.code.gson:gson:2.8.1'
implementation 'moe.feng:AlipayZeroSdk:1.1'
}
18 changes: 0 additions & 18 deletions app/src/main/java/me/iacn/mbestyle/ui/fragment/AboutFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import me.iacn.mbestyle.ui.activity.LicenseActivity;
import me.iacn.mbestyle.ui.widget.AboutItem;
import me.iacn.mbestyle.util.GlideUtils;
import moe.feng.alipay.zerosdk.AlipayZeroSdk;

/**
* Created by iAcn on 2017/2/18
Expand All @@ -28,7 +27,6 @@ public class AboutFragment extends BaseFragment implements View.OnClickListener
private AboutItem aiVersion;
private AboutItem aiDesigner;
private AboutItem aiDeveloper;
private AboutItem aiDonate;
private AboutItem aiOpenSource;

@Override
Expand All @@ -42,7 +40,6 @@ protected void findView() {
aiVersion = (AboutItem) findViewById(R.id.ai_version);
aiDesigner = (AboutItem) findViewById(R.id.ai_designer);
aiDeveloper = (AboutItem) findViewById(R.id.ai_developer);
aiDonate = (AboutItem) findViewById(R.id.ai_donate);
aiOpenSource = (AboutItem) findViewById(R.id.ai_open_source);
}

Expand All @@ -51,7 +48,6 @@ protected void setListener() {
aiVersion.setOnClickListener(this);
aiDesigner.setOnClickListener(this);
aiDeveloper.setOnClickListener(this);
aiDonate.setOnClickListener(this);
aiOpenSource.setOnClickListener(this);
}

Expand All @@ -70,9 +66,6 @@ public void onClick(View v) {
case R.id.ai_developer:
openUrl("http://coolapk.com/u/532152");
break;
case R.id.ai_donate:
openAliPay();
break;
case R.id.ai_open_source:
startActivity(new Intent(getActivity(), LicenseActivity.class));
break;
Expand All @@ -88,15 +81,4 @@ private void openUrl(String url) {
}
}

private void openAliPay() {
if (AlipayZeroSdk.hasInstalledAlipayClient(getActivity())) {
AlipayZeroSdk.startAlipayClient(getActivity(), "aex08398iixbcgfl5ryqk3c");
} else {
((ClipboardManager) getActivity().getSystemService(Context.CLIPBOARD_SERVICE))
.setPrimaryClip(ClipData.newPlainText(null, "18588533502"));

Toast.makeText(getActivity(),
"未安装支付宝客户端\n已将支付宝ID复制到剪贴板", Toast.LENGTH_SHORT).show();
}
}
}
Binary file modified app/src/main/res/drawable-nodpi/adm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 0 additions & 7 deletions app/src/main/res/layout/fragment_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@
app:summary="iAcn"
app:title="开发" />

<me.iacn.mbestyle.ui.widget.AboutItem
android:id="@+id/ai_donate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:summary="点击会尝试打开支付宝"
app:title="捐赠" />

<me.iacn.mbestyle.ui.widget.AboutItem
android:id="@+id/ai_open_source"
android:layout_width="match_parent"
Expand Down
3 changes: 0 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ buildscript {
allprojects {
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
google()
}
}
Expand Down

0 comments on commit 0307f4a

Please sign in to comment.