Restructure API lib folder to support Eclipse

This commit is contained in:
Dominik Schürmann 2014-02-15 17:09:21 +01:00
parent a76169c39e
commit 2b98f2a0d7
24 changed files with 29 additions and 5 deletions

View File

@ -289,7 +289,7 @@ public class OpenPgpProviderActivity extends Activity {
} }
private void selectCryptoProvider() { private void selectCryptoProvider() {
Intent intent = new Intent(IOpenPgpService.class.getName()); Intent intent = new Intent(OpenPgpConstants.SERVICE_INTENT);
final ArrayList<OpenPgpProviderElement> providerList = new ArrayList<OpenPgpProviderElement>(); final ArrayList<OpenPgpProviderElement> providerList = new ArrayList<OpenPgpProviderElement>();

View File

@ -15,6 +15,19 @@ android {
compileSdkVersion 19 compileSdkVersion 19
buildToolsVersion '19.0.1' buildToolsVersion '19.0.1'
// NOTE: We are using the old folder structure to also support Eclipse
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
// Do not abort build if lint finds errors // Do not abort build if lint finds errors
lintOptions { lintOptions {
abortOnError false abortOnError false

View File

@ -182,8 +182,7 @@ public class RemoteServiceActivity extends ActionBarActivity {
.getStringArrayListExtra(EXTRA_DUBLICATE_USER_IDS); .getStringArrayListExtra(EXTRA_DUBLICATE_USER_IDS);
// TODO: do this with spannable instead of HTML to prevent parsing failures with weird user ids // TODO: do this with spannable instead of HTML to prevent parsing failures with weird user ids
String text = new String(); String text = "<b>" + getString(R.string.api_select_pub_keys_text) + "</b>";
text += "<b>" + getString(R.string.api_select_pub_keys_text) + "</b>";
text += "<br/><br/>"; text += "<br/><br/>";
if (missingUserIds != null && missingUserIds.size() > 0) { if (missingUserIds != null && missingUserIds.size() > 0) {
text += getString(R.string.api_select_pub_keys_missing_text); text += getString(R.string.api_select_pub_keys_missing_text);
@ -258,8 +257,7 @@ public class RemoteServiceActivity extends ActionBarActivity {
} else if (ACTION_ERROR_MESSAGE.equals(action)) { } else if (ACTION_ERROR_MESSAGE.equals(action)) {
String errorMessage = intent.getStringExtra(EXTRA_ERROR_MESSAGE); String errorMessage = intent.getStringExtra(EXTRA_ERROR_MESSAGE);
String text = new String(); String text = "<font color=\"red\">" + errorMessage + "</font>";
text += "<font color=\"red\">" + errorMessage + "</font>";
// Inflate a "Done" custom action bar view // Inflate a "Done" custom action bar view
ActionBarHelper.setDoneView(getSupportActionBar(), R.string.btn_okay, ActionBarHelper.setDoneView(getSupportActionBar(), R.string.btn_okay,

View File

@ -15,6 +15,19 @@ android {
compileSdkVersion 19 compileSdkVersion 19
buildToolsVersion '19.0.1' buildToolsVersion '19.0.1'
// NOTE: We are using the old folder structure to also support Eclipse
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
// Do not abort build if lint finds errors // Do not abort build if lint finds errors
lintOptions { lintOptions {
abortOnError false abortOnError false