Skip to content

Commit

Permalink
Merge pull request #4 from nov30th/mine
Browse files Browse the repository at this point in the history
Label updates & Gradle updates.
  • Loading branch information
nov30th authored Feb 16, 2022
2 parents 4c7ef16 + 0c7c353 commit dcafa07
Show file tree
Hide file tree
Showing 23 changed files with 103 additions and 246 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Android CI
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]

Expand All @@ -14,10 +13,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: set up JDK 8
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '8'
java-version: '11'
distribution: 'adopt'
cache: gradle

Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,7 @@ fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

.DS_Store
app/release/**
app/debug/**
36 changes: 33 additions & 3 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

38 changes: 16 additions & 22 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,38 +1,32 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion '27.0.3'
compileSdkVersion 30
// buildToolsVersion '27.0.3'

defaultConfig {
applicationId "im.hoho.alipayInstallB"
minSdkVersion 21
targetSdkVersion 25
versionCode 62
versionName "2.4.0-Beta"
targetSdkVersion 30
versionCode 63
versionName "2.4.0-Gamma"
// testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// buildTypes {
// release {
// minifyEnabled false
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// }
// }
}

repositories {
jcenter();
mavenCentral()
maven { url "https://api.xposed.info/" }
}

dependencies {
provided 'de.robv.android.xposed:api:82'
compile fileTree(include: ['*.jar'], dir: 'libs')
// androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
// exclude group: 'com.android.support', module: 'support-annotations'
// })
compile 'com.android.support:appcompat-v7:25.4.0'
compile 'com.alibaba:fastjson:1.1.72.android'

// compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compileOnly 'de.robv.android.xposed:api:82'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.alibaba:fastjson:1.1.72.android'
}
1 change: 0 additions & 1 deletion app/release/output.json

This file was deleted.

9 changes: 6 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
android:supportsRtl="true">
<meta-data
android:name="xposedmodule"
android:value="true" />
Expand All @@ -18,7 +17,11 @@
android:name="xposedminversion"
android:value="53" />

<activity android:name="im.hoho.alipayInstallB.MainActivity">
<meta-data android:name="xposedscope" android:resource="@array/xposed_scopes" />


<activity android:name="im.hoho.alipayInstallB.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
39 changes: 25 additions & 14 deletions app/src/main/java/im/hoho/alipayInstallB/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
package im.hoho.alipayInstallB;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

// private Switch switchEnableMatchSee;
// private Switch switchEnableSoul;
//
//
// private SharedPreferences sp;
// private SharedPreferences.Editor editor;
private ListView listview;
private TextView textView;
public class MainActivity extends Activity {

//

Expand All @@ -25,10 +20,10 @@ protected void onCreate(Bundle savedInstanceState) {

setContentView(R.layout.activity_main);

listview = (ListView) findViewById(R.id.listview);
textView = (TextView) findViewById(R.id.textView2);
ListView listview = (ListView) findViewById(R.id.listview);
TextView textView = (TextView) findViewById(R.id.textView2);

textView.setText("2.4.0-Beta");
textView.setText("2.4.0-Gamma");

listview.setDividerHeight(0);//屏蔽掉listview的横线
listview.setDivider(null);
Expand All @@ -37,12 +32,28 @@ protected void onCreate(Bundle savedInstanceState) {
"支付宝付款显示钻石会员背景。",
"自定义付款码皮肤(可随机变换).",
"没有界面控件,请参考文档操作。",
"",
"文档及源代码项目地址:",
"https://github.com/nov30th/AlipayHighHeadsomeRichAndroid",

};
ArrayAdapter<String> adapter = new ArrayAdapter<String>(
this,
android.R.layout.simple_expandable_list_item_1,
listContent);
listview.setAdapter(adapter);
listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
String text = (String) ((TextView) view).getText();
if (text.contains("https")){
Uri uri = Uri.parse(text);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(uri);
startActivity(intent);
}
}
});

}
}
4 changes: 2 additions & 2 deletions app/src/main/java/im/hoho/alipayInstallB/PluginMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public PluginMain() {
public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam lpparam) throws Throwable {


if (lpparam.packageName.contains("com.eg.android.AlipayGphone")) {
if (lpparam.packageName.equals("com.eg.android.AlipayGphone")) {
XposedBridge.log("Loaded App: " + lpparam.packageName);
XposedBridge.log("Powered by HOHO`` 20220107");
XposedBridge.log("Powered by HOHO`` 20220216");

XposedHelpers.findAndHookMethod("com.alipay.mobilegw.biz.shared.processer.login.UserLoginResult",
lpparam.classLoader,
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<ListView
android:id="@+id/listview"
android:layout_width="wrap_content"
android:layout_height="490dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" />
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginTop="55dp" />

<TextView
android:id="@+id/textView2"
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/res/values-w820dp/dimens.xml

This file was deleted.

4 changes: 0 additions & 4 deletions app/src/main/res/values-w820dp/strings.xml

This file was deleted.

5 changes: 5 additions & 0 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<resources>
<string-array name="xposed_scopes" >
<item>com.eg.android.AlipayGphone</item>
</string-array>
</resources>
64 changes: 1 addition & 63 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,65 +1,3 @@
<resources>
<string name="app_name">支付宝 InstallB 模块 By HOHO`` 裘小杰</string>
<string name="title_activity_settings">Settings</string>

<!-- Strings related to Settings -->

<!-- Example General settings -->
<string name="pref_header_general">General</string>

<string name="pref_title_social_recommendations">Enable social recommendations</string>
<string name="pref_description_social_recommendations">Recommendations for people to contact
based on your message history
</string>

<string name="pref_title_display_name">Display name</string>
<string name="pref_default_display_name">John Smith</string>

<string name="pref_title_add_friends_to_messages">Add friends to messages</string>
<string-array name="pref_example_list_titles">
<item>Always</item>
<item>When possible</item>
<item>Never</item>
</string-array>
<string-array name="pref_example_list_values">
<item>1</item>
<item>0</item>
<item>-1</item>
</string-array>

<!-- Example settings for Data & Sync -->
<string name="pref_header_data_sync">Data &amp; sync</string>

<string name="pref_title_sync_frequency">Sync frequency</string>
<string-array name="pref_sync_frequency_titles">
<item>15 minutes</item>
<item>30 minutes</item>
<item>1 hour</item>
<item>3 hours</item>
<item>6 hours</item>
<item>Never</item>
</string-array>
<string-array name="pref_sync_frequency_values">
<item>15</item>
<item>30</item>
<item>60</item>
<item>180</item>
<item>360</item>
<item>-1</item>
</string-array>

<string name="pref_title_system_sync_settings">System sync settings</string>

<!-- Example settings for Notifications -->
<string name="pref_header_notifications">Notifications</string>

<string name="pref_title_new_message_notifications">New message notifications</string>

<string name="pref_title_ringtone">Ringtone</string>
<string name="pref_ringtone_silent">Silent</string>

<string name="pref_title_vibrate">Vibrate</string>
<string name="enabled_my_room">Enabled My Room</string>
<string name="change_my_uid">Change My UID</string>
<string name="_1521763476">1521763476</string>
<string name="app_name">支付宝 InstallB 模块</string>
</resources>
11 changes: 0 additions & 11 deletions app/src/main/res/values/styles.xml

This file was deleted.

Loading

0 comments on commit dcafa07

Please sign in to comment.