Skip to content

Commit 3dd4f6f

Browse files
committed
推送 QPython 3C 3.5.4
1 parent c948394 commit 3dd4f6f

254 files changed

Lines changed: 2520 additions & 20442 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

QPython修改版说明.doc

20 KB
Binary file not shown.

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ buildscript {
1717
}
1818

1919
dependencies {
20-
classpath 'com.android.tools.build:gradle:3.5.3'
20+
classpath 'com.android.tools.build:gradle:4.2.0'
2121

2222
// A gradle plugin for getting java lambda support in java 6, 7 and android
2323
// https://github.com/evant/gradle-retrolambda
@@ -91,9 +91,9 @@ ext {
9191
libSupportDesign = "com.android.support:design:${supportVersion}"
9292
libOkHttp3Log = "com.squareup.okhttp3:logging-interceptor:${okhttpVersion}"
9393

94-
minSdkVersion = 14
94+
minSdkVersion = 21
9595
targetSdkVersion = 28
96-
compileSdkVersion = 28
96+
compileSdkVersion = 31
9797
buildToolsVersion = '28.0.3'
9898

9999
// firebase related https://firebase.google.com/docs/android/setup

local.properties

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
# Location of the SDK. This is only used by Gradle.
55
# For customization when using a Version Control System, please read the
66
# header note.
7-
#Thu Aug 02 10:23:49 CST 2018
8-
ndk.dir=/Users/yanhecun/Library/Android/sdk/ndk-bundle
9-
sdk.dir=/Users/yanhecun/Library/Android/sdk
7+
#Sat Apr 03 16:46:13 CST 2021
8+
sdk.dir=C\:\\Users\\Administrator\\AppData\\Local\\Android\\Sdk

qpypluginman/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ android {
1818
lintOptions {
1919
abortOnError false
2020
}
21+
compileOptions {
22+
sourceCompatibility JavaVersion.VERSION_1_7
23+
targetCompatibility JavaVersion.VERSION_1_7
24+
}
2125
}
2226

2327
dependencies {

qpysdk/src/main/assets/android.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

qpysdk/src/main/assets/html/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function gotoApp() {
33
total = total+1
44
if (total>=10) {
55
//setTimeout('milib.closeWait()',100);
6-
$('#mainEle').html('<div id="loading">Fail to start QPyWebapp, please check manually.</div>');
6+
$('#mainEle').html('<div id="loading">Fail to start QPython WebApp, please click LOG button in the upper right to check .<br>启动QPython网页应用失败,请点击右上角LOG查看原因。</div>');
77
milib.onNext("timeout");
88

99
} else {

qpysdk/src/main/assets/json2.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

qpysdk/src/main/assets/webapp.html

Lines changed: 0 additions & 43 deletions
This file was deleted.

qpysdk/src/main/java/org/qpython/qpysdk/QPyConstants.java

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,48 @@
11
package org.qpython.qpysdk;
22

3+
import android.content.Context;
34
import android.os.Environment;
45

56
import com.quseit.config.BASE_CONF;
7+
import com.quseit.util.FileHelper;
68

79
public interface QPyConstants extends BASE_CONF {
810

9-
final String WEB_PROJECT = "web";
10-
final String CONSOLE_PROJECT = "console";
11-
final String KIVY_PROJECT = "kivy";
12-
final String PYGAME_PROJECT = "pygame";
13-
final String QUIET_PROJECT = "quiet";
14-
final String QSL4A_PROJECT = "qsl4a";
11+
String WEB_PROJECT = "web";
12+
String CONSOLE_PROJECT = "console";
13+
//final String KIVY_PROJECT = "kivy";
14+
//String PYGAME_PROJECT = "pygame";
15+
String QUIET_PROJECT = "quiet";
16+
String QSL4A_PROJECT = "qsl4a";
1517

1618
String BASE_PATH = "qpython";
1719
String AD_URL = "https://apu2.quseit.com/ad/";
1820

1921
String UPDATE_URL = "https://apu2.quseit.com/conf/update/";
2022
String LOG_URL = "https://apu2.quseit.com/conf/log/";
21-
String IAP_LOG_URL = "https://apu2.quseit.com/conf/iaplog/";
23+
//String IAP_LOG_URL = "https://apu2.quseit.com/conf/iaplog/";
2224

2325
String DFROM_RUN = ".runtime";
2426
String PY_CACHE = ".qpyc";
2527

26-
String DFROM_QPY2 = "scripts";
28+
// String DFROM_QPY2 = "scripts";
2729
String DFROM_QPY3 = "scripts3";
28-
String DFROM_PRJ2 = "projects";
30+
// String DFROM_PRJ2 = "projects";
2931
String DFROM_PRJ3 = "projects3";
3032

31-
final String KEY_PY3_RES = "setting.py3resource.path";
32-
final String KEY_NOTEBOOK_RES = "setting.notebook3sresource.path";
33-
final String KEY_NOTEBOOK2_RES = "setting.notebook2resource.path";
33+
String KEY_PY3_RES = "setting.py3resource.path";
34+
//String KEY_NOTEBOOK_RES = "setting.notebook3sresource.path";
35+
//String KEY_NOTEBOOK2_RES = "setting.notebook2resource.path";
3436

37+
//String py3Ver = "3.9";
3538

3639
String ABSOLUTE_PATH = Environment.getExternalStorageDirectory().getPath() + "/" + BASE_PATH;
3740
String PY_CACHE_PATH = ABSOLUTE_PATH+"/"+PY_CACHE;
3841
String ABSOLUTE_LOG = ABSOLUTE_PATH + "/log/last.log";
42+
String WEB_LOG = ABSOLUTE_PATH + "/log/web.log";
43+
String QUIET_LOG = ABSOLUTE_PATH + "/log/quiet.log";
3944

40-
String PYTHON_2 = "2.x";
45+
//String PYTHON_2 = "2.x";
4146

4247
String QPYC3 = "https://dl.qpy.io/py3.json";
4348
String QPYC2COMPATIBLE = "https://dl.qpy.io/py2compatible.json";

0 commit comments

Comments
 (0)