merge from dev_1.1

This commit is contained in:
wangcongtao
2020-08-12 11:05:33 +08:00
493 changed files with 857 additions and 6808 deletions

View File

@@ -6,7 +6,7 @@ project.dependencies {
em1Implementation rootProject.ext.dependencies.moduleventpanelnoop
bydautoImplementation rootProject.ext.dependencies.moduleventpanelnoop
d8xxImplementation rootProject.ext.dependencies.moduleventpanel
d8xxImplementation rootProject.ext.dependencies.moduleventpanelnoop
em4Implementation rootProject.ext.dependencies.moduleventpanel
e8xxImplementation rootProject.ext.dependencies.moduleventpanel
f8xxImplementation rootProject.ext.dependencies.moduleventpanel
@@ -16,7 +16,7 @@ project.dependencies {
em1Implementation project(':modules:mogo-module-event-panel-noop')
bydautoImplementation project(':modules:mogo-module-event-panel-noop')
d8xxImplementation project(':modules:mogo-module-event-panel')
d8xxImplementation project(':modules:mogo-module-event-panel-noop')
em4Implementation project(':modules:mogo-module-event-panel')
e8xxImplementation project(':modules:mogo-module-event-panel')
f8xxImplementation project(':modules:mogo-module-event-panel')

View File

@@ -63,7 +63,7 @@ MOGO_BASE_SERVICES_SDK_VERSION = 1.2.1.22
## 工程外部模块
# 探路
MOGO_MODULE_TANLU_VERSION=1.3.1.20
MOGO_MODULE_TANLU_VERSION=1.3.1.24
# 车聊聊
CARCHATTING_VERSION=1.4.8
# 车聊聊接口
@@ -81,7 +81,7 @@ MOGO_MODULE_PUSH_NOOP_VERSION=1.1.5.6
# 广告资源位
MOGO_MODULE_AD_CARD_VERSION=1.0.1
# 探路上报和分享模块
TANLULIB_VERSION=1.3.1.20
TANLULIB_VERSION=1.3.1.24
MOGO_MODULE_EVENT_PANEL_VERSION = 1.0.0-SNAPSHOT
MOGO_MODULE_EVENT_PANEL_NOOP_VERSION = 1.0.0-SNAPSHOT
#左侧面板模块

View File

@@ -4,9 +4,11 @@ import android.content.Context;
import com.amap.api.services.core.AMapException;
import com.amap.api.services.geocoder.GeocodeAddress;
import com.amap.api.services.geocoder.GeocodeQuery;
import com.amap.api.services.geocoder.GeocodeResult;
import com.amap.api.services.geocoder.GeocodeSearch;
import com.amap.api.services.geocoder.RegeocodeAddress;
import com.amap.api.services.geocoder.RegeocodeQuery;
import com.amap.api.services.geocoder.RegeocodeResult;
import com.mogo.map.exception.MogoMapException;
import com.mogo.map.impl.amap.utils.ObjectUtils;
@@ -16,6 +18,7 @@ import com.mogo.map.search.geo.MogoGeocodeAddress;
import com.mogo.map.search.geo.MogoRegeocodeAddress;
import com.mogo.map.search.geo.query.MogoGeocodeQuery;
import com.mogo.map.search.geo.query.MogoRegeocodeQuery;
import com.mogo.utils.logger.Logger;
import java.util.ArrayList;
import java.util.List;
@@ -28,6 +31,8 @@ import java.util.List;
*/
public class GeocodeSearchClient implements IMogoGeoSearch, GeocodeSearch.OnGeocodeSearchListener {
private static final String TAG = "GeocodeSearchClient";
private GeocodeSearch mClient;
private IMogoGeoSearchListener mListener;
@@ -74,14 +79,32 @@ public class GeocodeSearchClient implements IMogoGeoSearch, GeocodeSearch.OnGeoc
@Override
public void getFromLocationAsyn( MogoRegeocodeQuery query ) {
if ( mClient != null ) {
mClient.getFromLocationAsyn( ObjectUtils.fromMogo( query ) );
if ( query == null ) {
Logger.e( TAG, "query parameter is null." );
return;
}
RegeocodeQuery origin = ObjectUtils.fromMogo( query );
if ( origin == null || !query.check() ) {
Logger.e( TAG, "query parameter is null or no point parameter." );
return;
}
mClient.getFromLocationAsyn( origin );
}
}
@Override
public void getFromLocationNameAsyn( MogoGeocodeQuery query ) {
if ( mClient != null ) {
mClient.getFromLocationNameAsyn( ObjectUtils.fromMogo( query ) );
if ( query == null ) {
Logger.e( TAG, "query parameter is null." );
return;
}
GeocodeQuery origin = ObjectUtils.fromMogo( query );
if ( origin == null || !query.check() ) {
Logger.e( TAG, "query parameter is null or locationName is empty." );
return;
}
mClient.getFromLocationNameAsyn( origin );
}
}

View File

@@ -2,6 +2,7 @@ package com.mogo.map.search.geo.query;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
/**
* @author congtaowang
@@ -29,6 +30,12 @@ public class MogoGeocodeQuery implements Parcelable {
this.city = city;
}
public boolean check(){
if ( TextUtils.isEmpty( locationName ) ) {
return false;
}
return true;
}
@Override
public int describeContents() {

View File

@@ -50,6 +50,18 @@ public class MogoRegeocodeQuery implements Parcelable {
this.poiType = poiType;
}
public boolean check() {
if ( point == null ) {
return false;
}
if ( point.lat < 1 && point.lon < 1 ) {
return false;
}
if ( radius < 0 ) {
return false;
}
return true;
}
@Override
public int describeContents() {

View File

@@ -21,6 +21,7 @@ import com.mogo.module.apps.model.AppEnum;
import com.mogo.module.apps.model.AppInfo;
import com.mogo.module.apps.model.NavigatorApps;
import com.mogo.module.apps.view.OnAiAssistClickListener;
import com.mogo.service.fragmentmanager.FragmentStackTransactionListener;
import com.mogo.utils.AppUtils;
import com.mogo.utils.CommonUtils;
@@ -33,7 +34,9 @@ import java.util.Map;
* <p>
* 描述
*/
public class AppNavigatorFragment extends MvpFragment< AppNavigatorView, AppNavigatorPresenter > implements AppNavigatorView {
public class AppNavigatorFragment extends MvpFragment< AppNavigatorView, AppNavigatorPresenter >
implements AppNavigatorView,
FragmentStackTransactionListener {
private static final String TAG = "AppNavigatorFragment";
@@ -74,14 +77,17 @@ public class AppNavigatorFragment extends MvpFragment< AppNavigatorView, AppNavi
mAIAssist.performClick();
} );
AppServiceHandler.getApis().getFragmentManagerApi().addMainFragmentStackTransactionListener( size -> {
// 主页 fragment 栈变化的时候,改变动画状态
if ( size == 0 ) {
mAnim.start();
} else {
mAnim.stop();
}
} );
AppServiceHandler.getApis().getFragmentManagerApi().addMainFragmentStackTransactionListener( this );
}
@Override
public void onTransaction( int size ) {
// 主页 fragment 栈变化的时候,改变动画状态
if ( size == 0 ) {
mAnim.start();
} else {
mAnim.stop();
}
}
@Override
@@ -151,5 +157,6 @@ public class AppNavigatorFragment extends MvpFragment< AppNavigatorView, AppNavi
if ( mPresenter != null ) {
mPresenter.onDestroy( getViewLifecycleOwner() );
}
AppServiceHandler.getApis().getFragmentManagerApi().removeMainFragmentStackTransactionListener( this );
}
}

View File

@@ -115,6 +115,7 @@ public class AppNavigatorPresenter extends Presenter< AppNavigatorView > impleme
@Override
public void onDestroy( @NonNull LifecycleOwner owner ) {
super.onDestroy( owner );
AppServiceHandler.getApis().getRegisterCenterApi().unregisterMogoNaviListener( TAG );
AppServiceHandler.getApis().getIntentManagerApi().unregisterIntentListener( AppsConst.COMMAND_OPERATION, this );
}

View File

