This commit is contained in:
wangcongtao
2020-01-08 18:09:55 +08:00
parent ccbc429601
commit dff6c1d524
260 changed files with 0 additions and 6989 deletions

View File

@@ -1,18 +0,0 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.mogo.module.navi;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String LIBRARY_PACKAGE_NAME = "com.mogo.module.navi";
/**
* @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.navi";
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.0.0-SNAPSHOT";
}

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.navi.ui.NaviActivity;
import com.mogo.module.navi.ui.search.SearchFragment;
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$$navi implements IRouteGroup {
@Override
public void loadInto(Map<String, RouteMeta> atlas) {
atlas.put("/navi/search", RouteMeta.build(RouteType.FRAGMENT, SearchFragment.class, "/navi/search", "navi", null, -1, -2147483648));
atlas.put("/navi/search/ui/activity", RouteMeta.build(RouteType.ACTIVITY, NaviActivity.class, "/navi/search/ui/activity", "navi", null, -1, -2147483648));
}
}

View File

@@ -1,15 +0,0 @@
package com.alibaba.android.arouter.routes;
import com.alibaba.android.arouter.facade.model.RouteMeta;
import com.alibaba.android.arouter.facade.template.IProviderGroup;
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$$mogomodulenavi implements IProviderGroup {
@Override
public void loadInto(Map<String, RouteMeta> providers) {
}
}

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$$mogomodulenavi implements IRouteRoot {
@Override
public void loadInto(Map<String, Class<? extends IRouteGroup>> routes) {
routes.put("navi", ARouter$$Group$$navi.class);
}
}

View File

@@ -1,424 +0,0 @@
package com.mogo.module.navi.dao;
import android.database.Cursor;
import androidx.room.EmptyResultSetException;
import androidx.room.EntityDeletionOrUpdateAdapter;
import androidx.room.EntityInsertionAdapter;
import androidx.room.RoomDatabase;
import androidx.room.RoomSQLiteQuery;
import androidx.sqlite.db.SupportSQLiteStatement;
import com.mogo.module.navi.bean.SearchPoi;
import io.reactivex.Single;
import java.lang.Exception;
import java.lang.Long;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.List;
import java.util.concurrent.Callable;
@SuppressWarnings("unchecked")
public final class SearchPoiDao_Impl implements SearchPoiDao {
private final RoomDatabase __db;
private final EntityInsertionAdapter __insertionAdapterOfSearchPoi;
private final EntityDeletionOrUpdateAdapter __deletionAdapterOfSearchPoi;
public SearchPoiDao_Impl(RoomDatabase __db) {
this.__db = __db;
this.__insertionAdapterOfSearchPoi = new EntityInsertionAdapter<SearchPoi>(__db) {
@Override
public String createQuery() {
return "INSERT OR REPLACE INTO `t_search_poi`(`pId`,`name`,`address`,`lat`,`lng`,`district`,`adCode`,`typeCode`,`province`,`city`,`type`,`time`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)";
}
@Override
public void bind(SupportSQLiteStatement stmt, SearchPoi value) {
if (value.pId == null) {
stmt.bindNull(1);
} else {
stmt.bindString(1, value.pId);
}
if (value.getName() == null) {
stmt.bindNull(2);
} else {
stmt.bindString(2, value.getName());
}
if (value.getAddress() == null) {
stmt.bindNull(3);
} else {
stmt.bindString(3, value.getAddress());
}
stmt.bindDouble(4, value.getLat());
stmt.bindDouble(5, value.getLng());
if (value.getDistrict() == null) {
stmt.bindNull(6);
} else {
stmt.bindString(6, value.getDistrict());
}
if (value.getAdCode() == null) {
stmt.bindNull(7);
} else {
stmt.bindString(7, value.getAdCode());
}
if (value.getTypeCode() == null) {
stmt.bindNull(8);
} else {
stmt.bindString(8, value.getTypeCode());
}
if (value.getProvince() == null) {
stmt.bindNull(9);
} else {
stmt.bindString(9, value.getProvince());
}
if (value.getCity() == null) {
stmt.bindNull(10);
} else {
stmt.bindString(10, value.getCity());
}
stmt.bindLong(11, value.getType());
stmt.bindLong(12, value.getTime());
}
};
this.__deletionAdapterOfSearchPoi = new EntityDeletionOrUpdateAdapter<SearchPoi>(__db) {
@Override
public String createQuery() {
return "DELETE FROM `t_search_poi` WHERE `pId` = ?";
}
@Override
public void bind(SupportSQLiteStatement stmt, SearchPoi value) {
if (value.pId == null) {
stmt.bindNull(1);
} else {
stmt.bindString(1, value.pId);
}
}
};
}
@Override
public List<Long> insert(SearchPoi... datums) {
__db.beginTransaction();
try {
List<Long> _result = __insertionAdapterOfSearchPoi.insertAndReturnIdsList(datums);
__db.setTransactionSuccessful();
return _result;
} finally {
__db.endTransaction();
}
}
@Override
public int delete(SearchPoi poi) {
int _total = 0;
__db.beginTransaction();
try {
_total +=__deletionAdapterOfSearchPoi.handle(poi);
__db.setTransactionSuccessful();
return _total;
} finally {
__db.endTransaction();
}
}
@Override
public int deleteAll(List<SearchPoi> list) {
int _total = 0;
__db.beginTransaction();
try {
_total +=__deletionAdapterOfSearchPoi.handleMultiple(list);
__db.setTransactionSuccessful();
return _total;
} finally {
__db.endTransaction();
}
}
@Override
public Single<List<SearchPoi>> getLastN(int limit) {
final String _sql = "SELECT * FROM t_search_poi WHERE type=0 ORDER BY time DESC LIMIT ?";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 1);
int _argIndex = 1;
_statement.bindLong(_argIndex, limit);
return Single.fromCallable(new Callable<List<SearchPoi>>() {
@Override
public List<SearchPoi> call() throws Exception {
final Cursor _cursor = __db.query(_statement);
try {
final int _cursorIndexOfPId = _cursor.getColumnIndexOrThrow("pId");
final int _cursorIndexOfName = _cursor.getColumnIndexOrThrow("name");
final int _cursorIndexOfAddress = _cursor.getColumnIndexOrThrow("address");
final int _cursorIndexOfLat = _cursor.getColumnIndexOrThrow("lat");
final int _cursorIndexOfLng = _cursor.getColumnIndexOrThrow("lng");
final int _cursorIndexOfDistrict = _cursor.getColumnIndexOrThrow("district");
final int _cursorIndexOfAdCode = _cursor.getColumnIndexOrThrow("adCode");
final int _cursorIndexOfTypeCode = _cursor.getColumnIndexOrThrow("typeCode");
final int _cursorIndexOfProvince = _cursor.getColumnIndexOrThrow("province");
final int _cursorIndexOfCity = _cursor.getColumnIndexOrThrow("city");
final int _cursorIndexOfType = _cursor.getColumnIndexOrThrow("type");
final int _cursorIndexOfTime = _cursor.getColumnIndexOrThrow("time");
final java.util.List<com.mogo.module.navi.bean.SearchPoi> _result = new java.util.ArrayList<com.mogo.module.navi.bean.SearchPoi>(_cursor.getCount());
while(_cursor.moveToNext()) {
final com.mogo.module.navi.bean.SearchPoi _item;
final java.lang.String _tmpPId;
_tmpPId = _cursor.getString(_cursorIndexOfPId);
final java.lang.String _tmpName;
_tmpName = _cursor.getString(_cursorIndexOfName);
final java.lang.String _tmpAddress;
_tmpAddress = _cursor.getString(_cursorIndexOfAddress);
final double _tmpLat;
_tmpLat = _cursor.getDouble(_cursorIndexOfLat);
final double _tmpLng;
_tmpLng = _cursor.getDouble(_cursorIndexOfLng);
final java.lang.String _tmpDistrict;
_tmpDistrict = _cursor.getString(_cursorIndexOfDistrict);
final java.lang.String _tmpAdCode;
_tmpAdCode = _cursor.getString(_cursorIndexOfAdCode);
final java.lang.String _tmpTypeCode;
_tmpTypeCode = _cursor.getString(_cursorIndexOfTypeCode);
_item = new com.mogo.module.navi.bean.SearchPoi(_tmpPId,_tmpName,_tmpAddress,_tmpLat,_tmpLng,_tmpDistrict,_tmpAdCode,_tmpTypeCode);
final java.lang.String _tmpProvince;
_tmpProvince = _cursor.getString(_cursorIndexOfProvince);
_item.setProvince(_tmpProvince);
final java.lang.String _tmpCity;
_tmpCity = _cursor.getString(_cursorIndexOfCity);
_item.setCity(_tmpCity);
final int _tmpType;
_tmpType = _cursor.getInt(_cursorIndexOfType);
_item.setType(_tmpType);
final long _tmpTime;
_tmpTime = _cursor.getLong(_cursorIndexOfTime);
_item.setTime(_tmpTime);
_result.add(_item);
}
if(_result == null) {
throw new EmptyResultSetException("Query returned empty result set: " + _statement.getSql());
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
@Override
public Single<List<SearchPoi>> getAll() {
final String _sql = "SELECT * FROM t_search_poi WHERE type=0";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
return Single.fromCallable(new Callable<List<SearchPoi>>() {
@Override
public List<SearchPoi> call() throws Exception {
final Cursor _cursor = __db.query(_statement);
try {
final int _cursorIndexOfPId = _cursor.getColumnIndexOrThrow("pId");
final int _cursorIndexOfName = _cursor.getColumnIndexOrThrow("name");
final int _cursorIndexOfAddress = _cursor.getColumnIndexOrThrow("address");
final int _cursorIndexOfLat = _cursor.getColumnIndexOrThrow("lat");
final int _cursorIndexOfLng = _cursor.getColumnIndexOrThrow("lng");
final int _cursorIndexOfDistrict = _cursor.getColumnIndexOrThrow("district");
final int _cursorIndexOfAdCode = _cursor.getColumnIndexOrThrow("adCode");
final int _cursorIndexOfTypeCode = _cursor.getColumnIndexOrThrow("typeCode");
final int _cursorIndexOfProvince = _cursor.getColumnIndexOrThrow("province");
final int _cursorIndexOfCity = _cursor.getColumnIndexOrThrow("city");
final int _cursorIndexOfType = _cursor.getColumnIndexOrThrow("type");
final int _cursorIndexOfTime = _cursor.getColumnIndexOrThrow("time");
final java.util.List<com.mogo.module.navi.bean.SearchPoi> _result = new java.util.ArrayList<com.mogo.module.navi.bean.SearchPoi>(_cursor.getCount());
while(_cursor.moveToNext()) {
final com.mogo.module.navi.bean.SearchPoi _item;
final java.lang.String _tmpPId;
_tmpPId = _cursor.getString(_cursorIndexOfPId);
final java.lang.String _tmpName;
_tmpName = _cursor.getString(_cursorIndexOfName);
final java.lang.String _tmpAddress;
_tmpAddress = _cursor.getString(_cursorIndexOfAddress);
final double _tmpLat;
_tmpLat = _cursor.getDouble(_cursorIndexOfLat);
final double _tmpLng;
_tmpLng = _cursor.getDouble(_cursorIndexOfLng);
final java.lang.String _tmpDistrict;
_tmpDistrict = _cursor.getString(_cursorIndexOfDistrict);
final java.lang.String _tmpAdCode;
_tmpAdCode = _cursor.getString(_cursorIndexOfAdCode);
final java.lang.String _tmpTypeCode;
_tmpTypeCode = _cursor.getString(_cursorIndexOfTypeCode);
_item = new com.mogo.module.navi.bean.SearchPoi(_tmpPId,_tmpName,_tmpAddress,_tmpLat,_tmpLng,_tmpDistrict,_tmpAdCode,_tmpTypeCode);
final java.lang.String _tmpProvince;
_tmpProvince = _cursor.getString(_cursorIndexOfProvince);
_item.setProvince(_tmpProvince);
final java.lang.String _tmpCity;
_tmpCity = _cursor.getString(_cursorIndexOfCity);
_item.setCity(_tmpCity);
final int _tmpType;
_tmpType = _cursor.getInt(_cursorIndexOfType);
_item.setType(_tmpType);
final long _tmpTime;
_tmpTime = _cursor.getLong(_cursorIndexOfTime);
_item.setTime(_tmpTime);
_result.add(_item);
}
if(_result == null) {
throw new EmptyResultSetException("Query returned empty result set: " + _statement.getSql());
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
@Override
public Single<List<SearchPoi>> getHomeAddress() {
final String _sql = "SELECT * FROM t_search_poi WHERE type=1";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
return Single.fromCallable(new Callable<List<SearchPoi>>() {
@Override
public List<SearchPoi> call() throws Exception {
final Cursor _cursor = __db.query(_statement);
try {
final int _cursorIndexOfPId = _cursor.getColumnIndexOrThrow("pId");
final int _cursorIndexOfName = _cursor.getColumnIndexOrThrow("name");
final int _cursorIndexOfAddress = _cursor.getColumnIndexOrThrow("address");
final int _cursorIndexOfLat = _cursor.getColumnIndexOrThrow("lat");
final int _cursorIndexOfLng = _cursor.getColumnIndexOrThrow("lng");
final int _cursorIndexOfDistrict = _cursor.getColumnIndexOrThrow("district");
final int _cursorIndexOfAdCode = _cursor.getColumnIndexOrThrow("adCode");
final int _cursorIndexOfTypeCode = _cursor.getColumnIndexOrThrow("typeCode");
final int _cursorIndexOfProvince = _cursor.getColumnIndexOrThrow("province");
final int _cursorIndexOfCity = _cursor.getColumnIndexOrThrow("city");
final int _cursorIndexOfType = _cursor.getColumnIndexOrThrow("type");
final int _cursorIndexOfTime = _cursor.getColumnIndexOrThrow("time");
final java.util.List<com.mogo.module.navi.bean.SearchPoi> _result = new java.util.ArrayList<com.mogo.module.navi.bean.SearchPoi>(_cursor.getCount());
while(_cursor.moveToNext()) {
final com.mogo.module.navi.bean.SearchPoi _item;
final java.lang.String _tmpPId;
_tmpPId = _cursor.getString(_cursorIndexOfPId);
final java.lang.String _tmpName;
_tmpName = _cursor.getString(_cursorIndexOfName);
final java.lang.String _tmpAddress;
_tmpAddress = _cursor.getString(_cursorIndexOfAddress);
final double _tmpLat;
_tmpLat = _cursor.getDouble(_cursorIndexOfLat);
final double _tmpLng;
_tmpLng = _cursor.getDouble(_cursorIndexOfLng);
final java.lang.String _tmpDistrict;
_tmpDistrict = _cursor.getString(_cursorIndexOfDistrict);
final java.lang.String _tmpAdCode;
_tmpAdCode = _cursor.getString(_cursorIndexOfAdCode);
final java.lang.String _tmpTypeCode;
_tmpTypeCode = _cursor.getString(_cursorIndexOfTypeCode);
_item = new com.mogo.module.navi.bean.SearchPoi(_tmpPId,_tmpName,_tmpAddress,_tmpLat,_tmpLng,_tmpDistrict,_tmpAdCode,_tmpTypeCode);
final java.lang.String _tmpProvince;
_tmpProvince = _cursor.getString(_cursorIndexOfProvince);
_item.setProvince(_tmpProvince);
final java.lang.String _tmpCity;
_tmpCity = _cursor.getString(_cursorIndexOfCity);
_item.setCity(_tmpCity);
final int _tmpType;
_tmpType = _cursor.getInt(_cursorIndexOfType);
_item.setType(_tmpType);
final long _tmpTime;
_tmpTime = _cursor.getLong(_cursorIndexOfTime);
_item.setTime(_tmpTime);
_result.add(_item);
}
if(_result == null) {
throw new EmptyResultSetException("Query returned empty result set: " + _statement.getSql());
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
@Override
public Single<List<SearchPoi>> getCompanyAddress() {
final String _sql = "SELECT * FROM t_search_poi WHERE type=2";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
return Single.fromCallable(new Callable<List<SearchPoi>>() {
@Override
public List<SearchPoi> call() throws Exception {
final Cursor _cursor = __db.query(_statement);
try {
final int _cursorIndexOfPId = _cursor.getColumnIndexOrThrow("pId");
final int _cursorIndexOfName = _cursor.getColumnIndexOrThrow("name");
final int _cursorIndexOfAddress = _cursor.getColumnIndexOrThrow("address");
final int _cursorIndexOfLat = _cursor.getColumnIndexOrThrow("lat");
final int _cursorIndexOfLng = _cursor.getColumnIndexOrThrow("lng");
final int _cursorIndexOfDistrict = _cursor.getColumnIndexOrThrow("district");
final int _cursorIndexOfAdCode = _cursor.getColumnIndexOrThrow("adCode");
final int _cursorIndexOfTypeCode = _cursor.getColumnIndexOrThrow("typeCode");
final int _cursorIndexOfProvince = _cursor.getColumnIndexOrThrow("province");
final int _cursorIndexOfCity = _cursor.getColumnIndexOrThrow("city");
final int _cursorIndexOfType = _cursor.getColumnIndexOrThrow("type");
final int _cursorIndexOfTime = _cursor.getColumnIndexOrThrow("time");
final java.util.List<com.mogo.module.navi.bean.SearchPoi> _result = new java.util.ArrayList<com.mogo.module.navi.bean.SearchPoi>(_cursor.getCount());
while(_cursor.moveToNext()) {
final com.mogo.module.navi.bean.SearchPoi _item;
final java.lang.String _tmpPId;
_tmpPId = _cursor.getString(_cursorIndexOfPId);
final java.lang.String _tmpName;
_tmpName = _cursor.getString(_cursorIndexOfName);
final java.lang.String _tmpAddress;
_tmpAddress = _cursor.getString(_cursorIndexOfAddress);
final double _tmpLat;
_tmpLat = _cursor.getDouble(_cursorIndexOfLat);
final double _tmpLng;
_tmpLng = _cursor.getDouble(_cursorIndexOfLng);
final java.lang.String _tmpDistrict;
_tmpDistrict = _cursor.getString(_cursorIndexOfDistrict);
final java.lang.String _tmpAdCode;
_tmpAdCode = _cursor.getString(_cursorIndexOfAdCode);
final java.lang.String _tmpTypeCode;
_tmpTypeCode = _cursor.getString(_cursorIndexOfTypeCode);
_item = new com.mogo.module.navi.bean.SearchPoi(_tmpPId,_tmpName,_tmpAddress,_tmpLat,_tmpLng,_tmpDistrict,_tmpAdCode,_tmpTypeCode);
final java.lang.String _tmpProvince;
_tmpProvince = _cursor.getString(_cursorIndexOfProvince);
_item.setProvince(_tmpProvince);
final java.lang.String _tmpCity;
_tmpCity = _cursor.getString(_cursorIndexOfCity);
_item.setCity(_tmpCity);
final int _tmpType;
_tmpType = _cursor.getInt(_cursorIndexOfType);
_item.setType(_tmpType);
final long _tmpTime;
_tmpTime = _cursor.getLong(_cursorIndexOfTime);
_item.setTime(_tmpTime);
_result.add(_item);
}
if(_result == null) {
throw new EmptyResultSetException("Query returned empty result set: " + _statement.getSql());
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
}

View File

@@ -1,132 +0,0 @@
package com.mogo.module.navi.database;
import androidx.room.DatabaseConfiguration;
import androidx.room.InvalidationTracker;
import androidx.room.RoomOpenHelper;
import androidx.room.RoomOpenHelper.Delegate;
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 com.mogo.module.navi.dao.SearchPoiDao;
import com.mogo.module.navi.dao.SearchPoiDao_Impl;
import java.lang.IllegalStateException;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.HashMap;
import java.util.HashSet;
@SuppressWarnings("unchecked")
public final class AppDataBase_Impl extends AppDataBase {
private volatile SearchPoiDao _searchPoiDao;
@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 `t_search_poi` (`pId` TEXT NOT NULL, `name` TEXT, `address` TEXT, `lat` REAL NOT NULL, `lng` REAL NOT NULL, `district` TEXT, `adCode` TEXT, `typeCode` TEXT, `province` TEXT, `city` TEXT, `type` INTEGER NOT NULL, `time` INTEGER NOT NULL, PRIMARY KEY(`pId`))");
_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, \"3c76b4248850c6e62d751825b93ce372\")");
}
@Override
public void dropAllTables(SupportSQLiteDatabase _db) {
_db.execSQL("DROP TABLE IF EXISTS `t_search_poi`");
}
@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
protected void validateMigration(SupportSQLiteDatabase _db) {
final HashMap<String, TableInfo.Column> _columnsTSearchPoi = new HashMap<String, TableInfo.Column>(12);
_columnsTSearchPoi.put("pId", new TableInfo.Column("pId", "TEXT", true, 1));
_columnsTSearchPoi.put("name", new TableInfo.Column("name", "TEXT", false, 0));
_columnsTSearchPoi.put("address", new TableInfo.Column("address", "TEXT", false, 0));
_columnsTSearchPoi.put("lat", new TableInfo.Column("lat", "REAL", true, 0));
_columnsTSearchPoi.put("lng", new TableInfo.Column("lng", "REAL", true, 0));
_columnsTSearchPoi.put("district", new TableInfo.Column("district", "TEXT", false, 0));
_columnsTSearchPoi.put("adCode", new TableInfo.Column("adCode", "TEXT", false, 0));
_columnsTSearchPoi.put("typeCode", new TableInfo.Column("typeCode", "TEXT", false, 0));
_columnsTSearchPoi.put("province", new TableInfo.Column("province", "TEXT", false, 0));
_columnsTSearchPoi.put("city", new TableInfo.Column("city", "TEXT", false, 0));
_columnsTSearchPoi.put("type", new TableInfo.Column("type", "INTEGER", true, 0));
_columnsTSearchPoi.put("time", new TableInfo.Column("time", "INTEGER", true, 0));
final HashSet<TableInfo.ForeignKey> _foreignKeysTSearchPoi = new HashSet<TableInfo.ForeignKey>(0);
final HashSet<TableInfo.Index> _indicesTSearchPoi = new HashSet<TableInfo.Index>(0);
final TableInfo _infoTSearchPoi = new TableInfo("t_search_poi", _columnsTSearchPoi, _foreignKeysTSearchPoi, _indicesTSearchPoi);
final TableInfo _existingTSearchPoi = TableInfo.read(_db, "t_search_poi");
if (! _infoTSearchPoi.equals(_existingTSearchPoi)) {
throw new IllegalStateException("Migration didn't properly handle t_search_poi(com.mogo.module.navi.bean.SearchPoi).\n"
+ " Expected:\n" + _infoTSearchPoi + "\n"
+ " Found:\n" + _existingTSearchPoi);
}
}
}, "3c76b4248850c6e62d751825b93ce372", "1e694e62e3fb46f02d0cfcf9314e2afb");
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() {
return new InvalidationTracker(this, "t_search_poi");
}
@Override
public void clearAllTables() {
super.assertNotMainThread();
final SupportSQLiteDatabase _db = super.getOpenHelper().getWritableDatabase();
try {
super.beginTransaction();
_db.execSQL("DELETE FROM `t_search_poi`");
super.setTransactionSuccessful();
} finally {
super.endTransaction();
_db.query("PRAGMA wal_checkpoint(FULL)").close();
if (!_db.inTransaction()) {
_db.execSQL("VACUUM");
}
}
}
@Override
public SearchPoiDao poiDao() {
if (_searchPoiDao != null) {
return _searchPoiDao;
} else {
synchronized(this) {
if(_searchPoiDao == null) {
_searchPoiDao = new SearchPoiDao_Impl(this);
}
return _searchPoiDao;
}
}
}
}

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mogo.module.navi"
android:versionCode="1"
android:versionName="1.0.0-SNAPSHOT" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="22" />
<application>
<activity android:name="com.mogo.module.navi.ui.NaviActivity" />
</application>
</manifest>

View File

@@ -1 +0,0 @@
[{"outputType":{"type":"AAPT_FRIENDLY_MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0.0-SNAPSHOT","enabled":true,"outputFile":"mogo-module-navi-debug.aar","fullName":"debug","baseName":"debug"},"path":"AndroidManifest.xml","properties":{"packageId":"com.mogo.module.navi","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="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/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="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/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="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/assets"/><source path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/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="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/debug/assets"/></dataSet></merger>

View File

@@ -1,17 +0,0 @@
#Wed Jan 08 11:21:41 CST 2020
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_wash.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/mipmap-xhdpi-v4/icon_navi_wash.png
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_tolit.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/mipmap-xhdpi-v4/icon_navi_tolit.png
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/layout/activity_navi.xml=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/layout/activity_navi.xml
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_position.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/mipmap-xhdpi-v4/icon_navi_position.png
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/drawable/shape_round_gray.xml=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/drawable/shape_round_gray.xml
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_back.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/mipmap-xhdpi-v4/icon_back.png
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_gas.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/mipmap-xhdpi-v4/icon_navi_gas.png
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_company.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/mipmap-xhdpi-v4/icon_navi_company.png
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/layout/item_search_poi.xml=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/layout/item_search_poi.xml
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/layout/fragment_search.xml=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/layout/fragment_search.xml
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_restrant.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/mipmap-xhdpi-v4/icon_navi_restrant.png
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/drawable/amap_white_shadow_bkg.9.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/drawable/amap_white_shadow_bkg.9.png
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_setting.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/mipmap-xhdpi-v4/icon_navi_setting.png
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_home.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/mipmap-xhdpi-v4/icon_navi_home.png
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_park.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/mipmap-xhdpi-v4/icon_navi_park.png
/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_location.png=/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/intermediates/packaged_res/debug/mipmap-xhdpi-v4/icon_navi_location.png

View File

@@ -1,54 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="arrow_color">#00BFFF</color>
<color name="bg_common">#080625</color>
<color name="bg_gray_common_page">#ff080625</color>
<color name="colorAccent">#D81B60</color>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="txt_blue">#3E7FFC</color>
<color name="txt_gray_day">#4D080625</color>
<color name="white">#FFFFFF</color>
<color name="white_10">#1AFFFFFF</color>
<color name="white_30">#4DFFFFFF</color>
<color name="white_60">#99FFFFFF</color>
<color name="white_7f">#7FFFFFFF</color>
<dimen name="txt_normal">@dimen/sp_32</dimen>
<item name="tag_position" type="id"/>
<string name="app_name">mogo-module-navi</string>
<string name="hint_map_search">查看地点、公交、地铁</string>
<string name="history_clear">清空历史</string>
<string name="history_empty">暂无历史结果</string>
<string name="history_search">搜索历史</string>
<string name="navi_company">去公司</string>
<string name="navi_gas">加油站</string>
<string name="navi_home">回家</string>
<string name="navi_park">停车场</string>
<string name="navi_restrant">餐馆</string>
<string name="navi_setting">更多设置</string>
<string name="navi_toilet">卫生间</string>
<string name="navi_wash">洗车</string>
<string name="search_empty">暂无搜索结果</string>
<style name="amap_fragment_container_margin_style">
<item name="android:layout_marginTop">25dp</item>
<item name="android:layout_marginLeft">48dp</item>
<item name="android:background">@drawable/amap_white_shadow_bkg</item>
</style>
<style name="amap_fragment_container_padding_style">
<item name="android:paddingTop">25dp</item>
<item name="android:paddingLeft">48dp</item>
</style>
<style name="amap_fragment_container_shadow_style">
<item name="android:paddingTop">25dp</item>
<item name="android:paddingLeft">48dp</item>
</style>
<style name="txt_navi_style">
<item name="android:layout_width">@dimen/dp_268</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:textSize">@dimen/txt_normal</item>
<item name="android:textColor">@color/white</item>
<item name="android:background">@drawable/shape_round_gray</item>
<item name="android:layout_height">@dimen/dp_236</item>
<item name="android:paddingTop">@dimen/dp_44</item>
</style>
</resources>

View File

@@ -1,20 +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="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res"/><source path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/generated/res/rs/debug"/><source path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/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="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res"><file name="shape_round_gray" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/drawable/shape_round_gray.xml" qualifiers="" type="drawable"/><file name="amap_white_shadow_bkg" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/drawable/amap_white_shadow_bkg.9.png" qualifiers="" type="drawable"/><file name="activity_navi" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/layout/activity_navi.xml" qualifiers="" type="layout"/><file name="fragment_search" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/layout/fragment_search.xml" qualifiers="" type="layout"/><file name="item_search_poi" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/layout/item_search_poi.xml" qualifiers="" type="layout"/><file path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/values/colors.xml" qualifiers=""><color name="colorPrimary">#008577</color><color name="colorPrimaryDark">#00574B</color><color name="colorAccent">#D81B60</color><color name="bg_gray_common_page">#ff080625</color><color name="white">#FFFFFF</color><color name="white_10">#1AFFFFFF</color><color name="white_60">#99FFFFFF</color><color name="white_7f">#7FFFFFFF</color><color name="arrow_color">#00BFFF</color><color name="white_30">#4DFFFFFF</color><color name="txt_gray_day">#4D080625</color><color name="bg_common">#080625</color><color name="txt_blue">#3E7FFC</color></file><file path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/values/dimens.xml" qualifiers=""><dimen name="txt_normal">@dimen/sp_32</dimen></file><file path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/values/styles.xml" qualifiers=""><style name="amap_fragment_container_padding_style">
<item name="android:paddingTop">25dp</item>
<item name="android:paddingLeft">48dp</item>
</style><style name="amap_fragment_container_margin_style">
<item name="android:layout_marginTop">25dp</item>
<item name="android:layout_marginLeft">48dp</item>
<item name="android:background">@drawable/amap_white_shadow_bkg</item>
</style><style name="amap_fragment_container_shadow_style">
<item name="android:paddingTop">25dp</item>
<item name="android:paddingLeft">48dp</item>
</style><style name="txt_navi_style">
<item name="android:layout_width">@dimen/dp_268</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:textSize">@dimen/txt_normal</item>
<item name="android:textColor">@color/white</item>
<item name="android:background">@drawable/shape_round_gray</item>
<item name="android:layout_height">@dimen/dp_236</item>
<item name="android:paddingTop">@dimen/dp_44</item>
</style></file><file path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/values/strings.xml" qualifiers=""><string name="app_name">mogo-module-navi</string><string name="hint_map_search">查看地点、公交、地铁</string><string name="history_search">搜索历史</string><string name="navi_home">回家</string><string name="navi_company">去公司</string><string name="navi_restrant">餐馆</string><string name="navi_gas">加油站</string><string name="navi_toilet">卫生间</string><string name="navi_park">停车场</string><string name="navi_wash">洗车</string><string name="navi_setting">更多设置</string><string name="history_clear">清空历史</string><string name="history_empty">暂无历史结果</string><string name="search_empty">暂无搜索结果</string></file><file path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/values/ids.xml" qualifiers=""><item name="tag_position" type="id"/></file><file name="icon_navi_park" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_park.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="icon_back" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_back.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="icon_navi_location" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_location.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="icon_navi_company" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_company.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="icon_navi_setting" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_setting.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="icon_navi_home" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_home.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="icon_navi_gas" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_gas.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="icon_navi_tolit" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_tolit.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="icon_navi_position" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_position.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="icon_navi_restrant" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_restrant.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="icon_navi_wash" path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/res/mipmap-xhdpi/icon_navi_wash.png" qualifiers="xhdpi-v4" type="mipmap"/></source><source path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/build/generated/res/rs/debug"/><source path="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/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="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/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="/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/debug/res"/></dataSet><mergedItems/></merger>

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mogo.module.navi"
android:versionCode="1"
android:versionName="1.0.0-SNAPSHOT" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="22" />
<application>
<activity android:name="com.mogo.module.navi.ui.NaviActivity" />
</application>
</manifest>

View File

@@ -1,71 +0,0 @@
R_DEF: Internal format may change without notice
local
color arrow_color
color bg_common
color bg_gray_common_page
color colorAccent
color colorPrimary
color colorPrimaryDark
color txt_blue
color txt_gray_day
color white
color white_10
color white_30
color white_60
color white_7f
dimen txt_normal
drawable amap_white_shadow_bkg
drawable shape_round_gray
id et_navi_search
id fl_container
id iv_navi_back
id iv_position
id ll_navi_home
id ll_navi_search
id rl_navi_history
id rv_navi_history
id rv_navi_search
id tag_position
id tv_navi_gas
id tv_navi_history
id tv_navi_history_clear
id tv_navi_list_empty
id tv_navi_park
id tv_navi_restaurant
id tv_navi_setting
id tv_navi_toilet
id tv_navi_wash
id tv_position
id tv_position_des
layout activity_navi
layout fragment_search
layout item_search_poi
mipmap icon_back
mipmap icon_navi_company
mipmap icon_navi_gas
mipmap icon_navi_home
mipmap icon_navi_location
mipmap icon_navi_park
mipmap icon_navi_position
mipmap icon_navi_restrant
mipmap icon_navi_setting
mipmap icon_navi_tolit
mipmap icon_navi_wash
string app_name
string hint_map_search
string history_clear
string history_empty
string history_search
string navi_company
string navi_gas
string navi_home
string navi_park
string navi_restrant
string navi_setting
string navi_toilet
string navi_wash
string search_empty
style amap_fragment_container_margin_style
style amap_fragment_container_padding_style
style amap_fragment_container_shadow_style
style txt_navi_style

View File

@@ -1,20 +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.navi"
4 android:versionCode="1"
5 android:versionName="1.0.0-SNAPSHOT" >
6
7 <uses-sdk
8 android:minSdkVersion="19"
8-->/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/AndroidManifest.xml
9 android:targetSdkVersion="22" />
9-->/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/AndroidManifest.xml
10
11 <application>
11-->/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/AndroidManifest.xml:5:3-7:17
12 <activity android:name="com.mogo.module.navi.ui.NaviActivity" />
12-->/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/AndroidManifest.xml:6:5-58
12-->/Users/admin/Android/ADAS/Launcher/modules/mogo-module-navi/src/main/AndroidManifest.xml:6:15-46
13 </application>
14
15</manifest>

View File

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

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#3F4057"/>
<corners android:radius="@dimen/dp_8"/>
</shape>

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"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.NaviActivity"
>
<FrameLayout
android:id="@+id/fl_container"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -1,223 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/dp_60"
android:paddingLeft="@dimen/dp_60"
android:paddingRight="@dimen/dp_60"
android:paddingTop="@dimen/dp_40"
tools:context=".ui.search.SearchFragment"
style="@style/amap_fragment_container_padding_style"
>
<LinearLayout
android:id="@+id/ll_navi_search"
android:layout_width="600dp"
android:layout_height="@dimen/dp_120"
android:background="@drawable/shape_round_gray"
android:gravity="center_vertical"
android:orientation="horizontal"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
>
<ImageView
android:layout_width="@dimen/dp_80"
android:id="@+id/iv_navi_back"
android:layout_height="@dimen/dp_80"
android:layout_marginLeft="@dimen/dp_24"
android:layout_marginRight="@dimen/dp_20"
android:src="@mipmap/icon_back"
/>
<EditText
android:layout_width="0dp"
android:id="@+id/et_navi_search"
android:background="@null"
android:layout_height="wrap_content"
android:layout_weight="1"
android:imeOptions="actionDone"
android:hint="@string/hint_map_search"
android:textColor="@color/white"
android:textColorHint="@color/white_60"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/ll_navi_home"
android:layout_width="@dimen/dp_568"
android:layout_height="@dimen/dp_120"
android:background="@drawable/shape_round_gray"
android:gravity="center_vertical"
android:layout_marginLeft="@dimen/dp_32"
android:orientation="horizontal"
app:layout_constraintLeft_toRightOf="@id/ll_navi_search"
app:layout_constraintTop_toTopOf="parent"
>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:textSize="@dimen/txt_normal"
android:paddingLeft="@dimen/dp_75"
android:gravity="center_vertical"
android:drawableLeft="@mipmap/icon_navi_home"
android:text="@string/navi_home"
android:textColor="@color/white"
/>
<View
android:layout_width="1dp"
android:layout_height="@dimen/dp_72"
android:background="#17D8D8D8"
/>
<TextView
android:layout_width="0dp"
android:textSize="@dimen/txt_normal"
android:text="@string/navi_company"
android:paddingLeft="@dimen/dp_75"
android:gravity="center_vertical"
android:drawableLeft="@mipmap/icon_navi_company"
android:layout_height="match_parent"
android:layout_weight="1"
android:textColor="@color/white"
/>
</LinearLayout>
<RelativeLayout
android:id="@+id/rl_navi_history"
android:layout_width="600dp"
android:layout_height="@dimen/dp_778"
android:layout_marginTop="@dimen/dp_32"
android:background="@drawable/shape_round_gray"
android:padding="@dimen/dp_40"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@+id/ll_navi_search"
>
<TextView
android:id="@+id/tv_navi_history"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/history_search"
android:textColor="@color/white_60"
android:textSize="@dimen/txt_normal"
/>
<TextView
android:id="@+id/tv_navi_history_clear"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="@string/history_clear"
android:textColor="@color/txt_blue"
android:textSize="@dimen/txt_normal"
/>
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:id="@+id/rv_navi_history"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/dp_60"
/>
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:visibility="gone"
android:layout_marginTop="@dimen/dp_32"
android:layout_width="600dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="@id/tv_navi_wash"
android:background="@drawable/shape_round_gray"
app:layout_constraintTop_toBottomOf="@id/ll_navi_search"
app:layout_constraintLeft_toLeftOf="parent"
android:id="@+id/rv_navi_search"/>
<TextView
android:visibility="gone"
android:layout_marginTop="@dimen/dp_32"
android:layout_width="600dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="@id/tv_navi_wash"
android:background="@drawable/shape_round_gray"
app:layout_constraintTop_toBottomOf="@id/ll_navi_search"
app:layout_constraintLeft_toLeftOf="parent"
android:id="@+id/tv_navi_list_empty"/>
<TextView
android:drawableTop="@mipmap/icon_navi_restrant"
app:layout_constraintTop_toBottomOf="@id/ll_navi_home"
app:layout_constraintLeft_toLeftOf="@id/ll_navi_home"
android:text="@string/navi_restrant"
android:layout_marginTop="@dimen/dp_32"
android:id="@+id/tv_navi_restaurant"
style="@style/txt_navi_style"
/>
<TextView
android:drawableTop="@mipmap/icon_navi_gas"
android:id="@+id/tv_navi_gas"
app:layout_constraintTop_toTopOf="@id/tv_navi_restaurant"
app:layout_constraintLeft_toRightOf="@id/tv_navi_restaurant"
android:text="@string/navi_gas"
android:layout_marginLeft="@dimen/dp_32"
style="@style/txt_navi_style"
/>
<TextView
android:drawableTop="@mipmap/icon_navi_tolit"
android:id="@+id/tv_navi_toilet"
app:layout_constraintTop_toBottomOf="@id/tv_navi_restaurant"
app:layout_constraintLeft_toLeftOf="@id/tv_navi_restaurant"
android:text="@string/navi_toilet"
android:layout_marginTop="@dimen/dp_32"
style="@style/txt_navi_style"
/>
<TextView
android:drawableTop="@mipmap/icon_navi_wash"
android:id="@+id/tv_navi_wash"
app:layout_constraintTop_toBottomOf="@id/tv_navi_toilet"
app:layout_constraintLeft_toLeftOf="@id/tv_navi_restaurant"
android:text="@string/navi_park"
android:layout_marginTop="@dimen/dp_32"
style="@style/txt_navi_style"
/>
<TextView
android:drawableTop="@mipmap/icon_navi_park"
android:id="@+id/tv_navi_park"
app:layout_constraintTop_toBottomOf="@id/tv_navi_gas"
app:layout_constraintLeft_toLeftOf="@id/tv_navi_gas"
android:text="@string/navi_wash"
android:layout_marginTop="@dimen/dp_32"
style="@style/txt_navi_style"
/>
<TextView
android:drawableTop="@mipmap/icon_navi_setting"
android:id="@+id/tv_navi_setting"
app:layout_constraintTop_toBottomOf="@id/tv_navi_park"
app:layout_constraintLeft_toLeftOf="@id/tv_navi_gas"
android:text="@string/navi_setting"
android:layout_marginTop="@dimen/dp_32"
style="@style/txt_navi_style"
/>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -1,58 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
android:layout_height="@dimen/dp_180"
>
<ImageView
android:id="@+id/iv_position"
android:layout_width="@dimen/dp_80"
android:layout_height="@dimen/dp_80"
android:src="@mipmap/icon_navi_position"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>
<TextView
android:id="@+id/tv_position"
android:layout_width="0dp"
android:layout_height="@dimen/dp_70"
android:layout_marginLeft="@dimen/dp_30"
android:layout_marginTop="@dimen/dp_30"
android:gravity="center_vertical"
android:textColor="@color/white"
android:textSize="25sp"
app:layout_constraintLeft_toRightOf="@id/iv_position"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>
<TextView
android:id="@+id/tv_position_des"
android:layout_width="0dp"
android:layout_height="@dimen/dp_42"
android:layout_marginTop="@dimen/dp_8"
android:ellipsize="marquee"
android:singleLine="true"
android:textColor="@color/white_60"
android:textSize="@dimen/sp_30"
app:layout_constraintLeft_toLeftOf="@id/tv_position"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_position"
/>
<View
android:layout_width="0dp"
android:layout_height="@dimen/dp_2"
android:layout_marginLeft="@dimen/dp_110"
android:background="@color/white_10"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 703 B

View File

@@ -1,54 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="arrow_color">#00BFFF</color>
<color name="bg_common">#080625</color>
<color name="bg_gray_common_page">#ff080625</color>
<color name="colorAccent">#D81B60</color>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="txt_blue">#3E7FFC</color>
<color name="txt_gray_day">#4D080625</color>
<color name="white">#FFFFFF</color>
<color name="white_10">#1AFFFFFF</color>
<color name="white_30">#4DFFFFFF</color>
<color name="white_60">#99FFFFFF</color>
<color name="white_7f">#7FFFFFFF</color>
<dimen name="txt_normal">@dimen/sp_32</dimen>
<item name="tag_position" type="id"/>
<string name="app_name">mogo-module-navi</string>
<string name="hint_map_search">查看地点、公交、地铁</string>
<string name="history_clear">清空历史</string>
<string name="history_empty">暂无历史结果</string>
<string name="history_search">搜索历史</string>
<string name="navi_company">去公司</string>
<string name="navi_gas">加油站</string>
<string name="navi_home">回家</string>
<string name="navi_park">停车场</string>
<string name="navi_restrant">餐馆</string>
<string name="navi_setting">更多设置</string>
<string name="navi_toilet">卫生间</string>
<string name="navi_wash">洗车</string>
<string name="search_empty">暂无搜索结果</string>
<style name="amap_fragment_container_margin_style">
<item name="android:layout_marginTop">25dp</item>
<item name="android:layout_marginLeft">48dp</item>
<item name="android:background">@drawable/amap_white_shadow_bkg</item>
</style>
<style name="amap_fragment_container_padding_style">
<item name="android:paddingTop">25dp</item>
<item name="android:paddingLeft">48dp</item>
</style>
<style name="amap_fragment_container_shadow_style">
<item name="android:paddingTop">25dp</item>
<item name="android:paddingLeft">48dp</item>
</style>
<style name="txt_navi_style">
<item name="android:layout_width">@dimen/dp_268</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:textSize">@dimen/txt_normal</item>
<item name="android:textColor">@color/white</item>
<item name="android:background">@drawable/shape_round_gray</item>
<item name="android:layout_height">@dimen/dp_236</item>
<item name="android:paddingTop">@dimen/dp_44</item>
</style>
</resources>

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