-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
|
||
# Created by https://www.gitignore.io/api/gradle,intellij,android,emacs | ||
|
||
### Intellij ### | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
# User-specific stuff: | ||
.idea/workspace.xml | ||
.idea/tasks.xml | ||
.idea/dictionaries | ||
.idea/vcs.xml | ||
.idea/jsLibraryMappings.xml | ||
|
||
# Sensitive or high-churn files: | ||
.idea/dataSources.ids | ||
.idea/dataSources.xml | ||
.idea/dataSources.local.xml | ||
.idea/sqlDataSources.xml | ||
.idea/dynamic.xml | ||
.idea/uiDesigner.xml | ||
|
||
# Gradle: | ||
.idea/gradle.xml | ||
.idea/libraries | ||
|
||
# Mongo Explorer plugin: | ||
.idea/mongoSettings.xml | ||
|
||
## File-based project format: | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
/out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
### Intellij Patch ### | ||
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 | ||
|
||
# *.iml | ||
# modules.xml | ||
|
||
|
||
### Android ### | ||
# Built application files | ||
*.apk | ||
*.ap_ | ||
|
||
# Files for the 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 | ||
|
||
# Keystore files | ||
*.jks | ||
|
||
### Android Patch ### | ||
gen-external-apklibs | ||
|
||
|
||
### Emacs ### | ||
# -*- mode: gitignore; -*- | ||
*~ | ||
\#*\# | ||
/.emacs.desktop | ||
/.emacs.desktop.lock | ||
*.elc | ||
auto-save-list | ||
tramp | ||
.\#* | ||
|
||
# Org-mode | ||
.org-id-locations | ||
*_archive | ||
|
||
# flymake-mode | ||
*_flymake.* | ||
|
||
# eshell files | ||
/eshell/history | ||
/eshell/lastdir | ||
|
||
# elpa packages | ||
/elpa/ | ||
|
||
# reftex files | ||
*.rel | ||
|
||
# AUCTeX auto folder | ||
/auto/ | ||
|
||
# cask packages | ||
.cask/ | ||
dist/ | ||
|
||
# Flycheck | ||
flycheck_*.el | ||
|
||
# server auth directory | ||
/server/ | ||
|
||
# projectiles files | ||
.projectile | ||
|
||
### Gradle ### | ||
.gradle | ||
build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 | ||
# gradle/wrapper/gradle-wrapper.properties |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"Hello, World" gone wrong. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
dexOptions { | ||
maxProcessCount 4 | ||
javaMaxHeapSize "2g" | ||
} | ||
|
||
compileSdkVersion 25 | ||
buildToolsVersion "25.0.1" | ||
|
||
defaultConfig { | ||
applicationId "com.orgzly" | ||
minSdkVersion 14 // Ice Cream Sandwich (4.0) | ||
targetSdkVersion 25 // Nougat (7.1) | ||
versionCode 54 | ||
versionName "1.4.9" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
buildTypes { | ||
// Read from local.properties file. | ||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
|
||
release { | ||
shrinkResources true | ||
minifyEnabled true | ||
|
||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
|
||
buildConfigField "boolean", "LOG_DEBUG", "false" | ||
|
||
// Dropbox app key (https://www.dropbox.com/developers/apps) | ||
buildConfigField "String", "DROPBOX_APP_KEY", properties.getProperty("dropbox.app_key") | ||
resValue "string", "dropbox_app_key_schema", properties.getProperty("dropbox.app_key_schema") | ||
} | ||
|
||
debug { | ||
buildConfigField "boolean", "LOG_DEBUG", "true" | ||
|
||
// Dropbox access token used by tests (https://www.dropbox.com/developers/apps) | ||
buildConfigField "String", "DROPBOX_TOKEN", properties.getProperty("dropbox.token") | ||
|
||
// Dropbox app key (https://www.dropbox.com/developers/apps) | ||
buildConfigField "String", "DROPBOX_APP_KEY", properties.getProperty("dropbox.app_key") | ||
resValue "string", "dropbox_app_key_schema", properties.getProperty("dropbox.app_key_schema") | ||
} | ||
} | ||
|
||
lintOptions { | ||
disable 'ResourceType' | ||
disable 'MissingTranslation' | ||
} | ||
} | ||
|
||
// Warning:Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.1.1) and test app (23.0.1) differ. | ||
// http://stackoverflow.com/questions/28999124/resolved-versions-for-app-22-0-0-and-test-app-21-0-3-differ | ||
configurations.all { | ||
resolutionStrategy { | ||
force "com.android.support:design:$android_support_version" | ||
} | ||
} | ||
|
||
dependencies { | ||
compile project(':org-java') // Used when developing, defined in settings.gradle | ||
// compile "com.orgzly:org-java:1.0" | ||
|
||
compile "com.dropbox.core:dropbox-core-sdk:$dropbox_core_sdk_version" | ||
|
||
compile("com.github.machinarius:preferencefragment:$preference_fragment_version") { | ||
exclude module: 'support-v4' | ||
} | ||
|
||
compile "com.android.support:support-v4:$android_support_version" | ||
compile "com.android.support:appcompat-v7:$android_support_version" | ||
compile "com.android.support:cardview-v7:$android_support_version" | ||
compile "com.android.support:recyclerview-v7:$android_support_version" | ||
compile "com.android.support:design:$android_support_version" | ||
androidTestCompile "com.android.support:support-annotations:$android_support_version" | ||
|
||
// Too big. Maybe strip it? | ||
// compile 'com.ibm.icu:icu4j:54.1.1' | ||
|
||
// Did not detect encoding for worg/org-blog-articles.org | ||
// compile fileTree(dir: 'libs', include: ['chardet.jar']) | ||
|
||
compile fileTree(include: ['juniversalchardet-1.0.3.jar'], dir: 'libs') | ||
|
||
testCompile "junit:junit:$junit_version" | ||
|
||
androidTestCompile "com.android.support.test:runner:$android_test_version" | ||
androidTestCompile "com.android.support.test:rules:$android_test_version" | ||
|
||
androidTestCompile "com.android.support.test.espresso:espresso-core:$android_test_espresso_version" | ||
androidTestCompile "com.android.support.test.espresso:espresso-contrib:$android_test_espresso_version" | ||
|
||
androidTestCompile "de.sven-jacobs:loremipsum:$loremipsum_version" | ||
} |