File tree Expand file tree Collapse file tree 7 files changed +4
-239
lines changed
pythonforandroid/bootstraps
common/build/src/main/java/org/kivy/android
sdl2/build/src/main/java/org
service_only/build/src/main/java/org/kivy/android
webview/build/src/main/java/org/kivy/android Expand file tree Collapse file tree 7 files changed +4
-239
lines changed Original file line number Diff line number Diff line change 14
14
import android .os .Process ;
15
15
import java .io .File ;
16
16
17
- import org .kivy .android .PythonUtil ;
18
-
19
17
import org .renpy .android .Hardware ;
20
18
21
19
@@ -142,9 +140,7 @@ public void onTaskRemoved(Intent rootIntent) {
142
140
143
141
@ Override
144
142
public void run (){
145
- String app_root = getFilesDir ().getAbsolutePath () + "/app" ;
146
- File app_root_file = new File (app_root );
147
- PythonUtil .loadLibraries (app_root_file );
143
+ System .loadLibrary ("main" );
148
144
this .mService = this ;
149
145
nativeStart (
150
146
androidPrivate , androidArgument ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 36
36
37
37
import org .libsdl .app .SDLActivity ;
38
38
39
- import org .kivy .android .PythonUtil ;
40
39
import org .kivy .android .launcher .Project ;
41
40
42
41
import org .renpy .android .ResourceManager ;
@@ -73,12 +72,6 @@ protected void onCreate(Bundle savedInstanceState) {
73
72
new UnpackFilesTask ().execute (getAppRoot ());
74
73
}
75
74
76
- public void loadLibraries () {
77
- String app_root = new String (getAppRoot ());
78
- File app_root_file = new File (app_root );
79
- PythonUtil .loadLibraries (app_root_file );
80
- }
81
-
82
75
public void recursiveDelete (File f ) {
83
76
if (f .isDirectory ()) {
84
77
for (File r : f .listFiles ()) {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -58,32 +58,6 @@ public class SDLActivity extends Activity {
58
58
// Audio
59
59
protected static AudioTrack mAudioTrack ;
60
60
61
- /**
62
- * This method is called by SDL before loading the native shared libraries.
63
- * It can be overridden to provide names of shared libraries to be loaded.
64
- * The default implementation returns the defaults. It never returns null.
65
- * An array returned by a new implementation must at least contain "SDL2".
66
- * Also keep in mind that the order the libraries are loaded may matter.
67
- * @return names of shared libraries to be loaded (e.g. "SDL2", "main").
68
- */
69
- protected String [] getLibraries () {
70
- return new String [] {
71
- "SDL2" ,
72
- // "SDL2_image",
73
- // "SDL2_mixer",
74
- // "SDL2_net",
75
- // "SDL2_ttf",
76
- "main"
77
- };
78
- }
79
-
80
- // Load the .so
81
- public void loadLibraries () {
82
- for (String lib : getLibraries ()) {
83
- System .loadLibrary (lib );
84
- }
85
- }
86
-
87
61
/**
88
62
* This method is called by SDL before starting the native application thread.
89
63
* It can be overridden to provide the arguments after the application name.
@@ -130,7 +104,7 @@ protected void finishLoad() {
130
104
// Load shared libraries
131
105
String errorMsgBrokenLib = "" ;
132
106
try {
133
- loadLibraries ( );
107
+ System . loadLibrary ( "main" );
134
108
} catch (UnsatisfiedLinkError e ) {
135
109
System .err .println (e .getMessage ());
136
110
mBrokenLibraries = true ;
Original file line number Diff line number Diff line change 46
46
import android .webkit .WebViewClient ;
47
47
import android .webkit .WebView ;
48
48
49
- import org .kivy .android .PythonUtil ;
50
-
51
49
import org .renpy .android .ResourceManager ;
52
50
import org .renpy .android .AssetExtract ;
53
51
@@ -106,7 +104,7 @@ protected void onCreate(Bundle savedInstanceState) {
106
104
// Load shared libraries
107
105
String errorMsgBrokenLib = "" ;
108
106
try {
109
- loadLibraries ( );
107
+ System . loadLibrary ( "main" );
110
108
} catch (UnsatisfiedLinkError e ) {
111
109
System .err .println (e .getMessage ());
112
110
mBrokenLibraries = true ;
@@ -181,12 +179,6 @@ public void onDestroy() {
181
179
android .os .Process .killProcess (android .os .Process .myPid ());
182
180
}
183
181
184
- public void loadLibraries () {
185
- String app_root = new String (getAppRoot ());
186
- File app_root_file = new File (app_root );
187
- PythonUtil .loadLibraries (app_root_file );
188
- }
189
-
190
182
public void recursiveDelete (File f ) {
191
183
if (f .isDirectory ()) {
192
184
for (File r : f .listFiles ()) {
Original file line number Diff line number Diff line change 48
48
import android .webkit .WebViewClient ;
49
49
import android .webkit .WebView ;
50
50
51
- import org .kivy .android .PythonUtil ;
52
-
53
51
import org .kivy .android .WebViewLoader ;
54
52
55
53
import org .renpy .android .ResourceManager ;
@@ -115,7 +113,7 @@ protected void onCreate(Bundle savedInstanceState) {
115
113
// Load shared libraries
116
114
String errorMsgBrokenLib = "" ;
117
115
try {
118
- loadLibraries ( );
116
+ System . loadLibrary ( "main" );
119
117
} catch (UnsatisfiedLinkError e ) {
120
118
System .err .println (e .getMessage ());
121
119
mBrokenLibraries = true ;
@@ -212,12 +210,6 @@ public void onDestroy() {
212
210
android .os .Process .killProcess (android .os .Process .myPid ());
213
211
}
214
212
215
- public void loadLibraries () {
216
- String app_root = new String (getAppRoot ());
217
- File app_root_file = new File (app_root );
218
- PythonUtil .loadLibraries (app_root_file );
219
- }
220
-
221
213
public void recursiveDelete (File f ) {
222
214
if (f .isDirectory ()) {
223
215
for (File r : f .listFiles ()) {
You can’t perform that action at this time.
0 commit comments