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

Manifest merger v2 #539

Merged
merged 6 commits into from
Dec 19, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.jayway.maven.plugins.android.common;

import com.android.builder.dependency.ManifestDependency;

import java.io.File;
import java.util.List;

public class MavenManifestDependency implements ManifestDependency
{
private File manifestFile;
private String name;
private List<MavenManifestDependency> manifestDependencies;

public MavenManifestDependency(
File manifestFile, String name, List<MavenManifestDependency> manifestDependencies )
{
this.manifestFile = manifestFile;
this.name = name;
this.manifestDependencies = manifestDependencies;
}

@Override
public String getName()
{
return name;
}

@Override
public List<? extends ManifestDependency> getManifestDependencies()
{
return manifestDependencies;
}

@Override
public File getManifest()
{
return manifestFile;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
* {@link com.jayway.maven.plugins.android.standalonemojos.ManifestUpdateMojo} and used there.
*
* @author Manfred Moser <[email protected]>
* @deprecated Use ManifestMerger {@link com.jayway.maven.plugins.android.configuration.ManifestMerger} in combination
* with {@link com.jayway.maven.plugins.android.standalonemojos.ManifestMergerMojo}
*/
@Deprecated
public class Manifest
{
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
package com.jayway.maven.plugins.android.configuration;

import java.io.File;

/**
* Configuration for the manifest update. This class is only the definition of the parameters that are shadowed in
* {@link com.jayway.maven.plugins.android.standalonemojos.ManifestMergerMojo} and used there.
*
* @author Benoit Billington
*/
public class ManifestMerger
{

/**
* Mirror of {@link com.jayway.maven.plugins.android.standalonemojos.ManifestMergerMojo#manifestVersionName}.
*/
protected String versionName;

/**
* Mirror of {@link com.jayway.maven.plugins.android.standalonemojos.ManifestMergerMojo#manifestVersionCode}.
*/
protected Integer versionCode;

/**
* Mirror of
* {@link com.jayway.maven.plugins.android.standalonemojos.ManifestMergerMojo#manifestUsesSdk}
*/
protected UsesSdk usesSdk;

/**
* Mirror of {@link com.jayway.maven.plugins.android.standalonemojos.ManifestMergerMojo
* #manifestVersionCodeUpdateFromVersion}.
*/
protected Boolean versionCodeUpdateFromVersion;

/**
* Mirror of {@link com.jayway.maven.plugins.android.standalonemojos.ManifestMergerMojo
* #manifestMergeLibraries}.
*/
protected Boolean mergeLibraries;

/**
* Mirror of {@link com.jayway.maven.plugins.android.standalonemojos.ManifestMergerMojo
* #manifestMergeReportFile}.
*/
protected File mergeReportFile;

public String getVersionName()
{
return versionName;
}

public Integer getVersionCode()
{
return versionCode;
}

public UsesSdk getUsesSdk()
{
return usesSdk;
}

public Boolean getVersionCodeUpdateFromVersion()
{
return versionCodeUpdateFromVersion;
}

public Boolean getMergeLibraries()
{
return mergeLibraries;
}

public File getMergeReportFile()
{
return mergeReportFile;
}
}
Loading