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

Updated Manifest Merge functionality to support SDK Tools R21. #146

Merged
merged 1 commit into from
Nov 16, 2012

Conversation

tlbollwitt
Copy link
Contributor

Added support for SDK Tools R21.
I updated the Manifest merging code to check the Tools version in the ANDROID_HOME/tools/source.properties file. Based on the version a factory will return a manifest strategy class that has all the reflection to get the correct classes and will execute the merge.
I also moved the merge classes to a separate package to help keep them organized.

Added support for SDK Tools R21.
mosabua added a commit that referenced this pull request Nov 16, 2012
Updated Manifest Merge functionality to support SDK Tools R21.
@mosabua mosabua merged commit f729dd6 into simpligility:master Nov 16, 2012
{
try
{
toolsVersion = Integer.parseInt( properties.getProperty( SDK_TOOLS_REVISION_PROPERTY ) );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks for older release since it is actually a version String like 20.0.1. I will fix it and push a fix out.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now fixed in master hopefully. Please check out my changes and test them for your use case..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! You da Man.

Tom

Sent from my iPhone

On Nov 16, 2012, at 1:49 PM, Manfred Moser notifications@github.com wrote:

In src/main/java/com/jayway/maven/plugins/android/AndroidSdk.java:

  •    File propFile = new File( sdkPath, "tools/" + SOURCE_PROPERTIES_FILENAME );
    
  •    Properties properties = new Properties();
    
  •    try
    
  •    {
    
  •        properties.load( new FileInputStream( propFile ) );
    
  •    }
    
  •    catch ( IOException e )
    
  •    {
    
  •        throw new InvalidSdkException( "Error reading " + propFile.getAbsoluteFile() );
    
  •    }
    
  •    if ( properties.containsKey( SDK_TOOLS_REVISION_PROPERTY ) )
    
  •    {
    
  •        try
    
  •        {
    
  •            toolsVersion = Integer.parseInt( properties.getProperty( SDK_TOOLS_REVISION_PROPERTY ) );
    

This is now fixed in master hopefully. Please check out my changes and test
them for your use case..


Reply to this email directly or view it on
GitHubhttps://github.com//pull/146/files#r2156065.

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