@@ -45,7 +45,6 @@ public class AppsPresenter extends Presenter< AppsView > {
private IMogoServiceApis mApis;
private IMogoCardManager mCardManager;
private IMogoStatusManager mMogoStatusManager;
public AppsPresenter( AppsView view ) {
super( view );
@@ -71,7 +70,6 @@ public class AppsPresenter extends Presenter< AppsView > {
} );
mAnalytics = mApis.getAnalyticsApi();
mMogoStatusManager = mApis.getStatusManagerApi();
}
private void renderAppsList() {

View File

@@ -18,14 +18,14 @@ public interface V2XPoiTypeEnum extends MarkerPoiTypeEnum {
String ALERT_TRAFFIC_LIGHT_WARNING = "99996";
// 故障车辆
int ALERT_CAR_TROUBLE_WARNING = 20007;
// 疲劳驾驶
String ALERT_FATIGUE_DRIVING = "99993";
// 违章停车
String ALERT_ILLEGAL_PARK = "99992";
// TODO 这里目前是演示DEMO会用到想着是打算商用先这么处理的
// 取快递
String ALERT_TRAFFIC_EXPRESS = "99995";
// 顺风车
String ALERT_TRAFFIC_TAXI = "99994";
// 疲劳驾驶
String ALERT_FATIGUE_DRIVING = "99993";
// 违章停车
String ALERT_ILLEGAL_PARK = "99992";
}

View File

@@ -3,6 +3,7 @@ package com.zhidao.mogo.module.event.panel.adapter
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.zhidao.mogo.module.event.panel.fragment.MyShareFragment
import com.zhidao.mogo.module.event.panel.fragment.ShareEventsFragment
import com.zhidao.mogo.module.event.panel.fragment.SurroundingEventFragment
import com.zhidao.mogo.module.event.panel.fragment.TripRecordFragment
@@ -12,7 +13,7 @@ import com.zhidao.mogo.module.event.panel.fragment.TripRecordFragment
* @author tongchenfei
*/
class EventPagerAdapter(fragment: Fragment) : FragmentStateAdapter(fragment) {
private val fragments:Array<Fragment> = arrayOf(TripRecordFragment(), SurroundingEventFragment(), MyShareFragment())
private val fragments:Array<Fragment> = arrayOf(TripRecordFragment(), SurroundingEventFragment(), ShareEventsFragment())
/**
* 目前一共就三个fragment

View File

@@ -0,0 +1,143 @@
package com.zhidao.mogo.module.event.panel.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.zhidao.mogo.module.event.panel.R;
import com.zhidao.mogo.module.event.panel.bean.ShareEventDescription;
import com.zhidao.mogo.module.event.panel.bean.ShareEventItem;
import java.util.ArrayList;
public class ShareEventAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
private Context context;
private ArrayList<ShareEventItem> dataArrayList;
private Object Tag = "ShareEventAdapter";
private final LayoutInflater shareLayoutInflater;
public static enum ITEM_TYPE {
ITEM_TYPE_NUM_DES,
ITEM_TYPE_SHARE_LIST_ITEM,
ITEM_TYPE_SHARE_EMPTY
}
public ShareEventAdapter(Context context, ArrayList<ShareEventItem> dataArrayList) {
this.context = context;
this.dataArrayList = dataArrayList;
shareLayoutInflater = LayoutInflater.from(context);
}
@NonNull
@Override
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
//根据viewType创建自定义布局
if (viewType == ITEM_TYPE.ITEM_TYPE_NUM_DES.ordinal()) {
View v = shareLayoutInflater.inflate(R.layout.module_event_panel_share_description, parent,
false);
shareDescriptionViewHolder holder = new shareDescriptionViewHolder(v);
return holder;
} else if ((viewType == ITEM_TYPE.ITEM_TYPE_SHARE_LIST_ITEM.ordinal())) {
View v = shareLayoutInflater.inflate(R.layout.module_event_panel_share_item, parent,
false);
shareItemViewHolder holder = new shareItemViewHolder(v);
return holder;
} else {
View v = shareLayoutInflater.inflate(R.layout.module_event_panel_share_empty, parent,
false);
shareEmptyViewHolder holder = new shareEmptyViewHolder(v);
return holder;
}
}
@Override
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
if (position == 0) {
ShareEventDescription data = new ShareEventDescription();
data.shareNum = "12";
data.approveNum = "10";
((shareDescriptionViewHolder) holder).shareNumTextView.setText(data.shareNum);
((shareDescriptionViewHolder) holder).approveNumTextView.setText(data.approveNum);
} else {
if (dataArrayList.size() > 0) {
ShareEventItem data = dataArrayList.get(position - 1);
data.usefulNum = "2";
data.uselessNum = "3";
((shareItemViewHolder) holder).caseStyleTextView.setText(data.caseStyle);
((shareItemViewHolder) holder).caseAddressTextView.setText(data.caseAddress);
((shareItemViewHolder) holder).caseTimeTextView.setText(data.caseTime);
((shareItemViewHolder) holder).caseUsefulTextView.setText(data.usefulNum);
((shareItemViewHolder) holder).caseUselessTextView.setText(data.uselessNum);
}
}
}
@Override
public int getItemCount() {
return dataArrayList.size() + dataArrayList.size() > 0 ? 1 : 2;
}
@Override
public int getItemViewType(int position) {
switch (dataArrayList.size()) {
case 0:
return position == 0 ? ITEM_TYPE.ITEM_TYPE_NUM_DES.ordinal() : ITEM_TYPE.ITEM_TYPE_SHARE_EMPTY.ordinal();
}
int type = position == 0 ? ITEM_TYPE.ITEM_TYPE_NUM_DES.ordinal() : ITEM_TYPE.ITEM_TYPE_SHARE_LIST_ITEM.ordinal();
return type;
}
/*
* 分享列表
* */
class shareItemViewHolder extends RecyclerView.ViewHolder {
private TextView caseStyleTextView;
private TextView caseAddressTextView;
private TextView caseTimeTextView;
private TextView caseUsefulTextView;
private TextView caseUselessTextView;
public shareItemViewHolder(@NonNull View itemView) {
super(itemView);
caseStyleTextView = itemView.findViewById(R.id.road_case_style);
caseAddressTextView = itemView.findViewById(R.id.road_case_address);
caseTimeTextView = itemView.findViewById(R.id.road_case_share_time);
caseUsefulTextView = itemView.findViewById(R.id.road_case_useful_num);
caseUselessTextView = itemView.findViewById(R.id.road_case_useless_num);
}
}
/*
* 分享次数,热心指数...
* */
class shareDescriptionViewHolder extends RecyclerView.ViewHolder {
private TextView shareNumTextView;
private TextView approveNumTextView;
public shareDescriptionViewHolder(@NonNull View itemView) {
super(itemView);
shareNumTextView = itemView.findViewById(R.id.share_num);
approveNumTextView = itemView.findViewById(R.id.share_approve);
}
}
/*
* 去分享
* */
class shareEmptyViewHolder extends RecyclerView.ViewHolder {
public shareEmptyViewHolder(@NonNull View itemView) {
super(itemView);
}
}
}

View File

@@ -0,0 +1,6 @@
package com.zhidao.mogo.module.event.panel.bean;
public class ShareEventDescription {
public String shareNum;
public String approveNum;
}

View File

@@ -0,0 +1,13 @@
package com.zhidao.mogo.module.event.panel.bean;
import java.io.Serializable;
public class ShareEventItem implements Serializable {
public String caseStyle;
public String caseAddress;
public String caseTime;
public String usefulNum;
public String uselessNum;
}

View File

@@ -10,7 +10,7 @@ class MyShareFragment : MvpFragment<MyShareFragment, MySharePresenter>() {
*
* @return
*/
override fun getLayoutId(): Int = R.layout.module_event_panel_fragment_my_share
override fun getLayoutId(): Int = R.layout.module_event_panel_share_item
/**
* 初始化控件必须在初始化完成之后才可以实例化presenter避免

View File

@@ -0,0 +1,71 @@
package com.zhidao.mogo.module.event.panel.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.mogo.commons.mvp.MvpFragment;
import com.zhidao.mogo.module.event.panel.R;
import com.zhidao.mogo.module.event.panel.adapter.ShareEventAdapter;
import com.zhidao.mogo.module.event.panel.bean.ShareEventItem;
import com.zhidao.mogo.module.event.panel.presenter.ShareEventsPresenter;
import java.util.ArrayList;
public class ShareEventsFragment extends MvpFragment<ShareEventsFragment, ShareEventsPresenter> {
private RecyclerView recyclerView;
private View view;
private ShareEventAdapter adapter;
private ArrayList<ShareEventItem> dataArrayList = new ArrayList<ShareEventItem>();
@Override
protected int getLayoutId() {
return R.layout.module_event_panel_share_recylerview;
}
@Override
protected void initViews() {
}
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
view = inflater.inflate(R.layout.module_event_panel_share_recylerview, container, false);
initRecyclerView();
initData();
return view;
}
private void initRecyclerView() {
recyclerView = view.findViewById(R.id.road_case_share_list);
adapter = new ShareEventAdapter(getActivity(),dataArrayList);
recyclerView.setAdapter(adapter);
LinearLayoutManager linearLayoutManager =
new LinearLayoutManager( getActivity(), LinearLayoutManager.VERTICAL, false );
recyclerView.setLayoutManager(linearLayoutManager);
}
private void initData() {
// for (int i = 0; i < 12; i++) {
// ShareEventItem data = new ShareEventItem();
// data.caseStyle = "道路拥堵";
// data.caseAddress = "环球贸易中心";
// data.caseTime = "2020-07-21 12:00:00";
// dataArrayList.add(data);
// }
}
@NonNull
@Override
protected ShareEventsPresenter createPresenter() {
return new ShareEventsPresenter(this);
}
}

View File

@@ -0,0 +1,11 @@
package com.zhidao.mogo.module.event.panel.presenter;
import com.mogo.commons.mvp.IView;
import com.mogo.commons.mvp.Presenter;
import com.zhidao.mogo.module.event.panel.fragment.ShareEventsFragment;
public class ShareEventsPresenter extends Presenter <ShareEventsFragment>{
public ShareEventsPresenter(IView view) {
super((ShareEventsFragment) view);
}
}

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/clPanelContainer"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tvTitle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="My Share"
android:textColor="#fff"
android:textSize="40sp" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="80dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/share_num"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_gravity="center"
android:gravity="center"
android:text="0"
android:textColor="#FFFFFF"
android:textSize="25sp" />
<TextView
android:id="@+id/shre_num_des"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_gravity="center"
android:gravity="center"
android:text="分享次数"
android:textColor="#FFFFFF"
android:textSize="20sp" />
</LinearLayout>
<ImageView
android:layout_width="1dp"
android:layout_height="80dp"
android:background="#FFFFFF" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="80dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/share_approve"
android:layout_width="match_parent"
android:layout_height="50dp"
android:gravity="center"
android:text="0"
android:textColor="#FFFFFF"
android:textSize="25sp" />
<TextView
android:id="@+id/share_approve_des"
android:layout_width="match_parent"
android:layout_height="30dp"
android:gravity="center"
android:text="车友认同次数"
android:textColor="#FFFFFF"
android:textSize="20sp" />
</LinearLayout>
<ImageView
android:layout_width="1dp"
android:layout_height="80dp"
android:background="#FFFFFF" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="80dp"
android:layout_weight="1"
android:orientation="vertical">
<ImageView
android:id="@+id/share_index"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@drawable/amap_ride" />
<TextView
android:id="@+id/share_index_des"
android:layout_width="match_parent"
android:layout_height="30dp"
android:gravity="center"
android:text="热心指数"
android:textColor="#FFFFFF"
android:textSize="20sp" />
</LinearLayout>
</LinearLayout>

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/share_event_guide_des"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_centerHorizontal="true"
android:gravity="center"
android:text="小窍门:分享路况、点赞其他车友,有助于提高热心指数"
android:textColor="#FFFFFF"
android:textSize="16sp">
</TextView>
<TextView
android:id="@+id/share_event_null_des"
android:layout_width="wrap_content"
android:layout_height="100dp"
android:layout_below="@+id/share_event_guide_des"
android:layout_centerHorizontal="true"
android:gravity="center"
android:text="你还没有分享过道路事件,快去试试吧" />
<Button
android:id="@+id/shre_event_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/share_event_null_des"
android:layout_centerHorizontal="true"
android:background="#FFFFFF"
android:text="去分享"
android:textSize="25sp" />
</RelativeLayout>

View File

@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/road_case_liset_item"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/road_case_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="20dp"
android:paddingTop="20dp"
android:background="#1E90FF"
android:text="道路类型"
android:textColor="#FFFFFF"
android:textSize="15sp" />
<TextView
android:id="@+id/road_case_address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/road_case_style"
android:gravity="center"
android:paddingLeft="15dp"
android:text="东城区北三环"
android:textColor="#FFFFFF"
android:textSize="20sp" />
<TextView
android:id="@+id/road_case_share_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/road_case_address"
android:gravity="center"
android:paddingLeft="20dp"
android:text="时间:"
android:textColor="#FFFFFF"
android:textSize="13sp" />
<Button
android:id="@+id/road_case_useless"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentRight="true"
android:layout_marginTop="25dp"
android:layout_marginRight="20dp"
android:background="@drawable/amap_bus" />
<TextView
android:id="@+id/road_case_useless_num"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_below="@id/road_case_useless"
android:layout_alignLeft="@id/road_case_useless"
android:layout_alignRight="@id/road_case_useless"
android:gravity="center"
android:text="10"
android:textColor="#FFFFFF"
android:textSize="15sp" />
<TextView
android:id="@+id/road_case_uselful"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignTop="@id/road_case_useless"
android:layout_alignBottom="@id/road_case_useless"
android:layout_marginRight="20dp"
android:layout_toLeftOf="@id/road_case_useless"
android:background="@drawable/amap_ride" />
<TextView
android:id="@+id/road_case_useful_num"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_below="@id/road_case_useless"
android:layout_alignLeft="@id/road_case_uselful"
android:layout_alignRight="@id/road_case_uselful"
android:gravity="center"
android:text="5"
android:textColor="#FFFFFF"
android:textSize="15sp" />
</RelativeLayout>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/road_case_share_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:overScrollMode="never"
android:background="#000000"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"/>

View File

@@ -74,7 +74,8 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
IMogoNaviListener,
IMogoMapListener,
IMogoAimlessModeListener,
IMogoStatusChangedListener {
IMogoStatusChangedListener,
IMogoIntentListener{
private static final String TAG = "EntranceFragment";
@@ -246,24 +247,7 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
});
mApis.getIntentManagerApi().registerIntentListener(AUTONAVI_STANDARD_BROADCAST_RECV,
new IMogoIntentListener() {
@Override
public void onIntentReceived(String intentStr, Intent intent) {
int key_type = intent.getIntExtra("KEY_TYPE", 0);
int type = intent.getIntExtra("EXTRA_TYPE", -1);
int opera_type = intent.getIntExtra("EXTRA_OPERA", -1);
if (key_type == 10027) {
if (opera_type == 0) {
mCameraMode.setSelected(false);
} else if (opera_type == 1) {
mCameraMode.setSelected(true);
}
mCameraMode.setText(getString(mCameraMode.isSelected() ?
R.string.mode_car_up : R.string.mode_north_up));
}
}
});
mApis.getIntentManagerApi().registerIntentListener(AUTONAVI_STANDARD_BROADCAST_RECV, this);
MogoEntranceButtons.save(ButtonIndex.BUTTON1,
findViewById(R.id.module_entrance_id_button1));
MogoEntranceButtons.save(ButtonIndex.BUTTON2,
@@ -371,6 +355,22 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
TopViewAnimHelper.getInstance().removeAllView();
}
@Override
public void onIntentReceived(String intentStr, Intent intent) {
int key_type = intent.getIntExtra("KEY_TYPE", 0);
int type = intent.getIntExtra("EXTRA_TYPE", -1);
int opera_type = intent.getIntExtra("EXTRA_OPERA", -1);
if (key_type == 10027) {
if (opera_type == 0) {
mCameraMode.setSelected(false);
} else if (opera_type == 1) {
mCameraMode.setSelected(true);
}
mCameraMode.setText(getString(mCameraMode.isSelected() ?
R.string.mode_car_up : R.string.mode_north_up));
}
}
@Override
public void onNaviInfoUpdate(MogoNaviInfo naviinfo) {
if (naviinfo == null) {
@@ -592,4 +592,23 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
mCameraMode.setSelected(ui == EnumMapUI.NorthUP_2D);
mCameraMode.setText(getString(ui == EnumMapUI.NorthUP_2D ? R.string.mode_car_up : R.string.mode_north_up));
}
@Override
public void onDestroy() {
super.onDestroy();
if ( mMogoRegisterCenter != null ) {
mMogoRegisterCenter.unregisterMogoNaviListener(ExtensionsModuleConst.TYPE_ENTRANCE);
mMogoRegisterCenter.unregisterMogoMapListener(ExtensionsModuleConst.TYPE_ENTRANCE);
mMogoRegisterCenter.unregisterMogoAimlessModeListener(TAG);
}
if ( mStatusManager != null ) {
mStatusManager.unregisterStatusChangedListener(TAG, StatusDescriptor.UPLOADING, this);
mStatusManager.unregisterStatusChangedListener(TAG, StatusDescriptor.DISPLAY_OVERVIEW, this);
}
if ( mApis != null ) {
if ( mApis.getIntentManagerApi() != null ) {
mApis.getIntentManagerApi().unregisterIntentListener(AUTONAVI_STANDARD_BROADCAST_RECV, this);
}
}
}
}

View File

@@ -311,6 +311,7 @@ public class MainActivity extends MvpActivity< MainView, MainPresenter > impleme
mMogoMapUIController = null;
mMogoFragmentManager = null;
mServiceApis.getAdasControllerApi().release();
Logger.d( TAG, "destroy." );
mServiceApis.getRefreshStrategyControllerApi().clearAllData();
AIAssist.getInstance( this ).release();
}

View File

@@ -1,18 +0,0 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.mogo.module.push.base;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String LIBRARY_PACKAGE_NAME = "com.mogo.module.push.base";
/**
* @deprecated APPLICATION_ID is misleading in libraries. For the library package name use LIBRARY_PACKAGE_NAME
*/
@Deprecated
public static final String APPLICATION_ID = "com.mogo.module.push.base";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.1.5.5";
}

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mogo.module.push.base"
android:versionCode="1"
android:versionName="1.1.5.5" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="22" />
</manifest>

View File

@@ -1 +0,0 @@
[{"outputType":{"type":"AAPT_FRIENDLY_MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.1.5.5","enabled":true,"outputFile":"mogo-module-push-base-debug.aar","fullName":"debug","baseName":"debug"},"path":"AndroidManifest.xml","properties":{"packageId":"com.mogo.module.push.base","split":""}}]

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push-base\src\main\jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push-base\src\debug\jniLibs"/></dataSet></merger>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push-base\src\main\shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push-base\src\debug\shaders"/></dataSet></merger>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push-base\src\main\assets"/><source path="F:\Station\Launcher\modules\mogo-module-push-base\build\intermediates\shader_assets\debug\compileDebugShaders\out"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push-base\src\debug\assets"/></dataSet></merger>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push-base\src\main\res"/><source path="F:\Station\Launcher\modules\mogo-module-push-base\build\generated\res\rs\debug"/><source path="F:\Station\Launcher\modules\mogo-module-push-base\build\generated\res\resValues\debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push-base\src\main\res"/><source path="F:\Station\Launcher\modules\mogo-module-push-base\build\generated\res\rs\debug"/><source path="F:\Station\Launcher\modules\mogo-module-push-base\build\generated\res\resValues\debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push-base\src\debug\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push-base\src\debug\res"/></dataSet><mergedItems/></merger>

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mogo.module.push.base"
android:versionCode="1"
android:versionName="1.1.5.5" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="22" />
</manifest>

View File

@@ -1,2 +0,0 @@
R_DEF: Internal format may change without notice
local

View File

@@ -1,13 +0,0 @@
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 package="com.mogo.module.push.base"
4 android:versionCode="1"
5 android:versionName="1.1.5.5" >
6
7 <uses-sdk
8 android:minSdkVersion="19"
8-->F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
9 android:targetSdkVersion="22" />
9-->F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
10
11</manifest>

View File

@@ -1 +0,0 @@
[{"outputType":{"type":"MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.1.5.5","enabled":true,"outputFile":"mogo-module-push-base-debug.aar","fullName":"debug","baseName":"debug"},"path":"..\\..\\library_manifest\\debug\\AndroidManifest.xml","properties":{"packageId":"com.mogo.module.push.base","split":""}}]

View File

@@ -1,37 +0,0 @@
-- Merging decision tree log ---
manifest
ADDED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml:2:1-3:52
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml:2:1-3:52
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml:2:1-3:52
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml:2:1-3:52
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml:2:1-3:52
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml:2:1-3:52
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml:2:1-3:52
package
ADDED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml:3:5-40
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
android:versionName
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
ADDED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml:2:1-3:52
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
android:versionCode
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
ADDED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml:2:1-3:52
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
xmlns:android
ADDED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml:2:11-69
uses-sdk
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml reason: use-sdk injection requested
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
android:targetSdkVersion
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
ADDED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
android:minSdkVersion
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
ADDED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml
INJECTED from F:\Station\Launcher\modules\mogo-module-push-base\src\main\AndroidManifest.xml

View File

@@ -1,18 +0,0 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.mogo.module.push;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String LIBRARY_PACKAGE_NAME = "com.mogo.module.push";
/**
* @deprecated APPLICATION_ID is misleading in libraries. For the library package name use LIBRARY_PACKAGE_NAME
*/
@Deprecated
public static final String APPLICATION_ID = "com.mogo.module.push";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.1.6.2";
}

View File

@@ -1,20 +0,0 @@
package com.alibaba.android.arouter.routes;
import com.alibaba.android.arouter.facade.enums.RouteType;
import com.alibaba.android.arouter.facade.model.RouteMeta;
import com.alibaba.android.arouter.facade.template.IRouteGroup;
import com.mogo.module.push.PushModuleProvider;
import com.mogo.module.push.activity.PushMessageActivity;
import java.lang.Override;
import java.lang.String;
import java.util.Map;
/**
* DO NOT EDIT THIS FILE!!! IT WAS GENERATED BY AROUTER. */
public class ARouter$$Group$$push implements IRouteGroup {
@Override
public void loadInto(Map<String, RouteMeta> atlas) {
atlas.put("/push/ui", RouteMeta.build(RouteType.PROVIDER, PushModuleProvider.class, "/push/ui", "push", null, -1, -2147483648));
atlas.put("/push/ui/message", RouteMeta.build(RouteType.ACTIVITY, PushMessageActivity.class, "/push/ui/message", "push", null, -1, -2147483648));
}
}

View File

@@ -1,18 +0,0 @@
package com.alibaba.android.arouter.routes;
import com.alibaba.android.arouter.facade.enums.RouteType;
import com.alibaba.android.arouter.facade.model.RouteMeta;
import com.alibaba.android.arouter.facade.template.IProviderGroup;
import com.mogo.module.push.PushModuleProvider;
import java.lang.Override;
import java.lang.String;
import java.util.Map;
/**
* DO NOT EDIT THIS FILE!!! IT WAS GENERATED BY AROUTER. */
public class ARouter$$Providers$$mogomodulepush implements IProviderGroup {
@Override
public void loadInto(Map<String, RouteMeta> providers) {
providers.put("com.mogo.service.module.IMogoModuleProvider", RouteMeta.build(RouteType.PROVIDER, PushModuleProvider.class, "/push/ui", "push", null, -1, -2147483648));
}
}

View File

@@ -1,17 +0,0 @@
package com.alibaba.android.arouter.routes;
import com.alibaba.android.arouter.facade.template.IRouteGroup;
import com.alibaba.android.arouter.facade.template.IRouteRoot;
import java.lang.Class;
import java.lang.Override;
import java.lang.String;
import java.util.Map;
/**
* DO NOT EDIT THIS FILE!!! IT WAS GENERATED BY AROUTER. */
public class ARouter$$Root$$mogomodulepush implements IRouteRoot {
@Override
public void loadInto(Map<String, Class<? extends IRouteGroup>> routes) {
routes.put("push", ARouter$$Group$$push.class);
}
}

View File

@@ -1,220 +0,0 @@
package com.mogo.module.push.dao;
import android.database.Cursor;
import androidx.room.EntityDeletionOrUpdateAdapter;
import androidx.room.EntityInsertionAdapter;
import androidx.room.RoomDatabase;
import androidx.room.RoomSQLiteQuery;
import androidx.room.SharedSQLiteStatement;
import androidx.room.util.CursorUtil;
import androidx.room.util.DBUtil;
import androidx.sqlite.db.SupportSQLiteStatement;
import com.mogo.module.push.model.PushBean;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.ArrayList;
import java.util.List;
@SuppressWarnings({"unchecked", "deprecation"})
public final class PushBeanDao_Impl implements PushBeanDao {
private final RoomDatabase __db;
private final EntityInsertionAdapter<PushBean> __insertionAdapterOfPushBean;
private final EntityDeletionOrUpdateAdapter<PushBean> __deletionAdapterOfPushBean;
private final SharedSQLiteStatement __preparedStmtOfDeleteAll;
private final SharedSQLiteStatement __preparedStmtOfDeleteMin;
public PushBeanDao_Impl(RoomDatabase __db) {
this.__db = __db;
this.__insertionAdapterOfPushBean = new EntityInsertionAdapter<PushBean>(__db) {
@Override
public String createQuery() {
return "INSERT OR REPLACE INTO `PushBean` (`icon`,`title`,`content`,`image`,`qr`,`scheme`,`timestamp`) VALUES (?,?,?,?,?,?,?)";
}
@Override
public void bind(SupportSQLiteStatement stmt, PushBean value) {
if (value.getAppIcon() == null) {
stmt.bindNull(1);
} else {
stmt.bindString(1, value.getAppIcon());
}
if (value.getTitle() == null) {
stmt.bindNull(2);
} else {
stmt.bindString(2, value.getTitle());
}
if (value.getContent() == null) {
stmt.bindNull(3);
} else {
stmt.bindString(3, value.getContent());
}
if (value.getImageUrl() == null) {
stmt.bindNull(4);
} else {
stmt.bindString(4, value.getImageUrl());
}
if (value.getQRCode() == null) {
stmt.bindNull(5);
} else {
stmt.bindString(5, value.getQRCode());
}
if (value.getMainSchema() == null) {
stmt.bindNull(6);
} else {
stmt.bindString(6, value.getMainSchema());
}
stmt.bindLong(7, value.getTimestamp());
}
};
this.__deletionAdapterOfPushBean = new EntityDeletionOrUpdateAdapter<PushBean>(__db) {
@Override
public String createQuery() {
return "DELETE FROM `PushBean` WHERE `timestamp` = ?";
}
@Override
public void bind(SupportSQLiteStatement stmt, PushBean value) {
stmt.bindLong(1, value.getTimestamp());
}
};
this.__preparedStmtOfDeleteAll = new SharedSQLiteStatement(__db) {
@Override
public String createQuery() {
final String _query = "DELETE FROM pushBean";
return _query;
}
};
this.__preparedStmtOfDeleteMin = new SharedSQLiteStatement(__db) {
@Override
public String createQuery() {
final String _query = "DELETE FROM pushBean WHERE timestamp IN (SELECT MIN(timestamp) FROM pushBean)";
return _query;
}
};
}
@Override
public void insertAll(final PushBean... bean) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__insertionAdapterOfPushBean.insert(bean);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public void delete(final PushBean... bean) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__deletionAdapterOfPushBean.handleMultiple(bean);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public void deleteAll() {
__db.assertNotSuspendingTransaction();
final SupportSQLiteStatement _stmt = __preparedStmtOfDeleteAll.acquire();
__db.beginTransaction();
try {
_stmt.executeUpdateDelete();
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
__preparedStmtOfDeleteAll.release(_stmt);
}
}
@Override
public void deleteMin() {
__db.assertNotSuspendingTransaction();
final SupportSQLiteStatement _stmt = __preparedStmtOfDeleteMin.acquire();
__db.beginTransaction();
try {
_stmt.executeUpdateDelete();
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
__preparedStmtOfDeleteMin.release(_stmt);
}
}
@Override
public List<PushBean> getAll() {
final String _sql = "SELECT * FROM pushBean ORDER BY timestamp DESC";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
__db.assertNotSuspendingTransaction();
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfAppIcon = CursorUtil.getColumnIndexOrThrow(_cursor, "icon");
final int _cursorIndexOfTitle = CursorUtil.getColumnIndexOrThrow(_cursor, "title");
final int _cursorIndexOfContent = CursorUtil.getColumnIndexOrThrow(_cursor, "content");
final int _cursorIndexOfImageUrl = CursorUtil.getColumnIndexOrThrow(_cursor, "image");
final int _cursorIndexOfQRCode = CursorUtil.getColumnIndexOrThrow(_cursor, "qr");
final int _cursorIndexOfMainSchema = CursorUtil.getColumnIndexOrThrow(_cursor, "scheme");
final int _cursorIndexOfTimestamp = CursorUtil.getColumnIndexOrThrow(_cursor, "timestamp");
final List<PushBean> _result = new ArrayList<PushBean>(_cursor.getCount());
while(_cursor.moveToNext()) {
final PushBean _item;
_item = new PushBean();
final String _tmpAppIcon;
_tmpAppIcon = _cursor.getString(_cursorIndexOfAppIcon);
_item.setAppIcon(_tmpAppIcon);
final String _tmpTitle;
_tmpTitle = _cursor.getString(_cursorIndexOfTitle);
_item.setTitle(_tmpTitle);
final String _tmpContent;
_tmpContent = _cursor.getString(_cursorIndexOfContent);
_item.setContent(_tmpContent);
final String _tmpImageUrl;
_tmpImageUrl = _cursor.getString(_cursorIndexOfImageUrl);
_item.setImageUrl(_tmpImageUrl);
final String _tmpQRCode;
_tmpQRCode = _cursor.getString(_cursorIndexOfQRCode);
_item.setQRCode(_tmpQRCode);
final String _tmpMainSchema;
_tmpMainSchema = _cursor.getString(_cursorIndexOfMainSchema);
_item.setMainSchema(_tmpMainSchema);
final long _tmpTimestamp;
_tmpTimestamp = _cursor.getLong(_cursorIndexOfTimestamp);
_item.setTimestamp(_tmpTimestamp);
_result.add(_item);
}
return _result;
} finally {
_cursor.close();
_statement.release();
}
}
@Override
public int getAllCount() {
final String _sql = "SELECT count(1) FROM pushBean";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
__db.assertNotSuspendingTransaction();
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _result;
if(_cursor.moveToFirst()) {
_result = _cursor.getInt(0);
} else {
_result = 0;
}
return _result;
} finally {
_cursor.close();
_statement.release();
}
}
}

