Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make k9mail build in aosp tree #5

Merged
merged 2 commits into from May 6, 2011
Merged

make k9mail build in aosp tree #5

merged 2 commits into from May 6, 2011

Conversation

ghost
Copy link

@ghost ghost commented Mar 10, 2011

this enables me building k9 directly in my custom rom aosp tree.. few string localizations and a few empty methods.

@obra
Copy link
Contributor

obra commented Mar 10, 2011

As a note, we can't even consider a pull request that changes K-9's icon to the android stock icon

@ghost
Copy link
Author

ghost commented Mar 10, 2011

I didn't intent pull-requesting this commit, only the two others. Sorry, I'm new to github :)

removing the line would maybe be also an option, aosp complained that "" needs to be localized.

@cketti
Copy link
Member

cketti commented May 1, 2011

K-9 Mail doesn't build outside the AOSP tree with the "missing methods" patch. Any idea on how to make this work?

@ghost
Copy link
Author

ghost commented May 1, 2011

Thank you for looking into this and trying to merge the request :)

I'm afraid I never build k9 outside the AOSP with the patches enabled. Didn't think that there would be any problems, since it's basically some methods that just return false when called...
I just added a return false function for everything the compiler was complaining about.

What are the error messages?

@ghost ghost closed this May 1, 2011
@cketti
Copy link
Member

cketti commented May 1, 2011

It's mostly the Override annotations (which are not that much of a problem). But "mCursor.abortUpdates();" in MonitoredCursor.abortUpdates() fails to compile because CrossProcessCursor.abortUpdates() is undefined in the SDK.

@ghost
Copy link
Author

ghost commented May 1, 2011

I only implemented those methods because aosp complained not having them, they are not supposed to alter k9mail in any way. I took mCursor.abortUpdates() because in the original methods of k9 i found similar implementations of other methods (just forwarding them to mCursor.name() ), so i did the same.

Does it complain if you just return instead of doing anything? That may be an option.
If this solves the problem, I can verify if it still builds in aosp, if you don't have an aosp tree to test it with.

@ghost ghost reopened this May 2, 2011
@ghost
Copy link
Author

ghost commented May 5, 2011

have a look at the last 3 commits in the 3.8-MAINT branch:
https://github.com/kechagia/k-9/commits/3.8-MAINT

it compiles (and works) now in AOSP tree, as well as using "ant debug".

I didn't open a new pull request, because I dunno how to only select the last 3 commits, whithout the stock icon patch :)

@obra
Copy link
Contributor

obra commented May 5, 2011

On Thu, May 05, 2011 at 06:39:30AM -0700, kechagia wrote:

have a look at the last 3 commits in the 3.8-MAINT branch:
https://github.com/kechagia/k-9/commits/3.8-MAINT

it compiles (and works) now in AOSP tree, as well as using "ant debug".

I didn't open a new pull request, because I dunno how to only select the last 3 commits, whithout the stock icon patch :)

You need to create a new branch for your pull request. Also, please don't supply commits on maintenance branches, instead branch from master.

Thanks!

@ghost
Copy link
Author

ghost commented May 5, 2011

ok thank you. I updated this pull request, using the master branch. i only tested the patch with android-10 sdk, aosp 2.3.4 and 3.8-MAINT, though.

cketti added a commit that referenced this pull request May 6, 2011
Make K-9 Mail build in AOSP source tree
@cketti cketti merged commit 13db62f into thunderbird:master May 6, 2011
@obra obra mentioned this pull request Mar 23, 2012
zjw added a commit to zjw/k-9 that referenced this pull request Mar 3, 2014
Applicable for strings not intended for user consumption.

A %d string format code can generate eastern-arabic numerals
for users with an arabic locale.

V/k9      (20763): conn1103774136>>> 5 UID SEARCH ٦٤٦:٦٧٠ NOT DELETED
V/k9      (20763): conn1103774136<<<thunderbird#5# [BAD, Invalid Search criteria]
E/k9      (20763): synchronizeMailbox
E/k9      (20763): com.fsck.k9.mail.store.ImapStore$ImapException: Command: UID SEARCH ٦٤٦:٦٧٠ NOT DELETED; response: thunderbird#5# [BAD, Invalid Search criteria]
cketti added a commit that referenced this pull request Nov 12, 2014
added some testcases for MimeMessage parsing + some simple refactorings (2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants