Permalink
Browse files

Restructure project follow gradle project convention

  • Loading branch information...
1 parent cebaf6e commit f42f93d960b43b38288d06ea6ac3e5fae260906e @eyedol eyedol committed Jul 22, 2013
Showing with 322 additions and 675 deletions.
  1. +0 −1 .gitignore
  2. +14 −16 abslib/build.gradle
  3. +1 −1 abslib/project.properties
  4. +9 −0 build.gradle
  5. BIN gradle/wrapper/gradle-wrapper.jar
  6. +6 −0 gradle/wrapper/gradle-wrapper.properties
  7. +164 −0 gradlew
  8. +90 −0 gradlew.bat
  9. +2 −1 settings.gradle
  10. +0 −6 smssync/ant.properties
  11. +36 −28 smssync/build.gradle
  12. +0 −109 smssync/build.xml
  13. +0 −146 smssync/lint.xml
  14. +0 −20 smssync/proguard-project.txt
  15. +0 −40 smssync/proguard.cfg
  16. +0 −14 smssync/project.properties
  17. 0 smssync/{tests/src → src/instrumentTest/java}/org/addhen/smssync/ProcessSmsTest.java
  18. 0 smssync/{tests/src → src/instrumentTest/java}/org/addhen/smssync/SyncMessagesTestSuite.java
  19. 0 smssync/{tests/src → src/instrumentTest/java}/org/addhen/smssync/models/SyncUrlModelTest.java
  20. 0 ...rc → src/instrumentTest/java}/org/addhen/smssync/services/SyncPendingMessagesServiceTestCase.java
  21. 0 smssync/{tests/src → src/instrumentTest/java}/org/addhen/smssync/test/BaseTestCase.java
  22. 0 smssync/{tests/src → src/instrumentTest/java}/org/addhen/smssync/util/UtilTestCase.java
  23. 0 smssync/{ → src/main}/AndroidManifest.xml
  24. 0 smssync/src/{ → main/java}/org/addhen/smssync/MainApplication.java
  25. 0 smssync/src/{ → main/java}/org/addhen/smssync/Prefs.java
  26. 0 smssync/src/{ → main/java}/org/addhen/smssync/ProcessSms.java
  27. 0 smssync/src/{ → main/java}/org/addhen/smssync/Settings.java
  28. 0 smssync/src/{ → main/java}/org/addhen/smssync/SyncBus.java
  29. 0 smssync/src/{ → main/java}/org/addhen/smssync/SyncDate.java
  30. 0 smssync/src/{ → main/java}/org/addhen/smssync/activities/BaseActivity.java
  31. 0 smssync/src/{ → main/java}/org/addhen/smssync/activities/BaseListActivity.java
  32. 0 smssync/src/{ → main/java}/org/addhen/smssync/activities/MainActivity.java
  33. 0 smssync/src/{ → main/java}/org/addhen/smssync/activities/MessagesTabActivity.java
  34. 0 smssync/src/{ → main/java}/org/addhen/smssync/adapters/BaseListAdapter.java
  35. 0 smssync/src/{ → main/java}/org/addhen/smssync/adapters/NavDrawerAdapter.java
  36. 0 smssync/src/{ → main/java}/org/addhen/smssync/adapters/PendingMessagesAdapter.java
  37. 0 smssync/src/{ → main/java}/org/addhen/smssync/adapters/SentMessagesAdapter.java
  38. 0 smssync/src/{ → main/java}/org/addhen/smssync/adapters/SyncUrlAdapter.java
  39. 0 smssync/src/{ → main/java}/org/addhen/smssync/adapters/TabAdapter.java
  40. 0 smssync/src/{ → main/java}/org/addhen/smssync/database/Database.java
  41. 0 smssync/src/{ → main/java}/org/addhen/smssync/database/DbContentProvider.java
  42. 0 smssync/src/{ → main/java}/org/addhen/smssync/database/IMessagesContentProvider.java
  43. 0 smssync/src/{ → main/java}/org/addhen/smssync/database/IMessagesSchema.java
  44. 0 smssync/src/{ → main/java}/org/addhen/smssync/database/ISyncUrlContentProvider.java
  45. 0 smssync/src/{ → main/java}/org/addhen/smssync/database/ISyncUrlSchema.java
  46. 0 smssync/src/{ → main/java}/org/addhen/smssync/database/Messages.java
  47. 0 smssync/src/{ → main/java}/org/addhen/smssync/database/MessagesContentProvider.java
  48. 0 smssync/src/{ → main/java}/org/addhen/smssync/database/SyncUrlContentProvider.java
  49. 0 smssync/src/{ → main/java}/org/addhen/smssync/exceptions/ConnectivityException.java
  50. 0 smssync/src/{ → main/java}/org/addhen/smssync/exceptions/I8nException.java
  51. 0 smssync/src/{ → main/java}/org/addhen/smssync/fragments/BaseFragment.java
  52. 0 smssync/src/{ → main/java}/org/addhen/smssync/fragments/BaseListFragment.java
  53. 0 smssync/src/{ → main/java}/org/addhen/smssync/fragments/PendingMessages.java
  54. 0 smssync/src/{ → main/java}/org/addhen/smssync/fragments/SentMessages.java
  55. 0 smssync/src/{ → main/java}/org/addhen/smssync/fragments/SyncUrl.java
  56. 0 smssync/src/{ → main/java}/org/addhen/smssync/listeners/BaseActionModeListener.java
  57. 0 smssync/src/{ → main/java}/org/addhen/smssync/listeners/OnFragmentListViewRefreshListener.java
  58. 0 smssync/src/{ → main/java}/org/addhen/smssync/listeners/PendingMessagesActionModeListener.java
  59. 0 smssync/src/{ → main/java}/org/addhen/smssync/listeners/SentMessagesActionModeListener.java
  60. 0 smssync/src/{ → main/java}/org/addhen/smssync/listeners/SyncUrlActionModeListener.java
  61. 0 smssync/src/{ → main/java}/org/addhen/smssync/models/MessagesModel.java
  62. 0 smssync/src/{ → main/java}/org/addhen/smssync/models/Model.java
  63. 0 smssync/src/{ → main/java}/org/addhen/smssync/models/NavDrawerItem.java
  64. 0 smssync/src/{ → main/java}/org/addhen/smssync/models/SentMessagesModel.java
  65. 0 smssync/src/{ → main/java}/org/addhen/smssync/models/SyncUrlModel.java
  66. 0 smssync/src/{ → main/java}/org/addhen/smssync/navdrawer/BaseNavDrawerItem.java
  67. 0 smssync/src/{ → main/java}/org/addhen/smssync/navdrawer/PendingMessagesNavDrawerItem.java
  68. 0 smssync/src/{ → main/java}/org/addhen/smssync/navdrawer/SentMessagesNavDrawerItem.java
  69. 0 smssync/src/{ → main/java}/org/addhen/smssync/navdrawer/SyncUrlNavDrawerItem.java
  70. 0 smssync/src/{ → main/java}/org/addhen/smssync/net/ClientHttpRequest.java
  71. 0 smssync/src/{ → main/java}/org/addhen/smssync/net/EasySSLSocketFactory.java
  72. 0 smssync/src/{ → main/java}/org/addhen/smssync/net/EasyX509TrustManager.java
  73. 0 smssync/src/{ → main/java}/org/addhen/smssync/net/MainHttpClient.java
  74. 0 smssync/src/{ → main/java}/org/addhen/smssync/net/MessageSyncHttpClient.java
  75. 0 smssync/src/{ → main/java}/org/addhen/smssync/net/TrustManagerFactory.java
  76. 0 smssync/src/{ → main/java}/org/addhen/smssync/net/TrustedSocketFactory.java
  77. 0 smssync/src/{ → main/java}/org/addhen/smssync/receivers/AutoSyncScheduledReceiver.java
  78. 0 smssync/src/{ → main/java}/org/addhen/smssync/receivers/BootReceiver.java
  79. 0 smssync/src/{ → main/java}/org/addhen/smssync/receivers/CheckTaskScheduledReceiver.java
  80. 0 smssync/src/{ → main/java}/org/addhen/smssync/receivers/ConnectivityChangedReceiver.java
  81. 0 smssync/src/{ → main/java}/org/addhen/smssync/receivers/PowerStateChangedReceiver.java
  82. 0 smssync/src/{ → main/java}/org/addhen/smssync/receivers/SmsReceiver.java
  83. 0 smssync/src/{ → main/java}/org/addhen/smssync/services/AutoSyncScheduledService.java
  84. 0 smssync/src/{ → main/java}/org/addhen/smssync/services/BaseService.java
  85. 0 smssync/src/{ → main/java}/org/addhen/smssync/services/CheckTaskScheduledService.java
  86. 0 smssync/src/{ → main/java}/org/addhen/smssync/services/CheckTaskService.java
  87. 0 smssync/src/{ → main/java}/org/addhen/smssync/services/ScheduleServices.java
  88. 0 smssync/src/{ → main/java}/org/addhen/smssync/services/SmsReceiverService.java
  89. 0 smssync/src/{ → main/java}/org/addhen/smssync/services/SmsSyncServices.java
  90. 0 smssync/src/{ → main/java}/org/addhen/smssync/services/SyncPendingMessagesService.java
  91. 0 smssync/src/{ → main/java}/org/addhen/smssync/tasks/ProgressCallback.java
  92. 0 smssync/src/{ → main/java}/org/addhen/smssync/tasks/ProgressQueue.java
  93. 0 smssync/src/{ → main/java}/org/addhen/smssync/tasks/ProgressTask.java
  94. 0 smssync/src/{ → main/java}/org/addhen/smssync/tasks/SyncConfig.java
  95. 0 smssync/src/{ → main/java}/org/addhen/smssync/tasks/SyncPendingMessagesTask.java
  96. 0 smssync/src/{ → main/java}/org/addhen/smssync/tasks/SyncType.java
  97. 0 smssync/src/{ → main/java}/org/addhen/smssync/tasks/Task.java
  98. 0 smssync/src/{ → main/java}/org/addhen/smssync/tasks/TaskCanceled.java
  99. 0 smssync/src/{ → main/java}/org/addhen/smssync/tasks/state/State.java
  100. 0 smssync/src/{ → main/java}/org/addhen/smssync/tasks/state/SyncPendingMessagesState.java
  101. 0 smssync/src/{ → main/java}/org/addhen/smssync/tasks/state/SyncState.java
  102. 0 smssync/src/{ → main/java}/org/addhen/smssync/util/ApiUtil.java
  103. 0 smssync/src/{ → main/java}/org/addhen/smssync/util/Logger.java
  104. 0 smssync/src/{ → main/java}/org/addhen/smssync/util/MessageSyncUtil.java
  105. 0 smssync/src/{ → main/java}/org/addhen/smssync/util/Objects.java
  106. 0 smssync/src/{ → main/java}/org/addhen/smssync/util/RunServicesUtil.java
  107. 0 smssync/src/{ → main/java}/org/addhen/smssync/util/SentMessagesUtil.java
  108. 0 smssync/src/{ → main/java}/org/addhen/smssync/util/ServicesConstants.java
  109. 0 smssync/src/{ → main/java}/org/addhen/smssync/util/SharedPreferencesUtil.java
  110. 0 smssync/src/{ → main/java}/org/addhen/smssync/util/Util.java
  111. 0 smssync/src/{ → main/java}/org/addhen/smssync/views/AddSyncUrl.java
  112. 0 smssync/src/{ → main/java}/org/addhen/smssync/views/MainView.java
  113. 0 smssync/src/{ → main/java}/org/addhen/smssync/views/PendingMessagesView.java
  114. 0 smssync/src/{ → main/java}/org/addhen/smssync/views/SentMessagesView.java
  115. 0 smssync/src/{ → main/java}/org/addhen/smssync/views/SyncUrlView.java
  116. 0 smssync/src/{ → main/java}/org/addhen/smssync/views/View.java
  117. 0 smssync/src/{ → main/java}/org/addhen/smssync/views/Widget.java
  118. 0 smssync/src/{ → main/java}/org/addhen/smssync/widget/SmsSyncAppWidgetProvider.java
  119. BIN smssync/{ → src/main}/libs/otto-1.3.3.jar
  120. 0 smssync/{ → src/main}/res/color/appwidget_text.xml
  121. BIN smssync/{ → src/main}/res/drawable-hdpi/add.png
  122. BIN smssync/{ → src/main}/res/drawable-hdpi/delete.png
  123. BIN smssync/{ → src/main}/res/drawable-hdpi/drawer_shadow.9.png
  124. BIN smssync/{ → src/main}/res/drawable-hdpi/edit.png
  125. BIN smssync/{ → src/main}/res/drawable-hdpi/ic_drawer.png
  126. BIN smssync/{ → src/main}/res/drawable-hdpi/import_sms.png
  127. BIN smssync/{ → src/main}/res/drawable-hdpi/noti_smssync.png
  128. BIN smssync/{ → src/main}/res/drawable-hdpi/pending.png
  129. BIN smssync/{ → src/main}/res/drawable-hdpi/refresh.png
  130. BIN smssync/{ → src/main}/res/drawable-hdpi/sent.png
  131. BIN smssync/{ → src/main}/res/drawable-hdpi/settings.png
  132. BIN smssync/{ → src/main}/res/drawable-hdpi/smssync.png
  133. BIN smssync/{ → src/main}/res/drawable-hdpi/sync_url.png
  134. BIN smssync/{ → src/main}/res/drawable-ldpi/icon.png
  135. BIN smssync/{ → src/main}/res/drawable-mdpi/add.png
  136. BIN smssync/{ → src/main}/res/drawable-mdpi/delete.png
  137. BIN smssync/{ → src/main}/res/drawable-mdpi/drawer_shadow.9.png
  138. BIN smssync/{ → src/main}/res/drawable-mdpi/edit.png
  139. BIN smssync/{ → src/main}/res/drawable-mdpi/ic_drawer.png
  140. BIN smssync/{ → src/main}/res/drawable-mdpi/icon.png
  141. BIN smssync/{ → src/main}/res/drawable-mdpi/import_sms.png
  142. BIN smssync/{ → src/main}/res/drawable-mdpi/pending.png
  143. BIN smssync/{ → src/main}/res/drawable-mdpi/refresh.png
  144. BIN smssync/{ → src/main}/res/drawable-mdpi/sent.png
  145. BIN smssync/{ → src/main}/res/drawable-mdpi/settings.png
  146. BIN smssync/{ → src/main}/res/drawable-mdpi/sync_url.png
  147. BIN smssync/{ → src/main}/res/drawable-xhdpi/add.png
  148. BIN smssync/{ → src/main}/res/drawable-xhdpi/delete.png
  149. BIN smssync/{ → src/main}/res/drawable-xhdpi/drawer_shadow.9.png
  150. BIN smssync/{ → src/main}/res/drawable-xhdpi/edit.png
  151. BIN smssync/{ → src/main}/res/drawable-xhdpi/ic_drawer.png
  152. BIN smssync/{ → src/main}/res/drawable-xhdpi/icon.png
  153. BIN smssync/{ → src/main}/res/drawable-xhdpi/import_sms.png
  154. BIN smssync/{ → src/main}/res/drawable-xhdpi/pending.png
  155. BIN smssync/{ → src/main}/res/drawable-xhdpi/refresh.png
  156. BIN smssync/{ → src/main}/res/drawable-xhdpi/sent.png
  157. BIN smssync/{ → src/main}/res/drawable-xhdpi/settings.png
  158. BIN smssync/{ → src/main}/res/drawable-xhdpi/sync_url.png
  159. 0 smssync/{ → src/main}/res/drawable/appwidget_bg.xml
  160. BIN smssync/{ → src/main}/res/drawable/appwidget_portrait_bg.png
  161. BIN smssync/{ → src/main}/res/drawable/appwidget_portrait_text_push.png
  162. 0 smssync/{ → src/main}/res/drawable/appwidget_portrait_textbg.xml
  163. BIN smssync/{ → src/main}/res/drawable/arrow_left.png
  164. BIN smssync/{ → src/main}/res/drawable/arrow_right.png
  165. BIN smssync/{ → src/main}/res/drawable/ic_done.png
  166. 0 smssync/{ → src/main}/res/drawable/nav_drawer_selected.xml
  167. 0 smssync/{ → src/main}/res/drawable/nav_drawer_selector.xml
  168. BIN smssync/{ → src/main}/res/drawable/refresh.png
  169. 0 smssync/{ → src/main}/res/drawable/tab_bg_selected.xml
  170. 0 smssync/{ → src/main}/res/drawable/tab_bg_selector.xml
  171. 0 smssync/{ → src/main}/res/drawable/tab_bg_unselected.xml
  172. BIN smssync/{ → src/main}/res/drawable/tab_divider.9.png
  173. 0 smssync/{ → src/main}/res/drawable/tab_text_selector.xml
  174. 0 smssync/{ → src/main}/res/drawable/title_bar.xml
  175. BIN smssync/{ → src/main}/res/drawable/widget_bg_default.9.png
  176. BIN smssync/{ → src/main}/res/drawable/widget_bg_portrait.png
  177. BIN smssync/{ → src/main}/res/drawable/widget_bg_selected.9.png
  178. BIN smssync/{ → src/main}/res/drawable/widget_bg_small.9.png
  179. 0 smssync/{ → src/main}/res/layout/add_sync_url.xml
  180. 0 smssync/{ → src/main}/res/layout/appwidget.xml
  181. 0 smssync/{ → src/main}/res/layout/indeterminate_progress_action.xml
  182. 0 smssync/{ → src/main}/res/layout/list_messages.xml
  183. 0 smssync/{ → src/main}/res/layout/list_messages_item.xml
  184. 0 smssync/{ → src/main}/res/layout/list_messages_tab.xml
  185. 0 smssync/{ → src/main}/res/layout/list_sent_messages_item.xml
  186. 0 smssync/{ → src/main}/res/layout/list_sync_url.xml
  187. 0 smssync/{ → src/main}/res/layout/list_sync_url_item.xml
  188. 0 smssync/{ → src/main}/res/layout/main_activity.xml
  189. 0 smssync/{ → src/main}/res/layout/messages_tab.xml
  190. 0 smssync/{ → src/main}/res/layout/nav_drawer_item.xml
  191. 0 smssync/{ → src/main}/res/layout/sent_messages.xml
  192. 0 smssync/{ → src/main}/res/layout/sync_status.xml
  193. 0 smssync/{ → src/main}/res/layout/tabs_bg.xml
  194. 0 smssync/{ → src/main}/res/menu/main_activity.xml
  195. 0 smssync/{ → src/main}/res/menu/pending_messages_context_menu.xml
  196. 0 smssync/{ → src/main}/res/menu/pending_messages_menu.xml
  197. 0 smssync/{ → src/main}/res/menu/sent_messages_context_menu.xml
  198. 0 smssync/{ → src/main}/res/menu/sent_messages_menu.xml
  199. 0 smssync/{ → src/main}/res/menu/sync_url_context_menu.xml
  200. 0 smssync/{ → src/main}/res/menu/sync_url_menu.xml
  201. 0 smssync/{ → src/main}/res/values-be/strings.xml
  202. 0 smssync/{ → src/main}/res/values-de/strings.xml
  203. 0 smssync/{ → src/main}/res/values-el/strings.xml
  204. 0 smssync/{ → src/main}/res/values-et/strings.xml
  205. 0 smssync/{ → src/main}/res/values-fr/strings.xml
  206. 0 smssync/{ → src/main}/res/values-hu/strings.xml
  207. 0 smssync/{ → src/main}/res/values-it/strings.xml
  208. 0 smssync/{ → src/main}/res/values-ko/strings.xml
  209. 0 smssync/{ → src/main}/res/values-ru/strings.xml
  210. 0 smssync/{ → src/main}/res/values-sw/strings.xml
  211. 0 smssync/{ → src/main}/res/values-uk/strings.xml
  212. 0 smssync/{ → src/main}/res/values-v11/styles.xml
  213. 0 smssync/{ → src/main}/res/values/colors.xml
  214. 0 smssync/{ → src/main}/res/values/resources.xml
  215. 0 smssync/{ → src/main}/res/values/strings.xml
  216. 0 smssync/{ → src/main}/res/values/styles.xml
  217. 0 smssync/{ → src/main}/res/xml/appwidget_info.xml
  218. 0 smssync/{ → src/main}/res/xml/preferences.xml
  219. +0 −10 smssync/tests/.classpath
  220. +0 −34 smssync/tests/.project
  221. +0 −5 smssync/tests/.settings/org.eclipse.jdt.core.prefs
  222. +0 −21 smssync/tests/AndroidManifest.xml
  223. +0 −18 smssync/tests/ant.properties
  224. +0 −85 smssync/tests/build.xml
  225. +0 −6 smssync/tests/gen/org/addhen/smssync/test/BuildConfig.java
  226. +0 −23 smssync/tests/gen/org/addhen/smssync/test/R.java
  227. +0 −20 smssync/tests/proguard-project.txt
  228. +0 −36 smssync/tests/proguard.cfg
  229. +0 −18 smssync/tests/project.properties
  230. BIN smssync/tests/res/drawable-hdpi/icon.png
  231. BIN smssync/tests/res/drawable-ldpi/icon.png
  232. BIN smssync/tests/res/drawable-mdpi/icon.png
  233. +0 −12 smssync/tests/res/layout/main.xml
  234. +0 −5 smssync/tests/res/values/strings.xml
View
@@ -3,7 +3,6 @@ bin
gen
local.properties
secure.properties
-.gradle
*.iml
*.ipr
*.iws
View
@@ -1,25 +1,13 @@
-buildscript {
- repositories {
- mavenCentral()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:0.5.2'
- }
-}
apply plugin: 'android-library'
dependencies {
- compile fileTree(dir: 'libs', include: '*.jar')
+ compile fileTree(dir: 'libs', include: '*.jar')
}
android {
- compileSdkVersion 16
- buildToolsVersion "16"
+ compileSdkVersion 17
+ buildToolsVersion "17.0.0"
- defaultConfig {
- minSdkVersion 7
- targetSdkVersion 16
- }
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
@@ -31,6 +19,16 @@ android {
assets.srcDirs = ['assets']
}
- instrumentTest.setRoot('test')
+ // Move the tests to tests/java, tests/res, etc...
+ instrumentTest.setRoot('tests')
+
+ // Move the build types to build-types/<type>
+ // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
+ // This moves them out of them default location under src/<type>/... which would
+ // conflict with src/ being used by the main source set.
+ // Adding new build types or product flavors should be accompanied
+ // by a similar customization.
+ debug.setRoot('build-types/debug')
+ release.setRoot('build-types/release')
}
}
@@ -9,4 +9,4 @@
android.library=true
# Project target.
-target=android-17
+target=android-16
View
@@ -0,0 +1,9 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+buildscript {
+ repositories {
+ mavenCentral()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:0.5.+'
+ }
+}
Binary file not shown.
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=http\://services.gradle.org/distributions/gradle-1.6-bin.zip
View
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
View
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
View
@@ -1 +1,2 @@
-include ':abslib',':smssync'
+include ':abslib'
+include ':smssync'
@@ -1,6 +0,0 @@
-#
-# Set the keystore properties for signing the application.
-#
-key.store=/home/eyedol/Devel/android-keys/ushahidi-key.keystore
-key.alias=ushahidi-android
-
Oops, something went wrong.

0 comments on commit f42f93d

Please sign in to comment.