Increase min API to 9
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
android:versionName="0.1" >
|
android:versionName="0.1" >
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="8"
|
android:minSdkVersion="9"
|
||||||
android:targetSdkVersion="19" />
|
android:targetSdkVersion="19" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
|
|||||||
@@ -6,6 +6,6 @@
|
|||||||
android:installLocation="auto"
|
android:installLocation="auto"
|
||||||
>
|
>
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="8" />
|
<uses-sdk android:minSdkVersion="9" />
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|||||||
@@ -53,14 +53,11 @@
|
|||||||
<copy file="${i2plib}/router.jar" todir="${jar.libs.dir}" />
|
<copy file="${i2plib}/router.jar" todir="${jar.libs.dir}" />
|
||||||
|
|
||||||
<!-- core -->
|
<!-- core -->
|
||||||
<!-- remove classes that are stubbed out -->
|
<!-- remove classes that are overridden -->
|
||||||
<!-- lots of unneeded stuff could be deleted here -->
|
<!-- lots of unneeded stuff could be deleted here -->
|
||||||
<jar destfile="${jar.libs.dir}/i2p.jar" >
|
<jar destfile="${jar.libs.dir}/i2p.jar" >
|
||||||
<zipfileset src="${i2plib}/i2p.jar" >
|
<zipfileset src="${i2plib}/i2p.jar" >
|
||||||
<exclude name="net/i2p/util/LogWriter.class" />
|
<exclude name="net/i2p/util/LogWriter.class" />
|
||||||
<exclude name="net/i2p/util/SecureDirectory.class" />
|
|
||||||
<exclude name="net/i2p/util/SecureFile.class" />
|
|
||||||
<exclude name="net/i2p/util/SecureFileOutputStream.class" />
|
|
||||||
</zipfileset>
|
</zipfileset>
|
||||||
</jar>
|
</jar>
|
||||||
|
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
package net.i2p.util;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* setXXX() not available until API level 9 (Platform Version 2.3)
|
|
||||||
* @since 0.8.7
|
|
||||||
*/
|
|
||||||
public class SecureDirectory extends File {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public SecureDirectory(String pathname) {
|
|
||||||
super(pathname);
|
|
||||||
}
|
|
||||||
|
|
||||||
public SecureDirectory(String parent, String child) {
|
|
||||||
super(parent, child);
|
|
||||||
}
|
|
||||||
|
|
||||||
public SecureDirectory(File parent, String child) {
|
|
||||||
super(parent, child);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
package net.i2p.util;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* setXXX() not available until API level 9 (Platform Version 2.3)
|
|
||||||
* @since 0.8.7
|
|
||||||
*/
|
|
||||||
public class SecureFile extends SecureDirectory {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public SecureFile(String pathname) {
|
|
||||||
super(pathname);
|
|
||||||
}
|
|
||||||
|
|
||||||
public SecureFile(String parent, String child) {
|
|
||||||
super(parent, child);
|
|
||||||
}
|
|
||||||
|
|
||||||
public SecureFile(File parent, String child) {
|
|
||||||
super(parent, child);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
package net.i2p.util;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileNotFoundException;
|
|
||||||
import java.io.FileOutputStream;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* setXXX() not available until API level 9 (Platform Version 2.3)
|
|
||||||
* @since 0.8.7
|
|
||||||
*/
|
|
||||||
public class SecureFileOutputStream extends FileOutputStream {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* super()
|
|
||||||
*/
|
|
||||||
public SecureFileOutputStream(String file) throws FileNotFoundException {
|
|
||||||
super(file);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* super()
|
|
||||||
*/
|
|
||||||
public SecureFileOutputStream(String file, boolean append) throws FileNotFoundException {
|
|
||||||
super(file, append);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* super()
|
|
||||||
*/
|
|
||||||
public SecureFileOutputStream(File file) throws FileNotFoundException {
|
|
||||||
super(file);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* super()
|
|
||||||
*/
|
|
||||||
public SecureFileOutputStream(File file, boolean append) throws FileNotFoundException {
|
|
||||||
super(file, append);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @return false */
|
|
||||||
static boolean canSetPerms() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* noop
|
|
||||||
*/
|
|
||||||
public static void setPerms(File f) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user