Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do instrumentation, push, pull on all devices too.
- Loading branch information
1 parent
2a5b810
commit 33e52c7
Showing
6 changed files
with
202 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/com/jayway/maven/plugins/android/DeviceCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (C) 2011 Jayway AB | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.jayway.maven.plugins.android; | ||
|
||
import com.android.ddmlib.IDevice; | ||
import org.apache.maven.plugin.MojoExecutionException; | ||
import org.apache.maven.plugin.MojoFailureException; | ||
|
||
/** | ||
* Used for declare an action to perform on one or several {@link IDevice}s. | ||
* | ||
* @author hugo.josefson@jayway.com | ||
*/ | ||
public interface DeviceCallback { | ||
/** | ||
* What to do with an {@link IDevice}. | ||
* | ||
* @param device the device | ||
* @throws MojoExecutionException in case there is a problem, you may throw this | ||
* @throws org.apache.maven.plugin.MojoFailureException in case there is a problem, you may throw this | ||
*/ | ||
void doWithDevice(IDevice device) throws MojoExecutionException, MojoFailureException; | ||
} |
Oops, something went wrong.
33e52c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh man.. I started implementing the same independently.. haha. I will check this out and update the api/configuration log. We have to get a release out. All the new features ROCK!
33e52c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you are not using the ddmlib for these things yet.. so my stuff will still apply. However I think this is good enough for now and works. We should release!
33e52c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, we should migrate all code to use libraries instead of executing external CLI processes throughout.