View File

@@ -1,144 +0,0 @@
package com.mogo.module.push.dao;
import androidx.room.DatabaseConfiguration;
import androidx.room.InvalidationTracker;
import androidx.room.RoomOpenHelper;
import androidx.room.RoomOpenHelper.Delegate;
import androidx.room.RoomOpenHelper.ValidationResult;
import androidx.room.util.DBUtil;
import androidx.room.util.TableInfo;
import androidx.room.util.TableInfo.Column;
import androidx.room.util.TableInfo.ForeignKey;
import androidx.room.util.TableInfo.Index;
import androidx.sqlite.db.SupportSQLiteDatabase;
import androidx.sqlite.db.SupportSQLiteOpenHelper;
import androidx.sqlite.db.SupportSQLiteOpenHelper.Callback;
import androidx.sqlite.db.SupportSQLiteOpenHelper.Configuration;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
@SuppressWarnings({"unchecked", "deprecation"})
public final class PushBeanDatabase_Impl extends PushBeanDatabase {
private volatile PushBeanDao _pushBeanDao;
@Override
protected SupportSQLiteOpenHelper createOpenHelper(DatabaseConfiguration configuration) {
final SupportSQLiteOpenHelper.Callback _openCallback = new RoomOpenHelper(configuration, new RoomOpenHelper.Delegate(1) {
@Override
public void createAllTables(SupportSQLiteDatabase _db) {
_db.execSQL("CREATE TABLE IF NOT EXISTS `PushBean` (`icon` TEXT NOT NULL, `title` TEXT NOT NULL, `content` TEXT NOT NULL, `image` TEXT NOT NULL, `qr` TEXT NOT NULL, `scheme` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, PRIMARY KEY(`timestamp`))");
_db.execSQL("CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)");
_db.execSQL("INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'a297c98624a6b7df90797298fa47318d')");
}
@Override
public void dropAllTables(SupportSQLiteDatabase _db) {
_db.execSQL("DROP TABLE IF EXISTS `PushBean`");
if (mCallbacks != null) {
for (int _i = 0, _size = mCallbacks.size(); _i < _size; _i++) {
mCallbacks.get(_i).onDestructiveMigration(_db);
}
}
}
@Override
protected void onCreate(SupportSQLiteDatabase _db) {
if (mCallbacks != null) {
for (int _i = 0, _size = mCallbacks.size(); _i < _size; _i++) {
mCallbacks.get(_i).onCreate(_db);
}
}
}
@Override
public void onOpen(SupportSQLiteDatabase _db) {
mDatabase = _db;
internalInitInvalidationTracker(_db);
if (mCallbacks != null) {
for (int _i = 0, _size = mCallbacks.size(); _i < _size; _i++) {
mCallbacks.get(_i).onOpen(_db);
}
}
}
@Override
public void onPreMigrate(SupportSQLiteDatabase _db) {
DBUtil.dropFtsSyncTriggers(_db);
}
@Override
public void onPostMigrate(SupportSQLiteDatabase _db) {
}
@Override
protected RoomOpenHelper.ValidationResult onValidateSchema(SupportSQLiteDatabase _db) {
final HashMap<String, TableInfo.Column> _columnsPushBean = new HashMap<String, TableInfo.Column>(7);
_columnsPushBean.put("icon", new TableInfo.Column("icon", "TEXT", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsPushBean.put("title", new TableInfo.Column("title", "TEXT", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsPushBean.put("content", new TableInfo.Column("content", "TEXT", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsPushBean.put("image", new TableInfo.Column("image", "TEXT", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsPushBean.put("qr", new TableInfo.Column("qr", "TEXT", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsPushBean.put("scheme", new TableInfo.Column("scheme", "TEXT", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsPushBean.put("timestamp", new TableInfo.Column("timestamp", "INTEGER", true, 1, null, TableInfo.CREATED_FROM_ENTITY));
final HashSet<TableInfo.ForeignKey> _foreignKeysPushBean = new HashSet<TableInfo.ForeignKey>(0);
final HashSet<TableInfo.Index> _indicesPushBean = new HashSet<TableInfo.Index>(0);
final TableInfo _infoPushBean = new TableInfo("PushBean", _columnsPushBean, _foreignKeysPushBean, _indicesPushBean);
final TableInfo _existingPushBean = TableInfo.read(_db, "PushBean");
if (! _infoPushBean.equals(_existingPushBean)) {
return new RoomOpenHelper.ValidationResult(false, "PushBean(com.mogo.module.push.model.PushBean).\n"
+ " Expected:\n" + _infoPushBean + "\n"
+ " Found:\n" + _existingPushBean);
}
return new RoomOpenHelper.ValidationResult(true, null);
}
}, "a297c98624a6b7df90797298fa47318d", "adc16c11fc70d272f68d66133676a431");
final SupportSQLiteOpenHelper.Configuration _sqliteConfig = SupportSQLiteOpenHelper.Configuration.builder(configuration.context)
.name(configuration.name)
.callback(_openCallback)
.build();
final SupportSQLiteOpenHelper _helper = configuration.sqliteOpenHelperFactory.create(_sqliteConfig);
return _helper;
}
@Override
protected InvalidationTracker createInvalidationTracker() {
final HashMap<String, String> _shadowTablesMap = new HashMap<String, String>(0);
HashMap<String, Set<String>> _viewTables = new HashMap<String, Set<String>>(0);
return new InvalidationTracker(this, _shadowTablesMap, _viewTables, "PushBean");
}
@Override
public void clearAllTables() {
super.assertNotMainThread();
final SupportSQLiteDatabase _db = super.getOpenHelper().getWritableDatabase();
try {
super.beginTransaction();
_db.execSQL("DELETE FROM `PushBean`");
super.setTransactionSuccessful();
} finally {
super.endTransaction();
_db.query("PRAGMA wal_checkpoint(FULL)").close();
if (!_db.inTransaction()) {
_db.execSQL("VACUUM");
}
}
}
@Override
public PushBeanDao pushBeanDao() {
if (_pushBeanDao != null) {
return _pushBeanDao;
} else {
synchronized(this) {
if(_pushBeanDao == null) {
_pushBeanDao = new PushBeanDao_Impl(this);
}
return _pushBeanDao;
}
}
}
}

View File

@@ -1,23 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mogo.module.push"
android:versionCode="1"
android:versionName="1.1.6.2" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="22" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<application>
<activity
android:name="com.mogo.module.push.activity.PushMessageActivity"
android:theme="@style/ModulePushMessageTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
</application>
</manifest>

View File

@@ -1 +0,0 @@
[{"outputType":{"type":"AAPT_FRIENDLY_MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.1.6.2","enabled":true,"outputFile":"mogo-module-push-debug.aar","fullName":"debug","baseName":"debug"},"path":"AndroidManifest.xml","properties":{"packageId":"com.mogo.module.push","split":""}}]

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push\src\main\jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push\src\debug\jniLibs"/></dataSet></merger>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push\src\main\shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push\src\debug\shaders"/></dataSet></merger>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push\src\main\assets"/><source path="F:\Station\Launcher\modules\mogo-module-push\build\intermediates\shader_assets\debug\compileDebugShaders\out"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="F:\Station\Launcher\modules\mogo-module-push\src\debug\assets"/></dataSet></merger>

View File

@@ -1,18 +0,0 @@
#Tue Aug 11 10:29:57 CST 2020
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable\\module_push_recycler_item_background.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable\\module_push_recycler_item_background.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable\\module_push_ui_ic_message2.png=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable\\module_push_ui_ic_message2.png
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable\\module_push_decrease_timer_bkg.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable\\module_push_decrease_timer_bkg.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable\\module_push_activity_clear_bg.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable\\module_push_activity_clear_bg.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable\\module_push_ui_delay_background.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable\\module_push_ui_delay_background.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable\\module_push_left_button.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable\\module_push_left_button.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable\\module_push_right_button.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable\\module_push_right_button.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable\\module_push_content_background.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable\\module_push_content_background.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable-xhdpi\\module_push_close.png=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable-xhdpi-v4\\module_push_close.png
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\layout\\module_push_item_vertical.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\layout\\module_push_item_vertical.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable\\module_push_message_activity_background.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable\\module_push_message_activity_background.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable\\module_push_item_background.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable\\module_push_item_background.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\layout\\module_push_message_item.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\layout\\module_push_message_item.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\layout\\module_push_item.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\layout\\module_push_item.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable\\module_push_close.png=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable\\module_push_close.png
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\layout\\module_push_message_activity.xml=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\layout\\module_push_message_activity.xml
F\:\\Station\\Launcher\\modules\\mogo-module-push\\src\\main\\res\\drawable-ldpi\\module_push_close.png=F\:\\Station\\Launcher\\modules\\mogo-module-push\\build\\intermediates\\packaged_res\\debug\\drawable-ldpi-v4\\module_push_close.png

View File

@@ -1,89 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="module_push_activity_clear_margin_bottom">36px</dimen>
<dimen name="module_push_activity_close_margin_end">90px</dimen>
<dimen name="module_push_activity_close_margin_top">29px</dimen>
<dimen name="module_push_activity_close_padding">5px</dimen>
<dimen name="module_push_activity_not_data_text_size">38px</dimen>
<dimen name="module_push_activity_recycler_view_margin_top">92px</dimen>
<dimen name="module_push_activity_title_margin_top">35px</dimen>
<dimen name="module_push_activity_title_text_size">20px</dimen>
<dimen name="module_push_app_icon_margin_start">16.5px</dimen>
<dimen name="module_push_app_icon_size">32px</dimen>
<dimen name="module_push_button_height">48px</dimen>
<dimen name="module_push_button_margin_bottom">14px</dimen>
<dimen name="module_push_button_margin_top">10px</dimen>
<dimen name="module_push_button_maxWidth">242px</dimen>
<dimen name="module_push_button_radius">27px</dimen>
<dimen name="module_push_button_right_marLeft">10px</dimen>
<dimen name="module_push_button_width">0px</dimen>
<dimen name="module_push_clear_bg_radius">24px</dimen>
<dimen name="module_push_content_only_height">160px</dimen>
<dimen name="module_push_content_only_line_space">9px</dimen>
<dimen name="module_push_content_only_padding">20px</dimen>
<dimen name="module_push_content_only_width">320px</dimen>
<dimen name="module_push_content_paddingBottom_vertical">60px</dimen>
<dimen name="module_push_image_height">180px</dimen>
<dimen name="module_push_image_marginTop_vertical">8px</dimen>
<dimen name="module_push_image_margin_bottom">22px</dimen>
<dimen name="module_push_image_margin_top">21px</dimen>
<dimen name="module_push_image_qr_size_vertical">150px</dimen>
<dimen name="module_push_image_radius">10px</dimen>
<dimen name="module_push_image_width">320px</dimen>
<dimen name="module_push_item_content_margin_bottom">27px</dimen>
<dimen name="module_push_item_content_margin_end">20px</dimen>
<dimen name="module_push_item_content_text_size">16px</dimen>
<dimen name="module_push_item_content_width">560px</dimen>
<dimen name="module_push_item_image_radius">4px</dimen>
<dimen name="module_push_item_maxHeight_vertical">350px</dimen>
<dimen name="module_push_item_minHeight_vertical">310px</dimen>
<dimen name="module_push_item_title_gone_margin_bottom">44px</dimen>
<dimen name="module_push_item_title_margin_bottom">2px</dimen>
<dimen name="module_push_item_title_margin_top">25px</dimen>
<dimen name="module_push_margin_start">32px</dimen>
<dimen name="module_push_margin_top">16px</dimen>
<dimen name="module_push_massage_time_text_size">14px</dimen>
<dimen name="module_push_message_app_icon_size">64px</dimen>
<dimen name="module_push_message_item_height">106px</dimen>
<dimen name="module_push_message_item_image_margin_end">100px</dimen>
<dimen name="module_push_message_item_image_size">64px</dimen>
<dimen name="module_push_message_margin_start">24px</dimen>
<dimen name="module_push_progress_bar_frame_marginEnd">19px</dimen>
<dimen name="module_push_progress_bar_frame_marginTop">17px</dimen>
<dimen name="module_push_progress_bar_frame_padding">11px</dimen>
<dimen name="module_push_size">352px</dimen>
<dimen name="module_push_timer_inner_radius">14px</dimen>
<dimen name="module_push_timer_margin_end">13px</dimen>
<dimen name="module_push_timer_margin_top">18px</dimen>
<dimen name="module_push_timer_text_size">15px</dimen>
<dimen name="module_push_timer_thickness">1.5px</dimen>
<dimen name="module_push_title_margin_start">12px</dimen>
<dimen name="module_push_title_margin_top">20px</dimen>
<dimen name="module_push_title_mix_width">210px</dimen>
<dimen name="module_push_title_text_size">18px</dimen>
<dimen name="module_push_ui_app_icon_goneTopMargin">19px</dimen>
<dimen name="module_push_ui_app_icon_leftMargin">12px</dimen>
<dimen name="module_push_ui_app_icon_leftMargin_vertical">24px</dimen>
<dimen name="module_push_ui_app_icon_size">30px</dimen>
<dimen name="module_push_ui_app_icon_topMargin">16px</dimen>
<dimen name="module_push_ui_app_icon_topMargin_vertical">19px</dimen>
<dimen name="module_push_ui_bkg_corner">17px</dimen>
<dimen name="module_push_ui_button_radius">10px</dimen>
<dimen name="module_push_ui_content_marginTop">6px</dimen>
<dimen name="module_push_ui_content_marginTop_vertical">15px</dimen>
<dimen name="module_push_ui_decrease_timer_corner">8px</dimen>
<dimen name="module_push_ui_height">194px</dimen>
<dimen name="module_push_ui_height_vertical">270px</dimen>
<dimen name="module_push_ui_image_corner">8px</dimen>
<dimen name="module_push_ui_image_height">178px</dimen>
<dimen name="module_push_ui_image_height_vertical">164px</dimen>
<dimen name="module_push_ui_image_marLeft">8px</dimen>
<dimen name="module_push_ui_image_width">266px</dimen>
<dimen name="module_push_ui_image_width_vertical">328px</dimen>
<dimen name="module_push_ui_timer_textSize">16px</dimen>
<dimen name="module_push_ui_title_textSize">16px</dimen>
<dimen name="module_push_ui_title_text_size">18px</dimen>
<dimen name="module_push_ui_width_vertical">374px</dimen>
<dimen name="module_push_window_x">20px</dimen>
<dimen name="module_push_window_y">0px</dimen>
</resources>

View File

@@ -1,89 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="module_push_activity_clear_margin_bottom">36px</dimen>
<dimen name="module_push_activity_close_margin_end">90px</dimen>
<dimen name="module_push_activity_close_margin_top">29px</dimen>
<dimen name="module_push_activity_close_padding">5px</dimen>
<dimen name="module_push_activity_not_data_text_size">38px</dimen>
<dimen name="module_push_activity_recycler_view_margin_top">92px</dimen>
<dimen name="module_push_activity_title_margin_top">35px</dimen>
<dimen name="module_push_activity_title_text_size">20px</dimen>
<dimen name="module_push_app_icon_margin_start">16.5px</dimen>
<dimen name="module_push_app_icon_size">32px</dimen>
<dimen name="module_push_button_height">48px</dimen>
<dimen name="module_push_button_margin_bottom">14px</dimen>
<dimen name="module_push_button_margin_top">10px</dimen>
<dimen name="module_push_button_maxWidth">242px</dimen>
<dimen name="module_push_button_radius">27px</dimen>
<dimen name="module_push_button_right_marLeft">10px</dimen>
<dimen name="module_push_button_width">0px</dimen>
<dimen name="module_push_clear_bg_radius">24px</dimen>
<dimen name="module_push_content_only_height">160px</dimen>
<dimen name="module_push_content_only_line_space">9px</dimen>
<dimen name="module_push_content_only_padding">20px</dimen>
<dimen name="module_push_content_only_width">320px</dimen>
<dimen name="module_push_content_paddingBottom_vertical">60px</dimen>
<dimen name="module_push_image_height">180px</dimen>
<dimen name="module_push_image_marginTop_vertical">8px</dimen>
<dimen name="module_push_image_margin_bottom">22px</dimen>
<dimen name="module_push_image_margin_top">21px</dimen>
<dimen name="module_push_image_qr_size_vertical">150px</dimen>
<dimen name="module_push_image_radius">10px</dimen>
<dimen name="module_push_image_width">320px</dimen>
<dimen name="module_push_item_content_margin_bottom">27px</dimen>
<dimen name="module_push_item_content_margin_end">20px</dimen>
<dimen name="module_push_item_content_text_size">16px</dimen>
<dimen name="module_push_item_content_width">560px</dimen>
<dimen name="module_push_item_image_radius">4px</dimen>
<dimen name="module_push_item_maxHeight_vertical">350px</dimen>
<dimen name="module_push_item_minHeight_vertical">310px</dimen>
<dimen name="module_push_item_title_gone_margin_bottom">44px</dimen>
<dimen name="module_push_item_title_margin_bottom">2px</dimen>
<dimen name="module_push_item_title_margin_top">25px</dimen>
<dimen name="module_push_margin_start">32px</dimen>
<dimen name="module_push_margin_top">16px</dimen>
<dimen name="module_push_massage_time_text_size">14px</dimen>
<dimen name="module_push_message_app_icon_size">64px</dimen>
<dimen name="module_push_message_item_height">106px</dimen>
<dimen name="module_push_message_item_image_margin_end">100px</dimen>
<dimen name="module_push_message_item_image_size">64px</dimen>
<dimen name="module_push_message_margin_start">24px</dimen>
<dimen name="module_push_progress_bar_frame_marginEnd">19px</dimen>
<dimen name="module_push_progress_bar_frame_marginTop">17px</dimen>
<dimen name="module_push_progress_bar_frame_padding">11px</dimen>
<dimen name="module_push_size">352px</dimen>
<dimen name="module_push_timer_inner_radius">14px</dimen>
<dimen name="module_push_timer_margin_end">13px</dimen>
<dimen name="module_push_timer_margin_top">18px</dimen>
<dimen name="module_push_timer_text_size">15px</dimen>
<dimen name="module_push_timer_thickness">1.5px</dimen>
<dimen name="module_push_title_margin_start">12px</dimen>
<dimen name="module_push_title_margin_top">20px</dimen>
<dimen name="module_push_title_mix_width">210px</dimen>
<dimen name="module_push_title_text_size">18px</dimen>
<dimen name="module_push_ui_app_icon_goneTopMargin">19px</dimen>
<dimen name="module_push_ui_app_icon_leftMargin">12px</dimen>
<dimen name="module_push_ui_app_icon_leftMargin_vertical">24px</dimen>
<dimen name="module_push_ui_app_icon_size">30px</dimen>
<dimen name="module_push_ui_app_icon_topMargin">16px</dimen>
<dimen name="module_push_ui_app_icon_topMargin_vertical">19px</dimen>
<dimen name="module_push_ui_bkg_corner">17px</dimen>
<dimen name="module_push_ui_button_radius">10px</dimen>
<dimen name="module_push_ui_content_marginTop">6px</dimen>
<dimen name="module_push_ui_content_marginTop_vertical">15px</dimen>
<dimen name="module_push_ui_decrease_timer_corner">8px</dimen>
<dimen name="module_push_ui_height">194px</dimen>
<dimen name="module_push_ui_height_vertical">270px</dimen>
<dimen name="module_push_ui_image_corner">8px</dimen>
<dimen name="module_push_ui_image_height">178px</dimen>
<dimen name="module_push_ui_image_height_vertical">164px</dimen>
<dimen name="module_push_ui_image_marLeft">8px</dimen>
<dimen name="module_push_ui_image_width">266px</dimen>
<dimen name="module_push_ui_image_width_vertical">328px</dimen>
<dimen name="module_push_ui_timer_textSize">16px</dimen>
<dimen name="module_push_ui_title_textSize">16px</dimen>
<dimen name="module_push_ui_title_text_size">18px</dimen>
<dimen name="module_push_ui_width_vertical">374px</dimen>
<dimen name="module_push_window_x">20px</dimen>
<dimen name="module_push_window_y">0px</dimen>
</resources>

View File

@@ -1,89 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="module_push_activity_clear_margin_bottom">68px</dimen>
<dimen name="module_push_activity_close_margin_end">160px</dimen>
<dimen name="module_push_activity_close_margin_top">54px</dimen>
<dimen name="module_push_activity_close_padding">10px</dimen>
<dimen name="module_push_activity_not_data_text_size">72px</dimen>
<dimen name="module_push_activity_recycler_view_margin_top">173px</dimen>
<dimen name="module_push_activity_title_margin_top">66px</dimen>
<dimen name="module_push_activity_title_text_size">38px</dimen>
<dimen name="module_push_app_icon_margin_start">31px</dimen>
<dimen name="module_push_app_icon_size">60px</dimen>
<dimen name="module_push_button_height">90px</dimen>
<dimen name="module_push_button_margin_bottom">26px</dimen>
<dimen name="module_push_button_margin_top">20px</dimen>
<dimen name="module_push_button_maxWidth">242px</dimen>
<dimen name="module_push_button_radius">51px</dimen>
<dimen name="module_push_button_right_marLeft">20px</dimen>
<dimen name="module_push_button_width">0px</dimen>
<dimen name="module_push_clear_bg_radius">45px</dimen>
<dimen name="module_push_content_only_height">300px</dimen>
<dimen name="module_push_content_only_line_space">16px</dimen>
<dimen name="module_push_content_only_padding">53px</dimen>
<dimen name="module_push_content_only_width">605px</dimen>
<dimen name="module_push_content_paddingBottom_vertical">120px</dimen>
<dimen name="module_push_image_height">338px</dimen>
<dimen name="module_push_image_marginTop_vertical">16px</dimen>
<dimen name="module_push_image_margin_bottom">42px</dimen>
<dimen name="module_push_image_margin_top">40px</dimen>
<dimen name="module_push_image_qr_size_vertical">250px</dimen>
<dimen name="module_push_image_radius">20px</dimen>
<dimen name="module_push_image_width">600px</dimen>
<dimen name="module_push_item_content_margin_bottom">52px</dimen>
<dimen name="module_push_item_content_margin_end">40px</dimen>
<dimen name="module_push_item_content_text_size">30px</dimen>
<dimen name="module_push_item_content_width">1000px</dimen>
<dimen name="module_push_item_image_radius">8px</dimen>
<dimen name="module_push_item_maxHeight_vertical">350px</dimen>
<dimen name="module_push_item_minHeight_vertical">618px</dimen>
<dimen name="module_push_item_title_gone_margin_bottom">84px</dimen>
<dimen name="module_push_item_title_margin_bottom">6px</dimen>
<dimen name="module_push_item_title_margin_top">43px</dimen>
<dimen name="module_push_margin_start">60px</dimen>
<dimen name="module_push_margin_top">30px</dimen>
<dimen name="module_push_massage_time_text_size">34px</dimen>
<dimen name="module_push_message_app_icon_size">120px</dimen>
<dimen name="module_push_message_item_height">200px</dimen>
<dimen name="module_push_message_item_image_margin_end">180px</dimen>
<dimen name="module_push_message_item_image_size">120px</dimen>
<dimen name="module_push_message_margin_start">50px</dimen>
<dimen name="module_push_progress_bar_frame_marginEnd">27px</dimen>
<dimen name="module_push_progress_bar_frame_marginTop">30px</dimen>
<dimen name="module_push_progress_bar_frame_padding">21px</dimen>
<dimen name="module_push_size">660px</dimen>
<dimen name="module_push_timer_inner_radius">27px</dimen>
<dimen name="module_push_timer_margin_end">24px</dimen>
<dimen name="module_push_timer_margin_top">34px</dimen>
<dimen name="module_push_timer_text_size">28px</dimen>
<dimen name="module_push_timer_thickness">3px</dimen>
<dimen name="module_push_title_margin_start">22px</dimen>
<dimen name="module_push_title_margin_top">38px</dimen>
<dimen name="module_push_title_mix_width">394px</dimen>
<dimen name="module_push_title_text_size">32px</dimen>
<dimen name="module_push_ui_app_icon_goneTopMargin">33px</dimen>
<dimen name="module_push_ui_app_icon_leftMargin">21px</dimen>
<dimen name="module_push_ui_app_icon_leftMargin_vertical">30px</dimen>
<dimen name="module_push_ui_app_icon_size">50px</dimen>
<dimen name="module_push_ui_app_icon_topMargin">30px</dimen>
<dimen name="module_push_ui_app_icon_topMargin_vertical">33px</dimen>
<dimen name="module_push_ui_bkg_corner">30px</dimen>
<dimen name="module_push_ui_button_radius">20px</dimen>
<dimen name="module_push_ui_content_marginTop">11px</dimen>
<dimen name="module_push_ui_content_marginTop_vertical">30px</dimen>
<dimen name="module_push_ui_decrease_timer_corner">14px</dimen>
<dimen name="module_push_ui_height">350px</dimen>
<dimen name="module_push_ui_height_vertical">486px</dimen>
<dimen name="module_push_ui_image_corner">15px</dimen>
<dimen name="module_push_ui_image_height">320px</dimen>
<dimen name="module_push_ui_image_height_vertical">296px</dimen>
<dimen name="module_push_ui_image_marLeft">17px</dimen>
<dimen name="module_push_ui_image_width">480px</dimen>
<dimen name="module_push_ui_image_width_vertical">640px</dimen>
<dimen name="module_push_ui_timer_textSize">30px</dimen>
<dimen name="module_push_ui_title_textSize">30px</dimen>
<dimen name="module_push_ui_title_text_size">34px</dimen>
<dimen name="module_push_ui_width_vertical">700px</dimen>
<dimen name="module_push_window_x">20px</dimen>
<dimen name="module_push_window_y">0px</dimen>
</resources>

View File

@@ -1,123 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="module_push_activity_clear_margin_bottom">36px</dimen>
<dimen name="module_push_activity_close_margin_end">90px</dimen>
<dimen name="module_push_activity_close_margin_top">29px</dimen>
<dimen name="module_push_activity_close_padding">5px</dimen>
<dimen name="module_push_activity_not_data_text_size">38px</dimen>
<dimen name="module_push_activity_recycler_view_margin_top">92px</dimen>
<dimen name="module_push_activity_title_margin_top">35px</dimen>
<dimen name="module_push_activity_title_text_size">20px</dimen>
<dimen name="module_push_app_icon_margin_start">16.5px</dimen>
<dimen name="module_push_app_icon_size">32px</dimen>
<dimen name="module_push_button_height">48px</dimen>
<dimen name="module_push_button_margin_bottom">14px</dimen>
<dimen name="module_push_button_margin_top">10px</dimen>
<dimen name="module_push_button_maxWidth">242px</dimen>
<dimen name="module_push_button_radius">27px</dimen>
<dimen name="module_push_button_right_marLeft">10px</dimen>
<dimen name="module_push_button_width">0px</dimen>
<dimen name="module_push_clear_bg_radius">24px</dimen>
<dimen name="module_push_content_only_height">160px</dimen>
<dimen name="module_push_content_only_line_space">9px</dimen>
<dimen name="module_push_content_only_padding">20px</dimen>
<dimen name="module_push_content_only_width">320px</dimen>
<dimen name="module_push_content_paddingBottom_vertical">60px</dimen>
<dimen name="module_push_image_height">180px</dimen>
<dimen name="module_push_image_marginTop_vertical">8px</dimen>
<dimen name="module_push_image_margin_bottom">22px</dimen>
<dimen name="module_push_image_margin_top">21px</dimen>
<dimen name="module_push_image_qr_size_vertical">150px</dimen>
<dimen name="module_push_image_radius">10px</dimen>
<dimen name="module_push_image_width">320px</dimen>
<dimen name="module_push_item_content_margin_bottom">27px</dimen>
<dimen name="module_push_item_content_margin_end">20px</dimen>
<dimen name="module_push_item_content_text_size">16px</dimen>
<dimen name="module_push_item_content_width">560px</dimen>
<dimen name="module_push_item_image_radius">4px</dimen>
<dimen name="module_push_item_maxHeight_vertical">350px</dimen>
<dimen name="module_push_item_minHeight_vertical">310px</dimen>
<dimen name="module_push_item_title_gone_margin_bottom">44px</dimen>
<dimen name="module_push_item_title_margin_bottom">2px</dimen>
<dimen name="module_push_item_title_margin_top">25px</dimen>
<dimen name="module_push_margin_start">32px</dimen>
<dimen name="module_push_margin_top">16px</dimen>
<dimen name="module_push_massage_time_text_size">14px</dimen>
<dimen name="module_push_message_app_icon_size">64px</dimen>
<dimen name="module_push_message_item_height">106px</dimen>
<dimen name="module_push_message_item_image_margin_end">100px</dimen>
<dimen name="module_push_message_item_image_size">64px</dimen>
<dimen name="module_push_message_margin_start">24px</dimen>
<dimen name="module_push_progress_bar_frame_marginEnd">19px</dimen>
<dimen name="module_push_progress_bar_frame_marginTop">17px</dimen>
<dimen name="module_push_progress_bar_frame_padding">11px</dimen>
<dimen name="module_push_size">352px</dimen>
<dimen name="module_push_timer_inner_radius">14px</dimen>
<dimen name="module_push_timer_margin_end">13px</dimen>
<dimen name="module_push_timer_margin_top">18px</dimen>
<dimen name="module_push_timer_text_size">15px</dimen>
<dimen name="module_push_timer_thickness">1.5px</dimen>
<dimen name="module_push_title_margin_start">12px</dimen>
<dimen name="module_push_title_margin_top">20px</dimen>
<dimen name="module_push_title_mix_width">210px</dimen>
<dimen name="module_push_title_text_size">18px</dimen>
<dimen name="module_push_ui_app_icon_goneTopMargin">19px</dimen>
<dimen name="module_push_ui_app_icon_leftMargin">12px</dimen>
<dimen name="module_push_ui_app_icon_leftMargin_vertical">24px</dimen>
<dimen name="module_push_ui_app_icon_size">30px</dimen>
<dimen name="module_push_ui_app_icon_topMargin">16px</dimen>
<dimen name="module_push_ui_app_icon_topMargin_vertical">19px</dimen>
<dimen name="module_push_ui_bkg_corner">17px</dimen>
<dimen name="module_push_ui_button_radius">10px</dimen>
<dimen name="module_push_ui_content_marginTop">6px</dimen>
<dimen name="module_push_ui_content_marginTop_vertical">15px</dimen>
<dimen name="module_push_ui_decrease_timer_corner">8px</dimen>
<dimen name="module_push_ui_height">194px</dimen>
<dimen name="module_push_ui_height_vertical">270px</dimen>
<dimen name="module_push_ui_image_corner">8px</dimen>
<dimen name="module_push_ui_image_height">178px</dimen>
<dimen name="module_push_ui_image_height_vertical">164px</dimen>
<dimen name="module_push_ui_image_marLeft">8px</dimen>
<dimen name="module_push_ui_image_width">266px</dimen>
<dimen name="module_push_ui_image_width_vertical">328px</dimen>
<dimen name="module_push_ui_timer_textSize">16px</dimen>
<dimen name="module_push_ui_title_textSize">16px</dimen>
<dimen name="module_push_ui_title_text_size">18px</dimen>
<dimen name="module_push_ui_width_vertical">374px</dimen>
<dimen name="module_push_window_x">20px</dimen>
<dimen name="module_push_window_y">0px</dimen>
<string name="app_name">mogo-module-push</string>
<style name="ModulePushMessageTheme" parent="Theme.AppCompat.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item>
<item name="android:windowBackground">@drawable/module_push_message_activity_background</item>
</style>
<declare-styleable name="RoundedImageView">
<attr format="dimension" name="riv_corner_radius"/>
<attr format="dimension" name="riv_corner_radius_top_left"/>
<attr format="dimension" name="riv_corner_radius_top_right"/>
<attr format="dimension" name="riv_corner_radius_bottom_left"/>
<attr format="dimension" name="riv_corner_radius_bottom_right"/>
<attr format="dimension" name="riv_border_width"/>
<attr format="color" name="riv_border_color"/>
<attr format="boolean" name="riv_mutate_background"/>
<attr format="boolean" name="riv_oval"/>
<attr name="android:scaleType"/>
<attr name="riv_tile_Mode">
<enum name="clamp" value="0"/>
<enum name="repeat" value="1"/>
<enum name="mirror" value="2"/>
</attr>
<attr name="riv_tile_Mode_x">
<enum name="clamp" value="0"/>
<enum name="repeat" value="1"/>
<enum name="mirror" value="2"/>
</attr>
<attr name="riv_tile_Mode_y">
<enum name="clamp" value="0"/>
<enum name="repeat" value="1"/>
<enum name="mirror" value="2"/>
</attr>
</declare-styleable>
</resources>

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More