Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Upgrade to Android 4.x jars?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Portuesi  
View profile  
 More options Jun 6 2012, 1:09 pm
From: Michael Portuesi <mportues...@gmail.com>
Date: Wed, 6 Jun 2012 10:09:40 -0700 (PDT)
Local: Wed, Jun 6 2012 1:09 pm
Subject: Upgrade to Android 4.x jars?

Hi there,

I just returned from a break, and discovered that one of our team wrote a
shadow for AsyncTask#executeOnExecutor.

It's an API level 11 call, and as such the current Robolectric, built
against API 10 jars, fails the RobolectricWiringTest:

testAllImplementationMethodsHaveCorrectSignature(com.xtremelabs.robolectric .bytecode.RobolectricWiringTest)
 Time elapsed: 0.416 sec  <<< FAILURE!
java.lang.AssertionError: @Implementation method mismatch: public final
android.os.AsyncTask<Params, Progress, Result>
com.xtremelabs.robolectric.shadows.ShadowAsyncTask.executeOnExecutor(java.u til.concurrent.Executor,Params[])
doesn't match a real method expected:<0> but was:<1>

I've fixed the build in the main repo, but we're using this in our app, and
so we want Robolectric to support it.

1) Is there any reason Robolectric is still using the API level 10 (Android
2.3.3) jars, other than a lack of necessity to upgrade before now?
2) Can we update to a newer set of jars?  Will there be anticipated
problems, as with the Android support jar?

If no one has issues, I'd like to take a stab at the work.

Thanks,
Michael Portuesi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tyler Schultz  
View profile  
 More options Jun 6 2012, 10:39 pm
From: Tyler Schultz <tylerschu...@gmail.com>
Date: Wed, 6 Jun 2012 19:39:24 -0700
Local: Wed, Jun 6 2012 10:39 pm
Subject: Re: [robolectric] Upgrade to Android 4.x jars?

Hi Michael,

I say go for it. I don't understand the issues that may be caused by
the compatibility/support jars... It would be interesting to understand
what the problems might be.

--Tyler

On Wed, Jun 6, 2012 at 10:09 AM, Michael Portuesi <mportues...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Perry  
View profile  
 More options Jul 20 2012, 1:53 pm
From: Christopher Perry <mr.christopher.pe...@gmail.com>
Date: Fri, 20 Jul 2012 10:53:33 -0700 (PDT)
Local: Fri, Jul 20 2012 1:53 pm
Subject: Re: Upgrade to Android 4.x jars?

Hey Michael, I was about to use AsyncTask#executeOnExecutor and noticed
that lack of support. How is your implementation coming along? I'd like to
grab that code from you if you're done.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Portuesi  
View profile  
 More options Jul 20 2012, 4:35 pm
From: Michael Portuesi <mportues...@gmail.com>
Date: Fri, 20 Jul 2012 13:35:56 -0700
Local: Fri, Jul 20 2012 4:35 pm
Subject: Re: [robolectric] Re: Upgrade to Android 4.x jars?

Chris,

It turned out that whatever test we were writing didn't explicitly need an
implmentation of AsyncTask#**executeOnExecutor.  So, I haven't done any
work on building Robolectric with Android 4.x jars.  I'm really sorry to
disappoint.

Regards,
m

On Fri, Jul 20, 2012 at 10:53 AM, Christopher Perry <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Portuesi  
View profile   Translate to Translated (View Original)
 More options Jul 25 2012, 1:32 pm
From: Michael Portuesi <mportues...@gmail.com>
Date: Wed, 25 Jul 2012 10:32:43 -0700
Local: Wed, Jul 25 2012 1:32 pm
Subject: Re: [robolectric] Re: Upgrade to Android 4.x jars?

Chris,

With the arrival of Jelly Bean, we've run into a situation where we need to
get Robolectric running on 4.1.  In particular, Android's WebSettings has
become an abstract class in Android 4.1, and tests which use WebView fail
because Robolectric can no longer instantiate the abstract class via
reflection.

So, I've done the work to get Robolectric building and passing tests
against Android 4.0.1 in my local workarea (at least with the Maven build).
 I'll likely be pushing those changes to master soon (including fixes for
ant I hope), so I wanted to give a heads-up to those who might have been
anticipating or fearing such a development.

4.0.1 still doesn't get me personally where I want to be - I need to build
against 4.1 - but the maven repo at maven.org does not have Android 4.1
jars available.  Does anyone know anything about that process and how new
jars get added over there?  I can do a local config and repository setup,
but it's kind of a pain to do, especially for everyone across a development
team.

Thanks,
Michael Portuesi

On Fri, Jul 20, 2012 at 1:35 PM, Michael Portuesi <mportues...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Portuesi  
View profile  
 More options Jul 30 2012, 1:03 pm
From: Michael Portuesi <mportues...@gmail.com>
Date: Mon, 30 Jul 2012 10:03:31 -0700 (PDT)
Local: Mon, Jul 30 2012 1:03 pm
Subject: Re: [robolectric] Re: Upgrade to Android 4.x jars?

Just a heads-up -

I've just pushed to pivotal-robolectric the changes to build Robolectric
against the Android 4.0 jars.  Both the ant build.xml file and the maven
POM are updated.

I would have targeted 4.1, but the public maven repositories don't yet have
a 4.1 android.jar available, and I didn't want the build to get out of sync
between the two build systems.  Once the maven-android maintainers burp out
a 4.1 jar, I'll look into getting Robolectric building there.

I didn't update the Travis configuration in the build.xml, so the Travis CI
build is currently busted (it was already failing prior to this change).
 If there's anything I can do to help with that, please let me know.

Regards,
Michael Portuesi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Perry  
View profile  
 More options Oct 1 2012, 5:49 pm
From: Christopher Perry <mr.christopher.pe...@gmail.com>
Date: Mon, 1 Oct 2012 14:49:17 -0700 (PDT)
Local: Mon, Oct 1 2012 5:49 pm
Subject: Re: [robolectric] Re: Upgrade to Android 4.x jars?

I just now tried to build on 4.1 and noticed this issue with WebSettings.
Arg! Thanks for the info.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »