Skip to content

Commit

Permalink
split methods to be usable on MediaFile instead of WPImageSpan
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Feb 11, 2015
1 parent 8978cb1 commit d847975
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions WordPressEditor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ dependencies {
debugCompile project(path:':libs:utils:WordPressUtils', configuration: 'debug')
}

configurations.all {
// Exclude packaged wordpress sub projects, force the use of the source project
// (eg. use :libs:utils:WordPressUtils instead of 'org.wordpress:utils')
exclude group: 'org.wordpress', module: 'utils'
}

signing {
required {
project.properties.containsKey("signing.keyId") && project.properties.containsKey("signing.secretKeyRingFile")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import org.wordpress.android.util.AppLog;
import org.wordpress.android.util.AppLog.T;
import org.wordpress.android.util.helpers.MediaFile;

import java.io.BufferedReader;
import java.io.IOException;
Expand Down Expand Up @@ -143,4 +144,9 @@ public CharSequence getContent() {
// TODO
return null;
}

@Override
public void appendMediaFile(MediaFile mediaFile) {
// TODO
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
import android.app.Activity;
import android.app.Fragment;

import org.wordpress.android.util.helpers.MediaFile;

public abstract class EditorFragmentAbstract extends Fragment {
public abstract void setTitle(CharSequence text);
public abstract void setContent(CharSequence text);
public abstract CharSequence getTitle();
public abstract CharSequence getContent();
public abstract void appendMediaFile(MediaFile mediaFile);

protected EditorFragmentListener mEditorFragmentListener;

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include ':WordPressEditor'
include ':example'
include ':libs:WordPressUtils'
include ':libs:utils:WordPressUtils'

0 comments on commit d847975

Please sign in to comment.