fixed for java to compile
This commit is contained in:
parent
35b3013f3d
commit
3d37ea77cd
|
@ -31,13 +31,12 @@ public class MainActivity extends ReactActivity {
|
||||||
properties.setProperty("http.nonProxyHosts", "localhost|127.0.0.1");
|
properties.setProperty("http.nonProxyHosts", "localhost|127.0.0.1");
|
||||||
properties.setProperty("https.nonProxyHosts", "localhost|127.0.0.1");
|
properties.setProperty("https.nonProxyHosts", "localhost|127.0.0.1");
|
||||||
|
|
||||||
String dataFolder = null;
|
|
||||||
File extStore = Environment.getExternalStorageDirectory();
|
File extStore = Environment.getExternalStorageDirectory();
|
||||||
if (extStore.exists()) {
|
|
||||||
dataFolder = extStore.getAbsolutePath();
|
final String dataFolder = extStore.exists() ?
|
||||||
} else {
|
extStore.getAbsolutePath() :
|
||||||
dataFolder = getApplicationInfo().dataDir;
|
getApplicationInfo().dataDir;
|
||||||
}
|
|
||||||
// Launch!
|
// Launch!
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
|
@ -64,16 +63,16 @@ public class MainActivity extends ReactActivity {
|
||||||
return BuildConfig.DEBUG;
|
return BuildConfig.DEBUG;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of packages used by the app. If the app uses additional views
|
* A list of packages used by the app. If the app uses additional views
|
||||||
* or modules besides the default ones, add more packages here.
|
* or modules besides the default ones, add more packages here.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected List<ReactPackage> getPackages() {
|
protected List<ReactPackage> getPackages() {
|
||||||
return Arrays.<ReactPackage>asList(
|
return Arrays.<ReactPackage>asList(
|
||||||
new MainReactPackage(),
|
new MainReactPackage(),
|
||||||
new ReactNativeContacts(),
|
new ReactNativeContacts(),
|
||||||
new ReactNativeI18n()
|
new ReactNativeI18n()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue