Skip to content

Commit

Permalink
Buck update - use aar instead of source projects
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Jun 3, 2015
1 parent 8eded91 commit 3e4ad69
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 36 deletions.
52 changes: 16 additions & 36 deletions BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,21 @@ android_prebuilt_aar(
aar = 'extlibs/floatingactionbutton.aar',
)

android_prebuilt_aar(
name = 'persistentedittext',
aar = 'extlibs/persistentedittext.aar',
)

android_prebuilt_aar(
name = 'graphview',
aar = 'extlibs/graphview.aar',
)

android_prebuilt_aar(
name = 'wpcomrest',
aar = 'extlibs/wpcomrest.aar',
)

### WordPressUtils

android_build_config(
Expand Down Expand Up @@ -219,40 +234,6 @@ r_android_library(
]
)

### PersistentEditText

android_resource(
name = 'persistentedittext-res',
package = 'org.wordpress.persistentedittext',
res = 'libs/persistentedittext/PersistentEditText/src/main/res',
)

r_android_library(
name = 'persistentedittext',
srcs = glob(['libs/persistentedittext/PersistentEditText/src/main/java/**/*.java']),
deps = [
':persistentedittext-res',
]
)

### WPComRest

r_android_library(
name = 'wpcomrest',
srcs = glob(['libs/wpcomrest/WordPressComRest/src/main/java/**/*.java']),
deps = [
':all-jars', # volley
]
)

### WPGraphView

r_android_library(
name = 'wpgraphview',
srcs = glob(['libs/graphview/WordPressGraphView/src/main/java/**/*.java']),
)


### WordPressAnalytics

r_android_library(
Expand Down Expand Up @@ -295,7 +276,6 @@ android_resource(
':appcompat-v7',
':wpandroid-utils',
':wpandroid-utils-res',
':persistentedittext-res',
':wpandroid-editor-res',
':drag-sort-listview',
':mediapicker',
Expand Down Expand Up @@ -326,7 +306,7 @@ r_android_library(
':wpandroid-editor',
':wpcomrest',
':wpanalytics',
':wpgraphview',
':graphview',
':build-config',
':drag-sort-listview',
':simperium',
Expand Down
3 changes: 3 additions & 0 deletions tools/fetch_buck_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def get_sdk_dir_from_localproperties():
'undobar': {'url': 'https://repo1.maven.org/maven2/com/cocosw/undobar/1.6/undobar-1.6.aar'},
'volley': {'url': 'https://repo1.maven.org/maven2/com/mcxiaoke/volley/library/1.0.15/library-1.0.15.jar'},
'floatingactionbutton': {'url': 'https://repo1.maven.org/maven2/com/getbase/floatingactionbutton/1.9.0/floatingactionbutton-1.9.0.aar'},
'wpcomrest': {'url': 'https://repo1.maven.org/maven2/com/automattic/rest/1.0.1/rest-1.0.1.aar'},
'persistentedittext': {'url': 'https://repo1.maven.org/maven2/org/wordpress/persistentedittext/1.0.1/persistentedittext-1.0.1.aar'},
'graphview': {'url': 'https://repo1.maven.org/maven2/org/wordpress/graphview/3.3.0/graphview-3.3.0.aar'},
}

TEST_DEPENDENCIES = {
Expand Down

0 comments on commit 3e4ad69

Please sign in to comment.