Skip to content

Commit

Permalink
change to github and add check upgrade manually
Browse files Browse the repository at this point in the history
  • Loading branch information
ZCShou committed May 22, 2022
1 parent e35d419 commit 6d2ad05
Show file tree
Hide file tree
Showing 7 changed files with 592 additions and 571 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
##
  影梭是一个基于 Android 调试 API + 百度地图实现的定位修改工具,并且同时实现了一个可以自由控制移动的摇杆。使用影梭,不需要 ROOT 权限就可以随意修改自己的当前位置以及模拟移动。

> 由于 Gitee 不再适合开源,已经删除了 Gitee 上的源代码
> 由于 [Gitee 不再适合开源](https://www.zhihu.com/question/533388365/answer/2491172345),已经删除了 Gitee 上的源代码
  下载地址:[发行版](https://github.com/ZCShou/GoGoGo/releases)

Expand Down Expand Up @@ -46,7 +46,7 @@

## 用法
1. 下载 APK 直接安装
2. 启动软件,赋予相关权限
2. 启动影梭,赋予相关权限
3. 单击地图位置,然后点击启动按钮

## 文档
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ android {
applicationId "com.zcshou.gogogo"
minSdkVersion 27
targetSdkVersion 32
versionCode 1101
versionName '1.10.1' // 语义化版本 https://semver.org/lang/zh-CN/
versionCode 1100
versionName '1.10.0' // 语义化版本 https://semver.org/lang/zh-CN/
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resConfigs 'zh', 'zh-rCN', 'en', 'en-rUS' // 仅保留中文和英文
ndk {
Expand Down Expand Up @@ -101,7 +101,7 @@ android {
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.preference:preference:1.2.0'
implementation 'com.google.android.material:material:1.6.0'
implementation 'com.squareup.okhttp3:okhttp:3.14.9'
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/zcshou/gogogo/HistoryActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private void initRecordListView() {
wgs84Longitude = latLngStr2[0].substring(latLngStr2[0].indexOf(":") + 1);
wgs84Latitude = latLngStr2[1].substring(latLngStr2[1].indexOf(":") + 1);

if (!MainActivity.showHistoryLocation(bd09Longitude, bd09Latitude, wgs84Longitude, wgs84Latitude)) {
if (!MainActivity.showLocation(bd09Longitude, bd09Latitude, wgs84Longitude, wgs84Latitude)) {
GoUtils.DisplayToast(this, "定位失败,请手动选取定位点");
}
this.finish();
Expand Down
1,137 changes: 572 additions & 565 deletions app/src/main/java/com/zcshou/gogogo/MainActivity.java

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions app/src/main/res/drawable/ic_menu_upgrade.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:fillColor="#FF000000"
android:pathData="M794.7,312.7c-15.6,-58.1 -49.2,-110.5 -95.9,-149.3C646.5,119.9 580.1,96 512,96c-68.1,0 -134.5,23.9 -186.8,67.4 -46.7,38.8 -80.2,91.2 -95.8,149.3 -92,33.5 -154.7,121.5 -154.7,220.6 0,62.5 24.5,121.4 68.9,165.8C188,743.5 246.9,768 309.4,768H352v-64h-42.6c-94.1,0 -170.7,-76.6 -170.7,-170.7 0,-76.8 51.9,-144.5 126.1,-164.7l19.1,-5.2 3.8,-19.5C308.8,237.3 403.1,160 512,160c108.8,0 203.2,77.4 224.3,183.9l3.9,19.4 19.1,5.2c74.2,20.2 126.1,87.9 126.1,164.7 0,94.1 -76.6,170.7 -170.7,170.7H549.5l77.2,-77.3 -45.2,-45.2 -109.3,109.3L427,736l45.2,45.3 118.7,118.6 45.2,-45.3 -86.6,-86.6h165.2c62.5,0 121.4,-24.5 165.8,-68.9s68.9,-103.3 68.9,-165.8c0,-99 -62.7,-187.1 -154.7,-220.6z"/>
</vector>
4 changes: 4 additions & 0 deletions app/src/main/res/menu/menu_nav.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

<item android:title="@string/nav_menu_more">
<menu>
<item
android:id="@+id/nav_update"
android:icon="@drawable/ic_menu_upgrade"
android:title="@string/nav_menu_upgrade" />
<item
android:id="@+id/nav_feedback"
android:icon="@drawable/ic_menu_feedback"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<string name="nav_menu_settings">设置</string>
<string name="nav_menu_dev">开发人员选项</string>
<string name="nav_menu_more">更多</string>
<string name="nav_menu_upgrade">检测更新</string>
<string name="nav_menu_feedback">问题反馈</string>
<string name="nav_menu_contact">联系作者</string>

Expand Down

0 comments on commit 6d2ad05

Please sign in to comment.