Skip to content

Commit 834f498

Browse files
committed
Merge branch 'develop' into sticky
2 parents df54ad8 + 9e5810d commit 834f498

File tree

5 files changed

+48
-21
lines changed

5 files changed

+48
-21
lines changed

doc/source/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ On macOS::
9797

9898
brew install autoconf automake libtool openssl pkg-config
9999
brew tap homebrew/cask-versions
100-
brew cask install homebrew/cask-versions/adoptopenjdk8
100+
brew install --cask homebrew/cask-versions/adoptopenjdk8
101101

102102
Installing Android SDK
103103
~~~~~~~~~~~~~~~~~~~~~~

pythonforandroid/bootstraps/sdl2/build/src/main/java/org/kivy/android/PythonActivity.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import android.os.Bundle;
2626
import android.os.PowerManager;
2727
import android.util.Log;
28+
import android.view.inputmethod.InputMethodManager;
2829
import android.view.SurfaceView;
2930
import android.view.ViewGroup;
3031
import android.view.View;
@@ -632,4 +633,12 @@ public void requestPermissionsWithRequestCode(String[] permissions, int requestC
632633
public void requestPermissions(String[] permissions) {
633634
requestPermissionsWithRequestCode(permissions, 1);
634635
}
636+
637+
public static void changeKeyboard(int inputType) {
638+
if (SDLActivity.keyboardInputType != inputType){
639+
SDLActivity.keyboardInputType = inputType;
640+
InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
641+
imm.restartInput(mTextEdit);
642+
}
643+
}
635644
}

pythonforandroid/bootstraps/sdl2/build/src/patches/SDLActivity.java.patch

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
--- a/src/main/java/org/libsdl/app/SDLActivity.java
22
+++ b/src/main/java/org/libsdl/app/SDLActivity.java
3-
@@ -196,6 +196,15 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
3+
@@ -94,6 +94,8 @@
4+
// This is what SDL runs in. It invokes SDL_main(), eventually
5+
protected static Thread mSDLThread;
6+
7+
+ public static int keyboardInputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD;
8+
+
9+
protected static SDLGenericMotionListener_API12 getMotionListener() {
10+
if (mMotionListener == null) {
11+
if (Build.VERSION.SDK_INT >= 26) {
12+
@@ -196,6 +198,15 @@
413
Log.v(TAG, "onCreate()");
514
super.onCreate(savedInstanceState);
6-
15+
716
+ SDLActivity.initialize();
817
+ // So we can call stuff from static callbacks
918
+ mSingleton = this;
@@ -16,19 +25,19 @@
1625
// Load shared libraries
1726
String errorMsgBrokenLib = "";
1827
try {
19-
@@ -639,7 +648,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
28+
@@ -639,7 +650,7 @@
2029
Handler commandHandler = new SDLCommandHandler();
21-
30+
2231
// Send a message from the SDLMain thread
2332
- boolean sendCommand(int command, Object data) {
2433
+ protected boolean sendCommand(int command, Object data) {
2534
Message msg = commandHandler.obtainMessage();
2635
msg.arg1 = command;
2736
msg.obj = data;
28-
@@ -1051,6 +1061,21 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
37+
@@ -1051,6 +1062,21 @@
2938
return Arrays.copyOf(filtered, used);
3039
}
31-
40+
3241
+ /**
3342
+ * Calls turnActive() on singleton to keep loading screen active
3443
+ */
@@ -45,11 +54,11 @@
4554
+
4655
+
4756
// APK expansion files support
48-
57+
4958
/** com.android.vending.expansion.zipfile.ZipResourceFile object or null. */
50-
@@ -1341,14 +1366,13 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
59+
@@ -1341,14 +1367,13 @@
5160
};
52-
61+
5362
public void onSystemUiVisibilityChange(int visibility) {
5463
- if (SDLActivity.mFullscreenModeActive && (visibility & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0 || (visibility & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0) {
5564
-
@@ -62,13 +71,21 @@
6271
}
6372
-
6473
}
65-
}
66-
67-
@@ -1475,6 +1499,7 @@ class SDLMain implements Runnable {
74+
}
75+
76+
@@ -1475,6 +1500,7 @@
6877
String[] arguments = SDLActivity.mSingleton.getArguments();
69-
78+
7079
Log.v("SDL", "Running main function " + function + " from library " + library);
7180
+ SDLActivity.mSingleton.appConfirmedActive();
7281
SDLActivity.nativeRunMain(library, function, arguments);
73-
82+
7483
Log.v("SDL", "Finished main function");
84+
@@ -2002,7 +2028,7 @@
85+
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
86+
ic = new SDLInputConnection(this, true);
87+
88+
- outAttrs.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD;
89+
+ outAttrs.inputType = SDLActivity.keyboardInputType;
90+
outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI
91+
| EditorInfo.IME_FLAG_NO_FULLSCREEN /* API 11 */;

pythonforandroid/logger.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,18 @@ def printtail(out, name, forecolor, tail_n=0,
214214
re.compile(filter_in) if filter_in else None,
215215
re.compile(filter_out) if filter_out else None)
216216
printtail(err.stderr.decode('utf-8'), 'STDERR', Err_Fore.RED)
217-
if is_critical:
218-
env = kwargs.get("env")
217+
if is_critical or full_debug:
218+
env = kwargs.get("_env")
219219
if env is not None:
220220
info("{}ENV:{}\n{}\n".format(
221221
Err_Fore.YELLOW, Err_Fore.RESET, "\n".join(
222-
"set {}={}".format(n, v) for n, v in env.items())))
222+
"export {}='{}'".format(n, v) for n, v in env.items())))
223223
info("{}COMMAND:{}\ncd {} && {} {}\n".format(
224224
Err_Fore.YELLOW, Err_Fore.RESET, os.getcwd(), command,
225225
' '.join(args)))
226226
warning("{}ERROR: {} failed!{}".format(
227227
Err_Fore.RED, command, Err_Fore.RESET))
228+
if is_critical:
228229
exit(1)
229230
else:
230231
raise

pythonforandroid/recipes/pyzmq/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
class PyZMQRecipe(CythonRecipe):
1212
name = 'pyzmq'
13-
version = 'master'
14-
url = 'https://github.com/zeromq/pyzmq/archive/{version}.zip'
13+
version = '20.0.0'
14+
url = 'https://github.com/zeromq/pyzmq/archive/v{version}.zip'
1515
site_packages_name = 'zmq'
16-
depends = ['libzmq']
16+
depends = ['setuptools', 'libzmq']
1717
cython_args = ['-Izmq/utils',
1818
'-Izmq/backend/cython',
1919
'-Izmq/devices']

0 commit comments

Comments
 (0)