Skip to content

Commit

Permalink
适配4637版本
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-wei committed Jul 6, 2019
1 parent 87abed2 commit 27f1253
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ android {
applicationId "com.sky.xposed.rimet"
minSdkVersion 21
targetSdkVersion 27
versionCode 10
versionName "1.2.1"
versionCode 15
versionName "1.2.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
ndk {
abiFilters "armeabi-v7a"//, "arm64-v8a", "x86","arm64-v8a","x86_64"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import com.sky.xposed.rimet.data.config.RimetConfig4630;
import com.sky.xposed.rimet.data.config.RimetConfig4633;
import com.sky.xposed.rimet.data.config.RimetConfig4636;
import com.sky.xposed.rimet.data.config.RimetConfig4637;
import com.sky.xposed.rimet.data.model.ConfigModel;
import com.sky.xposed.rimet.data.model.VersionModel;
import com.sky.xposed.rimet.plugin.interfaces.XConfig;
Expand Down Expand Up @@ -147,7 +148,7 @@ private static final class InternalVersionManager implements XVersionManager {
private final static Map<String, Class<? extends RimetConfig>> CONFIG_MAP = new LinkedHashMap<>();

static {
// 微信版本配置
// 钉钉版本配置
CONFIG_MAP.put("4.6.17", RimetConfig4617.class);
CONFIG_MAP.put("4.6.18", RimetConfig4618.class);
CONFIG_MAP.put("4.6.20", RimetConfig4618.class);
Expand All @@ -156,7 +157,8 @@ private static final class InternalVersionManager implements XVersionManager {
CONFIG_MAP.put("4.6.29", RimetConfig4629.class);
CONFIG_MAP.put("4.6.30", RimetConfig4630.class);
CONFIG_MAP.put("4.6.33", RimetConfig4633.class);
// CONFIG_MAP.put("4.6.36", RimetConfig4636.class);
CONFIG_MAP.put("4.6.36", RimetConfig4636.class);
CONFIG_MAP.put("4.6.37", RimetConfig4637.class);
}

private VersionInfo mVersionInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* Copyright (c) 2019 The sky Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.sky.xposed.rimet.data.config;

import com.sky.xposed.rimet.data.M;

/**
* Created by sky on 2019/1/14.
*/
public class RimetConfig4637 extends RimetConfig {

@Override
public RimetConfig loadConfig() {

/** Class */
add(M.classz.class_rimet_LauncherApplication, "com.alibaba.android.rimet.LauncherApplication");
add(M.classz.class_dingtalkbase_multidexsupport_DDApplication, "com.alibaba.android.dingtalkbase.multidexsupport.DDApplication");
add(M.classz.class_defpackage_MessageDs, "jou,jou"); // MessageDs
add(M.classz.class_plugin_webwx_ui_ExtDeviceWXLoginUI, "com.tencent.mm.plugin.webwx.ui.ExtDeviceWXLoginUI");
add(M.classz.class_defpackage_ServiceFactory, "kog,kog"); // ServiceFactory
add(M.classz.class_android_dingtalk_redpackets_idl_service_RedEnvelopPickIService, "com.alibaba.android.dingtalk.redpackets.idl.service.RedEnvelopPickIService");
add(M.classz.class_defpackage_RedPacketsRpc, "clb"); // RedPacketsRpc
add(M.classz.class_defpackage_RedPacketsRpc_9, "clb$9");
add(M.classz.class_lightapp_runtime_LightAppRuntimeReverseInterfaceImpl, "com.alibaba.lightapp.runtime.LightAppRuntimeReverseInterfaceImpl");
add(M.classz.class_android_dingtalk_redpackets_activities_FestivalRedPacketsPickActivity, "com.alibaba.android.dingtalk.redpackets.activities.FestivalRedPacketsPickActivity");
add(M.classz.class_android_dingtalk_redpackets_activities_PickRedPacketsActivity, "com.alibaba.android.dingtalk.redpackets.activities.PickRedPacketsActivity");
add(M.classz.class_android_user_settings_activity_NewSettingActivity, "com.alibaba.android.user.settings.activity.NewSettingActivity");
add(M.classz.class_wukong_im_base_IMDatabase, "com.alibaba.wukong.im.base.IMDatabase");

/** Method */
add(M.method.method_dingtalkbase_multidexsupport_DDApplication_onCreate, "onCreate");
add(M.method.method_defpackage_MessageDs_handler, "a,a"); // INSERT,IGNORE,INSERT_FAIL
add(M.method.method_android_dingtalkim_base_model_typeValue, "typeValue");
add(M.method.method_wukong_im_message_MessageImpl_messageContent, "messageContent");
add(M.method.method_wukong_im_message_MessageContentImpl_contents, "contents");
add(M.method.method_defpackage_RedPacketsRpc_newInstance, "a");
add(M.method.method_defpackage_ServiceFactory_getService, "a,a");
add(M.method.method_android_dingtalk_redpackets_idl_service_RedEnvelopPickIService_pickRedEnvelopCluster, "pickRedEnvelopCluster");
add(M.method.method_lightapp_runtime_LightAppRuntimeReverseInterfaceImpl_initSecurityGuard, "initSecurityGuard");
add(M.method.method_android_dingtalk_redpackets_activities_FestivalRedPacketsPickActivity_initView, "a");
add(M.method.method_android_dingtalk_redpackets_activities_PickRedPacketsActivity_initView, "a");
add(M.method.method_android_user_settings_activity_NewSettingActivity_onCreate, "onCreate");
add(M.method.method_defpackage_MessageDs_recall, "a,a");
add(M.method.method_wukong_im_conversation_ConversationImpl_latestMessage, "latestMessage");
add(M.method.method_wukong_im_base_IMDatabase_getWritableDatabase, "getWritableDatabase");
add(M.method.method_defpackage_MessageDs_update, "a,a");
add(M.method.method_wukong_im_message_MessageContentImpl_TextContentImpl_text, "text");
add(M.method.method_wukong_im_message_MessageContentImpl_TextContentImpl_setText, "setText");

/** Field */
add(M.field.field_android_dingtalkim_base_model_DingtalkMessage_msgDisplayType, "msgDisplayType");
add(M.field.field_wukong_im_message_MessageContentImpl_CustomMessageContentImpl_mExtension, "mExtension");
add(M.field.field_android_dingtalkim_base_model_DingtalkMessage_mConversation, "mConversation");

/** Key */
add(M.key.key_sid, "sid");
add(M.key.key_clusterid, "clusterid");

/** Res */
add(M.res.res_iv_pick, "iv_pick");
add(M.res.res_btn_pick, "btn_pick");
add(M.res.res_setting_msg_notice, "setting_msg_notice");

return this;
}
}

0 comments on commit 27f1253

Please sign in to comment.