Permalink
Browse files

Reorganize source tree into android studio module paradigm

  • Loading branch information...
tetsuo55 committed Sep 18, 2016
1 parent 578b620 commit 526ac6597dc666353c9b96c73f764e817125b8dd
Showing with 7,819 additions and 226 deletions.
  1. +42 −10 .gitignore
  2. 0 {src → app}/androidTest/java/fr/kwiatkowski/apktrack/ApplicationTest.java
  3. +141 −0 app/build.gradle
  4. BIN { → app}/libs/cwac-wakeful-1.0.5.jar
  5. 0 {src → app}/main/AndroidManifest.xml
  6. BIN {src → app}/main/assets/apktrack.store
  7. 0 {src → app}/main/assets/sources.json
  8. 0 {src → app}/main/assets/sugar_upgrades/7.sql
  9. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/MainActivity.java
  10. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/MainApplication.java
  11. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/model/AppIcon.java
  12. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/model/InstalledApp.java
  13. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/model/UpdateSource.java
  14. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/model/UpdateSourceEntry.java
  15. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/model/comparator/AlphabeticalComparator.java
  16. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/model/comparator/StatusComparator.java
  17. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/BroadcastHandler.java
  18. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/DownloadCompletedHandler.java
  19. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/EventBusHelper.java
  20. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/PollReceiver.java
  21. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/ScheduledCheckService.java
  22. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/WebService.java
  23. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/message/CreateToastMessage.java
  24. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/message/ModelModifiedMessage.java
  25. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/message/StickyUpdatedMessage.java
  26. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/utils/CapabilitiesHelper.java
  27. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/utils/DownloadInfo.java
  28. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/service/utils/SSLHelper.java
  29. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/ui/AppAdapter.java
  30. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/ui/AppDisplayFragment.java
  31. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/ui/AppViewHolder.java
  32. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/ui/DividerItemDecoration.java
  33. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/ui/SettingsFragment.java
  34. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/ui/SwipeHandler.java
  35. 0 {src → app}/main/java/fr/kwiatkowski/apktrack/ui/UpdateSourceChooser.java
  36. 0 {src → app}/main/res/anim/slide_in_left.xml
  37. 0 {src → app}/main/res/anim/slide_in_right.xml
  38. 0 {src → app}/main/res/anim/slide_out_left.xml
  39. 0 {src → app}/main/res/anim/slide_out_right.xml
  40. BIN {src → app}/main/res/drawable-hdpi/bug_report.png
  41. BIN {src → app}/main/res/drawable-hdpi/ic_btn_search.png
  42. BIN {src → app}/main/res/drawable-hdpi/ic_launcher.png
  43. BIN {src → app}/main/res/drawable-hdpi/ic_menu_refresh.png
  44. BIN {src → app}/main/res/drawable-hdpi/ic_popup_sync_1.png
  45. BIN {src → app}/main/res/drawable-hdpi/ic_popup_sync_2.png
  46. BIN {src → app}/main/res/drawable-hdpi/ic_popup_sync_3.png
  47. BIN {src → app}/main/res/drawable-hdpi/ic_popup_sync_4.png
  48. BIN {src → app}/main/res/drawable-hdpi/ic_popup_sync_5.png
  49. BIN {src → app}/main/res/drawable-hdpi/ic_popup_sync_6.png
  50. BIN {src → app}/main/res/drawable-hdpi/install.png
  51. BIN {src → app}/main/res/drawable-hdpi/search.png
  52. BIN {src → app}/main/res/drawable-mdpi/bug_report.png
  53. BIN {src → app}/main/res/drawable-mdpi/ic_btn_search.png
  54. BIN {src → app}/main/res/drawable-mdpi/ic_launcher.png
  55. BIN {src → app}/main/res/drawable-mdpi/ic_menu_refresh.png
  56. BIN {src → app}/main/res/drawable-mdpi/ic_popup_sync_1.png
  57. BIN {src → app}/main/res/drawable-mdpi/ic_popup_sync_2.png
  58. BIN {src → app}/main/res/drawable-mdpi/ic_popup_sync_3.png
  59. BIN {src → app}/main/res/drawable-mdpi/ic_popup_sync_4.png
  60. BIN {src → app}/main/res/drawable-mdpi/ic_popup_sync_5.png
  61. BIN {src → app}/main/res/drawable-mdpi/ic_popup_sync_6.png
  62. BIN {src → app}/main/res/drawable-mdpi/install.png
  63. BIN {src → app}/main/res/drawable-mdpi/search.png
  64. BIN {src → app}/main/res/drawable-xhdpi/bug_report.png
  65. BIN {src → app}/main/res/drawable-xhdpi/ic_btn_search.png
  66. BIN {src → app}/main/res/drawable-xhdpi/ic_launcher.png
  67. BIN {src → app}/main/res/drawable-xhdpi/ic_menu_refresh.png
  68. BIN {src → app}/main/res/drawable-xhdpi/ic_popup_sync_1.png
  69. BIN {src → app}/main/res/drawable-xhdpi/ic_popup_sync_2.png
  70. BIN {src → app}/main/res/drawable-xhdpi/ic_popup_sync_3.png
  71. BIN {src → app}/main/res/drawable-xhdpi/ic_popup_sync_4.png
  72. BIN {src → app}/main/res/drawable-xhdpi/ic_popup_sync_5.png
  73. BIN {src → app}/main/res/drawable-xhdpi/ic_popup_sync_6.png
  74. BIN {src → app}/main/res/drawable-xhdpi/install.png
  75. BIN {src → app}/main/res/drawable-xhdpi/search.png
  76. BIN {src → app}/main/res/drawable-xxhdpi/bug_report.png
  77. BIN {src → app}/main/res/drawable-xxhdpi/ic_launcher.png
  78. BIN {src → app}/main/res/drawable-xxhdpi/install.png
  79. BIN {src → app}/main/res/drawable-xxhdpi/search.png
  80. 0 {src → app}/main/res/drawable/ic_popup_sync.xml
  81. BIN {src → app}/main/res/install_base.png
  82. 0 {src → app}/main/res/layout-v16/list_item.xml
  83. 0 {src → app}/main/res/layout/activity_main.xml
  84. 0 {src → app}/main/res/layout/fragment_main.xml
  85. 0 {src → app}/main/res/layout/list_item.xml
  86. 0 {src → app}/main/res/menu/menu_main.xml
  87. 0 {src → app}/main/res/values-de/strings.xml
  88. 0 {src → app}/main/res/values-fr/strings.xml
  89. 0 {src → app}/main/res/values-hr/strings.xml
  90. 0 {src → app}/main/res/values-in/strings.xml
  91. 0 {src → app}/main/res/values-it/strings.xml
  92. 0 {src → app}/main/res/values-pl/strings.xml
  93. 0 {src → app}/main/res/values-pt-rPT/strings.xml
  94. 0 {src → app}/main/res/values-sr/strings.xml
  95. 0 {src → app}/main/res/values-w820dp/dimens.xml
  96. 0 {src → app}/main/res/values/arrays.xml
  97. 0 {src → app}/main/res/values/colors.xml
  98. 0 {src → app}/main/res/values/dimens.xml
  99. 0 {src → app}/main/res/values/strings.xml
  100. 0 {src → app}/main/res/values/styles.xml
  101. 0 {src → app}/main/res/xml/preferences.xml
  102. 0 {src → app}/main/res/xml/searchable.xml
  103. 0 {src → app}/main/res/xml/wakeful.xml
  104. +47 −104 build.gradle
  105. +17 −0 gradle.properties
  106. +90 −90 gradlew.bat
  107. +10 −0 settings.gradle
  108. +0 −8 src/main/gen/fr/kwiatkowski/apktrack/BuildConfig.java
  109. +0 −7 src/main/gen/fr/kwiatkowski/apktrack/Manifest.java
  110. +0 −7 src/main/gen/fr/kwiatkowski/apktrack/R.java
  111. +45 −0 sugar/.gitignore
  112. +31 −0 sugar/.travis.yml
  113. +94 −0 sugar/CHANGELOG.md
  114. +19 −0 sugar/LICENSE
  115. +193 −0 sugar/README.md
  116. +103 −0 sugar/build.gradle
  117. +25 −0 sugar/example/build.gradle
  118. +17 −0 sugar/example/build.properties
  119. +79 −0 sugar/example/build.xml
  120. +17 −0 sugar/example/src/main/AndroidManifest.xml
  121. +1 −0 sugar/example/src/main/assets/sugar_upgrades/3.sql
  122. +18 −0 sugar/example/src/main/java/com/example/activities/SugarActivity.java
  123. BIN sugar/example/src/main/res/drawable-hdpi/icon.png
  124. BIN sugar/example/src/main/res/drawable-ldpi/icon.png
  125. BIN sugar/example/src/main/res/drawable-mdpi/icon.png
  126. +9 −0 sugar/example/src/main/res/layout/main.xml
  127. +4 −0 sugar/example/src/main/res/values/strings.xml
  128. +34 −0 sugar/gradle.properties
  129. BIN sugar/gradle/wrapper/gradle-wrapper.jar
  130. +6 −0 sugar/gradle/wrapper/gradle-wrapper.properties
  131. +164 −0 sugar/gradlew
  132. +90 −0 sugar/gradlew.bat
  133. +45 −0 sugar/library/build.gradle
  134. +3 −0 sugar/library/build.properties
  135. +69 −0 sugar/library/build.xml
  136. +3 −0 sugar/library/gradle.properties
  137. +7 −0 sugar/library/src/main/AndroidManifest.xml
  138. 0 { → sugar/library}/src/main/java/com/orm/SchemaGenerator.java
  139. 0 { → sugar/library}/src/main/java/com/orm/SugarApp.java
  140. 0 { → sugar/library}/src/main/java/com/orm/SugarContext.java
  141. 0 { → sugar/library}/src/main/java/com/orm/SugarDb.java
  142. 0 { → sugar/library}/src/main/java/com/orm/SugarRecord.java
  143. 0 { → sugar/library}/src/main/java/com/orm/SugarTransactionHelper.java
  144. 0 { → sugar/library}/src/main/java/com/orm/dsl/Column.java
  145. 0 { → sugar/library}/src/main/java/com/orm/dsl/Ignore.java
  146. 0 { → sugar/library}/src/main/java/com/orm/dsl/NotNull.java
  147. 0 { → sugar/library}/src/main/java/com/orm/dsl/Table.java
  148. 0 { → sugar/library}/src/main/java/com/orm/dsl/Unique.java
  149. 0 { → sugar/library}/src/main/java/com/orm/query/Condition.java
  150. 0 { → sugar/library}/src/main/java/com/orm/query/Select.java
  151. 0 { → sugar/library}/src/main/java/com/orm/util/Collection.java
  152. 0 { → sugar/library}/src/main/java/com/orm/util/ManifestHelper.java
  153. 0 { → sugar/library}/src/main/java/com/orm/util/NamingHelper.java
  154. 0 { → sugar/library}/src/main/java/com/orm/util/NumberComparator.java
  155. 0 { → sugar/library}/src/main/java/com/orm/util/QueryBuilder.java
  156. 0 { → sugar/library}/src/main/java/com/orm/util/ReflectionUtil.java
  157. 0 { → sugar/library}/src/main/java/com/orm/util/SugarConfig.java
  158. 0 { → sugar/library}/src/main/java/com/orm/util/SugarCursorFactory.java
  159. +179 −0 sugar/library/src/test/java/com/orm/SchemaGeneratorTest.java
  160. +31 −0 sugar/library/src/test/java/com/orm/SugarAppTest.java
  161. +543 −0 sugar/library/src/test/java/com/orm/SugarDataSourceTest.java
  162. +64 −0 sugar/library/src/test/java/com/orm/SugarDbConfigurationTest.java
  163. +41 −0 sugar/library/src/test/java/com/orm/SugarDbTest.java
  164. +20 −0 sugar/library/src/test/java/com/orm/app/ClientApp.java
  165. +60 −0 sugar/library/src/test/java/com/orm/helper/ManifestHelperTest.java
  166. +90 −0 sugar/library/src/test/java/com/orm/helper/NamingHelperTest.java
  167. +84 −0 sugar/library/src/test/java/com/orm/helper/SugarTransactionHelperTest.java
  168. +25 −0 sugar/library/src/test/java/com/orm/model/AllAnotatedModel.java
  169. +25 −0 sugar/library/src/test/java/com/orm/model/BigDecimalFieldAnnotatedModel.java
  170. +19 −0 sugar/library/src/test/java/com/orm/model/BigDecimalFieldExtendedModel.java
  171. +28 −0 sugar/library/src/test/java/com/orm/model/BooleanFieldAnnotatedModel.java
  172. +26 −0 sugar/library/src/test/java/com/orm/model/BooleanFieldExtendedModel.java
  173. +23 −0 sugar/library/src/test/java/com/orm/model/ByteArrayAnnotatedModel.java
  174. +17 −0 sugar/library/src/test/java/com/orm/model/ByteArrayExtendedModel.java
  175. +28 −0 sugar/library/src/test/java/com/orm/model/DoubleFieldAnnotatedModel.java
  176. +26 −0 sugar/library/src/test/java/com/orm/model/DoubleFieldExtendedModel.java
  177. +10 −0 sugar/library/src/test/java/com/orm/model/EmptyModel.java
  178. +52 −0 sugar/library/src/test/java/com/orm/model/EnumFieldAnnotatedModel.java
  179. +46 −0 sugar/library/src/test/java/com/orm/model/EnumFieldExtendedModel.java
  180. +28 −0 sugar/library/src/test/java/com/orm/model/FloatFieldAnnotatedModel.java
  181. +26 −0 sugar/library/src/test/java/com/orm/model/FloatFieldExtendedModel.java
  182. +9 −0 sugar/library/src/test/java/com/orm/model/IncompleteAnnotatedModel.java
  183. +19 −0 sugar/library/src/test/java/com/orm/model/IntUniqueModel.java
  184. +28 −0 sugar/library/src/test/java/com/orm/model/IntegerFieldAnnotatedModel.java
  185. +26 −0 sugar/library/src/test/java/com/orm/model/IntegerFieldExtendedModel.java
  186. +28 −0 sugar/library/src/test/java/com/orm/model/LongFieldAnnotatedModel.java
  187. +26 −0 sugar/library/src/test/java/com/orm/model/LongFieldExtendedModel.java
  188. +21 −0 sugar/library/src/test/java/com/orm/model/MultiColumnUniqueModel.java
  189. +23 −0 sugar/library/src/test/java/com/orm/model/NestedAnnotatedModel.java
  190. +18 −0 sugar/library/src/test/java/com/orm/model/NestedExtendedModel.java
  191. +18 −0 sugar/library/src/test/java/com/orm/model/NestedMixedAAModel.java
  192. +18 −0 sugar/library/src/test/java/com/orm/model/NestedMixedABModel.java
  193. +24 −0 sugar/library/src/test/java/com/orm/model/NestedMixedBAModel.java
  194. +24 −0 sugar/library/src/test/java/com/orm/model/NestedMixedBBModel.java
  195. +7 −0 sugar/library/src/test/java/com/orm/model/NoSugarModel.java
  196. +23 −0 sugar/library/src/test/java/com/orm/model/RelationshipAnnotatedModel.java
  197. +18 −0 sugar/library/src/test/java/com/orm/model/RelationshipExtendedModel.java
  198. +18 −0 sugar/library/src/test/java/com/orm/model/RelationshipMixedAModel.java
  199. +24 −0 sugar/library/src/test/java/com/orm/model/RelationshipMixedBModel.java
  200. +28 −0 sugar/library/src/test/java/com/orm/model/ShortFieldAnnotatedModel.java
  201. +26 −0 sugar/library/src/test/java/com/orm/model/ShortFieldExtendedModel.java
  202. +15 −0 sugar/library/src/test/java/com/orm/model/SimpleAnnotatedModel.java
  203. +8 −0 sugar/library/src/test/java/com/orm/model/SimpleExtendedModel.java
  204. +33 −0 sugar/library/src/test/java/com/orm/model/SimpleModel.java
  205. +23 −0 sugar/library/src/test/java/com/orm/model/StringFieldAnnotatedModel.java
  206. +22 −0 sugar/library/src/test/java/com/orm/model/StringFieldAnnotatedNoIdModel.java
  207. +21 −0 sugar/library/src/test/java/com/orm/model/StringFieldExtendedModel.java
  208. +18 −0 sugar/library/src/test/java/com/orm/model/StringFieldExtendedModelAnnotatedColumn.java
  209. +21 −0 sugar/library/src/test/java/com/orm/model/TestRecord.java
  210. +29 −0 sugar/library/src/test/java/com/orm/model/onetomany/OneToManyModel.java
  211. +26 −0 sugar/library/src/test/java/com/orm/model/onetomany/OneToManyRelationModel.java
  212. +27 −0 sugar/library/src/test/java/com/orm/model/onetomany/WithoutOneToManyAnnotationModel.java
  213. +26 −0 sugar/library/src/test/java/com/orm/model/onetomany/WithoutOneToManyAnnotationRelationModel.java
  214. +30 −0 sugar/library/src/test/java/com/orm/query/QueryBuilderTests.java
  215. +140 −0 sugar/library/src/test/java/com/orm/query/SelectTest.java
  216. +59 −0 sugar/library/src/test/java/com/orm/record/BigDecimalFieldTests.java
  217. +83 −0 sugar/library/src/test/java/com/orm/record/BooleanFieldTests.java
  218. +58 −0 sugar/library/src/test/java/com/orm/record/ByteArrayFieldTests.java
  219. +78 −0 sugar/library/src/test/java/com/orm/record/CursorTests.java
  220. +83 −0 sugar/library/src/test/java/com/orm/record/DoubleFieldTests.java
  221. +86 −0 sugar/library/src/test/java/com/orm/record/EnumFieldTests.java
  222. +199 −0 sugar/library/src/test/java/com/orm/record/FirstAndLastTests.java
  223. +80 −0 sugar/library/src/test/java/com/orm/record/FloatFieldTests.java
  224. +32 −0 sugar/library/src/test/java/com/orm/record/IncompleteAnnotatedModelTests.java
  225. +107 −0 sugar/library/src/test/java/com/orm/record/IntegerFieldTests.java
  226. +62 −0 sugar/library/src/test/java/com/orm/record/ListAllOrderByTests.java
  227. +80 −0 sugar/library/src/test/java/com/orm/record/LongFieldTests.java
  228. +111 −0 sugar/library/src/test/java/com/orm/record/MultipleSaveTests.java
  229. +142 −0 sugar/library/src/test/java/com/orm/record/NestedAnnotatedTests.java
  230. +140 −0 sugar/library/src/test/java/com/orm/record/NestedExtendedTests.java
  231. +141 −0 sugar/library/src/test/java/com/orm/record/NestedMixedAATests.java
  232. +150 −0 sugar/library/src/test/java/com/orm/record/NestedMixedABTests.java
  233. +151 −0 sugar/library/src/test/java/com/orm/record/NestedMixedBATests.java
  234. +150 −0 sugar/library/src/test/java/com/orm/record/NestedMixedBBTests.java
  235. +34 −0 sugar/library/src/test/java/com/orm/record/NoSugarModelTests.java
  236. +139 −0 sugar/library/src/test/java/com/orm/record/OneToManyTest.java
  237. +125 −0 sugar/library/src/test/java/com/orm/record/RelationshipAnnotatedTests.java
  238. +125 −0 sugar/library/src/test/java/com/orm/record/RelationshipExtendedTests.java
  239. +141 −0 sugar/library/src/test/java/com/orm/record/RelationshipMixedATests.java
  240. +120 −0 sugar/library/src/test/java/com/orm/record/RelationshipMixedBTests.java
  241. +80 −0 sugar/library/src/test/java/com/orm/record/ShortFieldTests.java
  242. +373 −0 sugar/library/src/test/java/com/orm/record/SimpleAnnotatedModelTests.java
  243. +382 −0 sugar/library/src/test/java/com/orm/record/SimpleExtendedModelTests.java
  244. +51 −0 sugar/library/src/test/java/com/orm/record/StringFieldTests.java
  245. +70 −0 sugar/library/src/test/java/com/orm/record/UpdateInTxTest.java
  246. +62 −0 sugar/library/src/test/java/com/orm/util/ContextUtilTest.java
  247. +36 −0 sugar/library/src/test/java/com/orm/util/KeyWordUtilTest.java
  248. +44 −0 sugar/library/src/test/java/com/orm/util/MigrationFileParserTest.java
  249. +48 −0 sugar/library/src/test/java/com/orm/util/NumberComparatorTest.java
  250. +91 −0 sugar/library/src/test/java/com/orm/util/ReflectionUtilTest.java
  251. +33 −0 sugar/library/src/test/java/com/orm/util/SugarConfigTest.java
  252. +92 −0 sugar/maven_push.gradle
  253. +2 −0 sugar/settings.gradle
View
@@ -1,10 +1,42 @@
/build
/.idea
/out
/cert
/keystore.jks
/signing.properties
/local.properties
*.iml
/.gradle
*.apk
# Built application files
*.apk
*.ap_
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class
# Generated files
bin/
gen/
out/
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
proguard/
# Log Files
*.log
# Android Studio Navigation editor temp files
.navigation/
# Android Studio captures folder
captures/
# Intellij
*.iml
.idea
# Keystore files
*.jks
**/*.jks
keystore.properties
View
@@ -0,0 +1,141 @@
/**
* The first line in the build configuration applies the Android plugin for
* Gradle to this build and makes the android {} block available to specify
* Android-specific build options.
*/
apply plugin: 'com.android.application'
/**
* The android {} block is where you configure all your Android-specific
* build options.
*/
android {
/**
* compileSdkVersion specifies the Android API level Gradle should use to
* compile your app. This means your app can use the API features included in
* this API level and lower.
*
* buildToolsVersion specifies the version of the SDK build tools, command-line
* utilities, and compiler that Gradle should use to build your app. You need to
* download the build tools using the SDK Manager.
*/
compileSdkVersion 24
buildToolsVersion "24.0.2"
/**
* The defaultConfig {} block encapsulates default settings and entries for all
* build variants, and can override some attributes in main/AndroidManifest.xml
* dynamically from the build system. You can configure product flavors to override
* these values for different versions of your app.
*/
defaultConfig {
/**
* applicationId uniquely identifies the package for publishing.
* However, your source code should still reference the package name
* defined by the package attribute in the main/AndroidManifest.xml file.
*/
applicationId 'fr.kwiatkowski.ApkTrack'
// Defines the minimum API level required to run the app.
minSdkVersion 15
// Specifies the API level used to test the app.
targetSdkVersion 24
// Defines the version number of your app.
versionCode 19
// Defines a user-friendly version name for your app.
versionName "2.1.1"
}
/**
* The buildTypes {} block is where you can configure multiple build types.
* By default, the build system defines two build types: debug and release. The
* debug build type is not explicitly shown in the default build configuration,
* but it includes debugging tools and is signed with the debug key. The release
* build type applies Proguard settings and is not signed by default.
*/
buildTypes {
/**
* By default, Android Studio configures the release build type to enable code
* shrinking, using minifyEnabled, and specifies the Proguard settings file.
*/
release {
minifyEnabled true // Enables code shrinking for the release build type.
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
/**
* The productFlavors {} block is where you can configure multiple product
* flavors. This allows you to create different versions of your app that can
* override defaultConfig {} with their own settings. Product flavors are
* optional, and the build system does not create them by default. This example
* creates a free and paid product flavor. Each product flavor then specifies
* its own application ID, so that they can exist on the Google Play Store, or
* an Android device, simultaneously.
productFlavors {
free {
applicationId 'com.example.myapp.free'
}
paid {
applicationId 'com.example.myapp.paid'
}
}
/**
* The splits {} block is where you can configure different APK builds that
* each contain only code and resources for a supported screen density or
* ABI. You'll also need to configure your build so that each APK has a
* different versionCode.
*/
splits {
// Screen density split settings
density {
// Enable or disable the density split mechanism
enable false
// Exclude these densities from splits
exclude "ldpi", "tvdpi", "xxxhdpi", "400dpi", "560dpi"
}
}
}
/**
* The dependencies {} block in the module-level build configuration file
* only specifies dependencies required to build the module itself.
*/
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:preference-v7:24.2.1'
compile 'com.android.support:preference-v14:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'de.greenrobot:eventbus:2.4.1'
compile 'com.github.traex.rippleeffect:library:1.3'
compile 'ch.acra:acra:4.6.2'
// TODO: Add SugarORM as a dependency when it works.
// compile 'com.github.satyan:sugar:1.5'
compile project(':sugar')
// SugarORM dependencies:
compile 'com.android.support:support-v4:24.2.1'
compile 'com.google.guava:guava:19.0'
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,104 +1,47 @@
/*
* Copyright (c) 2015
*
* ApkTrack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ApkTrack is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ApkTrack. If not, see <http://www.gnu.org/licenses/>.
*/
apply plugin: 'idea'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-rc2'
}
}
apply plugin: 'com.android.application'
repositories {
jcenter()
}
android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "fr.kwiatkowski.ApkTrack"
minSdkVersion 15
targetSdkVersion 24
versionCode 19
versionName "2.1.1"
}
// Automatic signing for release builds. Credentials and keystore are not present in the VCS.
def signingPropFile = rootProject.file('signing.properties')
if (signingPropFile.canRead()) {
def Properties signingProps = new Properties()
signingProps.load(new FileInputStream(signingPropFile))
signingConfigs {
release {
storeFile rootProject.file(signingProps['STORE_FILE'])
keyAlias signingProps['KEY_ALIAS']
storePassword signingProps['STORE_PASSWORD']
keyPassword signingProps['KEY_PASSWORD']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:preference-v7:24.2.1'
compile 'com.android.support:preference-v14:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'de.greenrobot:eventbus:2.4.1'
compile 'com.github.traex.rippleeffect:library:1.3'
compile 'ch.acra:acra:4.6.2'
// TODO: Add SugarORM as a dependency when it works.
//compile 'com.github.satyan:sugar:1.4.0'
// SugarORM dependencies:
compile 'com.android.support:support-v4:24.2.1'
compile 'com.google.guava:guava:19.0'
}
idea {
module {
downloadSources = true
}
}
/**
* The buildscript {} block is where you configure the repositories and
* dependencies for Gradle itself--meaning, you should not include dependencies
* for your modules here. For example, this block includes the Android plugin for
* Gradle as a dependency because it provides the additional instructions Gradle
* needs to build Android app modules.
*/
buildscript {
/**
* The repositories {} block configures the repositories Gradle uses to
* search or download the dependencies. Gradle pre-configures support for remote
* repositories such as JCenter, Maven Central, and Ivy. You can also use local
* repositories or define your own remote repositories. The code below defines
* JCenter as the repository Gradle should use to look for its dependencies.
*/
repositories {
jcenter()
}
/**
* The dependencies {} block configures the dependencies Gradle needs to use
* to build your project. The following line adds Android Plugin for Gradle
* version 2.0.0 as a classpath dependency.
*/
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-rc2'
}
}
/**
* The allprojects {} block is where you configure the repositories and
* dependencies used by all modules in your project, such as third-party plugins
* or libraries. Dependencies that are not required by all the modules in the
* project should be configured in module-level build.gradle files. For new
* projects, Android Studio configures JCenter as the default repository, but it
* does not configure any dependencies.
*/
allprojects {
repositories {
jcenter()
}
}
View
@@ -0,0 +1,17 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048M
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
Oops, something went wrong.

0 comments on commit 526ac65

Please sign in to comment.