Skip to content

Commit

Permalink
* update YGOCard
Browse files Browse the repository at this point in the history
  • Loading branch information
rarnu committed Jun 15, 2016
1 parent 578cb0c commit ea06aff
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
6 changes: 3 additions & 3 deletions YGOCard/AndroidManifest.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yugioh.android"
android:versionCode="110"
android:versionName="ver 3.2">
android:versionCode="200"
android:versionName="ver 3.6">

<uses-sdk
android:minSdkVersion="14"
Expand All @@ -21,7 +21,7 @@
android:name=".YuGiOhApplication">
<meta-data
android:name="release-date"
android:value="2015.07.16" />
android:value="2016.06.16" />
<meta-data
android:name="database-version"
android:value="106" />
Expand Down
Binary file modified YGOCard/assets/yugioh.db
Binary file not shown.
21 changes: 21 additions & 0 deletions YGOCard/conv/update_data
@@ -0,0 +1,21 @@
数据更新:

1. 获取当前数据库版本号
$ python yugioh_convert_sqlite.py R

2. 跟据新版本号,新的原始数据库生成新数据库
$ python yugioh_convert_sqlite.py W ocgdb.sqlite <Version Code> <Output Path>

3. 获取数据库内的卡片总数
$ sqlite3 yugioh.db
$ select count(*) from YGODATA;

4. 压缩生成的 yugioh.db 为 yugioh.zip

5. 上传 yugioh.zip 到服务器内 /yugioh/download/

6. 修改 update.php,更改数据库版本号和卡片总数

卡查 APK 更新:

1. 打包签名后,修改文件名为 YuGiOhCard.apk,上传到服务器内 /yugioh/download/
2 changes: 1 addition & 1 deletion YGOCard/src/com/yugioh/android/define/NetworkDefine.java
Expand Up @@ -2,7 +2,7 @@

public class NetworkDefine {

public static final String BASE_URL = "http://rarnu.7thgen.info/yugioh/";
public static final String BASE_URL = "http://diy.ourocg.cn/yugioh/";
public static final String UPDATE_URL = BASE_URL + "update.php";
public static final String UPDATE_PARAM_FMT = "ver=%d&cardid=%d&dbver=%d&os=a";
public static final String FEEDBACK_URL = BASE_URL + "feedback.php";
Expand Down

0 comments on commit ea06aff

Please sign in to comment.