-
-
Save jerson/58092e0449fec2b1dce5 to your computer and use it in GitHub Desktop.
zalora android buck build file
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
common_deps_framework = [':framework-res',':aquery',':google-play',':volley',':adjust',':ad4push',':shouldit',':view-indicator',':hockeyapp',':holo'] | |
common_deps_view= [':view-res',':framework',':aquery',':google-play',':volley',':adjust',':ad4push',':shouldit',':view-indicator',':hockeyapp',':holo'] | |
common_libs = [':framework-lib1',':framework-lib2',':framework-lib3',':framework-lib4',':framework-lib5',':ad4push-lib1',':holo-lib1',':holo-lib2',':view-lib1',':view-lib2',':google-play-lib1'] | |
android_binary( | |
name = 'zalora', | |
manifest = 'com.zalora.android/AndroidManifest.xml', | |
target = 'android-18', | |
package_type = 'release', | |
keystore = ':debug_keystore', | |
proguard_config = 'com.zalora.android/proguard-project.txt', | |
deps = [':view'], | |
) | |
keystore( | |
name = 'debug_keystore', | |
store = 'debug.keystore', | |
properties = 'debug.keystore.properties', | |
) | |
android_library( | |
name = 'view', | |
srcs = glob(['pt.rocket.view/src/**/*.java']), | |
deps = common_deps_view, | |
exported_deps = common_libs | |
) | |
android_resource( | |
name = 'view-res', | |
res = 'pt.rocket.view/res', | |
package = 'pt.rocket.view', | |
deps=[':shouldit-res',':apk-res',':holo-res',':framework-res'] | |
) | |
prebuilt_jar( | |
name='view-lib1', | |
binary_jar = 'pt.rocket.view/libs/gesture-v2.0.0.jar' | |
) | |
prebuilt_jar( | |
name='view-lib2', | |
binary_jar = 'pt.rocket.view/libs/sdk-v1.0.0.jar' | |
) | |
android_resource( | |
name = 'apk-res', | |
res = 'com.zalora.android/res', | |
package = 'com.zalora.android', | |
deps = [':shouldit-res'] | |
) | |
android_library( | |
name = 'framework', | |
srcs = glob(['pt.rocket.framework/src/**/*.java']), | |
deps = common_deps_framework, | |
exported_deps = common_libs | |
) | |
prebuilt_jar( | |
name='framework-lib1', | |
binary_jar = 'pt.rocket.framework/libs/adxtag3.1.4.jar' | |
) | |
prebuilt_jar( | |
name='framework-lib2', | |
binary_jar = 'pt.rocket.framework/libs/bugsense-3.6.jar' | |
) | |
prebuilt_jar( | |
name='framework-lib3', | |
binary_jar = 'pt.rocket.framework/libs/libGoogleAnalyticsServices.jar' | |
) | |
prebuilt_jar( | |
name='framework-lib4', | |
binary_jar = 'pt.rocket.framework/libs/newrelic.android.jar' | |
) | |
prebuilt_jar( | |
name='framework-lib5', | |
binary_jar = 'pt.rocket.framework/libs/pollexor-2.0.2.jar' | |
) | |
android_resource( | |
name = 'framework-res', | |
res = 'pt.rocket.framework/res', | |
package = 'pt.rocket.framework', | |
) | |
android_library( | |
name = 'holo', | |
srcs = glob(['org.holoeverywhere/src/**/*.java']), | |
deps = [':holo-res'], | |
exported_deps = [':holo-lib1',':holo-lib2'] | |
) | |
prebuilt_jar( | |
name='holo-lib1', | |
binary_jar = 'org.holoeverywhere/libs/nineoldandroids-2.4.0.jar' | |
) | |
prebuilt_jar( | |
name='holo-lib2', | |
binary_jar = 'org.holoeverywhere/libs/support-v4-18.0.1.jar' | |
) | |
android_resource( | |
name = 'holo-res', | |
res = 'org.holoeverywhere/res', | |
package = 'org.holoeverywhere', | |
) | |
android_library( | |
name = 'google-play', | |
srcs = glob(['google-play-services_lib/src/**/*.java']), | |
deps = [':google-play-res'], | |
exported_deps= [':google-play-lib1'], | |
) | |
prebuilt_jar( | |
name='google-play-lib1', | |
binary_jar = 'google-play-services_lib/libs/google-play-services.jar' | |
) | |
android_resource( | |
name = 'google-play-res', | |
res = 'google-play-services_lib/res', | |
package = 'com.google.android.gms', | |
) | |
android_library( | |
name = 'volley', | |
srcs = glob(['Volley/src/**/*.java']), | |
) | |
android_library( | |
name = 'adjust', | |
srcs = glob(['Adjust/src/**/*.java']), | |
) | |
android_library( | |
name = 'ad4push', | |
srcs = glob(['A4SSDK/src/**/*.java']), | |
deps = [':ad4push-res',':ad4push-lib1'], | |
) | |
android_resource( | |
name = 'ad4push-res', | |
res = 'A4SSDK/res', | |
package = 'com.ad4screen.sdk', | |
) | |
prebuilt_jar( | |
name='ad4push-lib1', | |
binary_jar = 'A4SSDK/libs/A4SSDK.jar' | |
) | |
android_library( | |
name = 'shouldit', | |
srcs = glob(['com.shouldit.proxy/src/**/*.java']), | |
deps = [':shouldit-res'], | |
) | |
android_resource( | |
name = 'shouldit-res', | |
res = 'com.shouldit.proxy/res', | |
package = 'com.shouldit.proxy.lib', | |
) | |
android_library( | |
name = 'aquery', | |
srcs = glob(['AndroidQuery_0_26_7/src/**/*.java']), | |
) | |
android_library( | |
name = 'hockeyapp', | |
srcs = glob(['net.hockeyapp.android/src/**/*.java']), | |
deps = [':holo-lib2'], | |
) | |
android_library( | |
name = 'view-indicator', | |
srcs = glob(['com.viewpagerindicator/src/**/*.java']), | |
deps = [':view-indicator-res',':holo',':aquery'], | |
) | |
android_resource( | |
name = 'view-indicator-res', | |
res = 'com.viewpagerindicator/res', | |
package = 'com.viewpagerindicator', | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment