@ -1,3 +1,3 @@
|
|||||||
# Dummy settings.gradle file that helps F-Droid locate the Android project
|
# Dummy settings.gradle file that helps F-Droid locate the Android project
|
||||||
# metadata (app description and screenshots). See #670 for more details.
|
# metadata (app description and screenshots). See #670 for more details.
|
||||||
include ':android:uhabits-android'
|
include ':uhabits-android'
|
||||||
|
@ -1 +0,0 @@
|
|||||||
/build
|
|
@ -1,24 +0,0 @@
|
|||||||
apply plugin: 'com.android.library'
|
|
||||||
|
|
||||||
android {
|
|
||||||
compileSdkVersion COMPILE_SDK_VERSION as Integer
|
|
||||||
|
|
||||||
defaultConfig {
|
|
||||||
minSdkVersion MIN_SDK_VERSION as Integer
|
|
||||||
targetSdkVersion TARGET_SDK_VERSION as Integer
|
|
||||||
}
|
|
||||||
|
|
||||||
compileOptions {
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|
||||||
lintOptions {
|
|
||||||
checkReleaseBuilds false
|
|
||||||
abortOnError false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
# Add project specific ProGuard rules here.
|
|
||||||
# By default, the flags in this file are appended to flags specified
|
|
||||||
# in /gemini-b/opt/android-sdk/tools/proguard/proguard-android.txt
|
|
||||||
# You can edit the include path and order by changing the proguardFiles
|
|
||||||
# directive in build.gradle.
|
|
||||||
#
|
|
||||||
# For more details, see
|
|
||||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
||||||
|
|
||||||
# Add any project specific keep options here:
|
|
||||||
|
|
||||||
# If your project uses WebView with JS, uncomment the following
|
|
||||||
# and specify the fully qualified class name to the JavaScript interface
|
|
||||||
# class:
|
|
||||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
||||||
# public *;
|
|
||||||
#}
|
|
||||||
|
|
||||||
# Uncomment this to preserve the line number information for
|
|
||||||
# debugging stack traces.
|
|
||||||
#-keepattributes SourceFile,LineNumberTable
|
|
||||||
|
|
||||||
# If you keep the line number information, uncomment this to
|
|
||||||
# hide the original source file name.
|
|
||||||
#-renamesourcefileattribute SourceFile
|
|
@ -1,2 +0,0 @@
|
|||||||
<manifest package="com.android"
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"/>
|
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<string name="select_hours"/>
|
|
||||||
<string name="select_minutes"/>
|
|
||||||
<string name="color_picker_default_title"/>
|
|
||||||
<string name="clear"/>
|
|
||||||
<string name="clear_label"/>
|
|
||||||
<string name="done_label"/>
|
|
||||||
</resources>
|
|
@ -1,26 +1,118 @@
|
|||||||
buildscript {
|
plugins {
|
||||||
|
id 'com.github.triplet.play' version '2.6.2'
|
||||||
|
id "org.jlleitschuh.gradle.ktlint" version "9.4.1"
|
||||||
|
id 'com.android.application' version "4.1.0"
|
||||||
|
id "org.jetbrains.kotlin.android" version "$KOTLIN_VERSION"
|
||||||
|
id "org.jetbrains.kotlin.kapt" version "$KOTLIN_VERSION"
|
||||||
|
id "org.jetbrains.kotlin.android.extensions" version "$KOTLIN_VERSION"
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
maven {
|
|
||||||
url "https://plugins.gradle.org/m2/"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdkVersion COMPILE_SDK_VERSION as Integer
|
||||||
|
|
||||||
|
def secretPropsFile = file(".secret/gradle.properties")
|
||||||
|
if (secretPropsFile.exists()) {
|
||||||
|
def secrets = new Properties()
|
||||||
|
secretPropsFile.withInputStream { secrets.load(it) }
|
||||||
|
signingConfigs {
|
||||||
|
release {
|
||||||
|
storeFile file(secrets.LOOP_KEY_STORE)
|
||||||
|
storePassword secrets.LOOP_STORE_PASSWORD
|
||||||
|
keyAlias secrets.LOOP_KEY_ALIAS
|
||||||
|
keyPassword secrets.LOOP_KEY_PASSWORD
|
||||||
|
}
|
||||||
|
}
|
||||||
|
buildTypes.release.signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
defaultConfig {
|
||||||
classpath "com.android.tools.build:gradle:$BUILD_TOOLS_VERSION"
|
versionCode VERSION_CODE as Integer
|
||||||
classpath "com.neenbedankt.gradle.plugins:android-apt:1.8"
|
versionName "$VERSION_NAME"
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
|
minSdkVersion MIN_SDK_VERSION as Integer
|
||||||
classpath "org.ajoberstar:grgit:1.5.0"
|
targetSdkVersion TARGET_SDK_VERSION as Integer
|
||||||
classpath "org.jlleitschuh.gradle:ktlint-gradle:9.4.1"
|
applicationId "org.isoron.uhabits"
|
||||||
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
release {
|
||||||
|
minifyEnabled true
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
debug {
|
||||||
repositories {
|
testCoverageEnabled true
|
||||||
google()
|
}
|
||||||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
||||||
jcenter()
|
|
||||||
}
|
}
|
||||||
apply plugin: "org.jlleitschuh.gradle.ktlint"
|
|
||||||
|
lintOptions {
|
||||||
|
checkReleaseBuilds false
|
||||||
|
abortOnError false
|
||||||
|
disable 'GoogleAppIndexingWarning'
|
||||||
|
}
|
||||||
|
|
||||||
|
compileOptions {
|
||||||
|
coreLibraryDesugaringEnabled true
|
||||||
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
|
|
||||||
|
buildFeatures {
|
||||||
|
viewBinding true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
androidTestImplementation "androidx.test.espresso:espresso-contrib:$ESPRESSO_VERSION"
|
||||||
|
androidTestImplementation "androidx.test.espresso:espresso-core:$ESPRESSO_VERSION"
|
||||||
|
androidTestImplementation "com.google.dagger:dagger:$DAGGER_VERSION"
|
||||||
|
androidTestImplementation "com.linkedin.dexmaker:dexmaker-mockito:2.28.0"
|
||||||
|
androidTestImplementation "com.linkedin.testbutler:test-butler-library:1.3.1"
|
||||||
|
androidTestImplementation "io.ktor:ktor-client-mock:$KTOR_VERSION"
|
||||||
|
androidTestImplementation "io.ktor:ktor-jackson:$KTOR_VERSION"
|
||||||
|
androidTestImplementation "org.mockito:mockito-core:2.28.2"
|
||||||
|
androidTestImplementation 'androidx.annotation:annotation:1.1.0'
|
||||||
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
||||||
|
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
|
||||||
|
androidTestImplementation 'androidx.test:rules:1.3.0'
|
||||||
|
compileOnly "javax.annotation:jsr250-api:1.0"
|
||||||
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.1'
|
||||||
|
implementation "com.github.paolorotolo:appintro:3.4.0"
|
||||||
|
implementation "com.google.code.findbugs:jsr305:3.0.2"
|
||||||
|
implementation "com.google.dagger:dagger:$DAGGER_VERSION"
|
||||||
|
implementation "com.google.guava:guava:30.0-android"
|
||||||
|
implementation "io.ktor:ktor-client-android:$KTOR_VERSION"
|
||||||
|
implementation "io.ktor:ktor-client-core:$KTOR_VERSION"
|
||||||
|
implementation "io.ktor:ktor-client-jackson:$KTOR_VERSION"
|
||||||
|
implementation "io.ktor:ktor-client-json:$KTOR_VERSION"
|
||||||
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$KOTLIN_VERSION"
|
||||||
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$KX_COROUTINES_VERSION"
|
||||||
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$KX_COROUTINES_VERSION"
|
||||||
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||||||
|
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
|
||||||
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||||
|
implementation 'com.google.android.material:material:1.2.1'
|
||||||
|
implementation 'com.google.zxing:core:3.4.1'
|
||||||
|
implementation 'com.opencsv:opencsv:3.10'
|
||||||
|
implementation files("../uhabits-core/build/libs/uhabits-core-jvm.jar")
|
||||||
|
kapt "com.google.dagger:dagger-compiler:$DAGGER_VERSION"
|
||||||
|
kaptAndroidTest "com.google.dagger:dagger-compiler:$DAGGER_VERSION"
|
||||||
|
testImplementation "com.google.dagger:dagger:$DAGGER_VERSION"
|
||||||
|
testImplementation "junit:junit:4.12"
|
||||||
|
testImplementation "org.mockito:mockito-core:2.28.2"
|
||||||
|
testImplementation "org.mockito:mockito-inline:2.8.9"
|
||||||
|
}
|
||||||
|
|
||||||
|
kapt {
|
||||||
|
correctErrorTypes = true
|
||||||
|
}
|
||||||
|
|
||||||
|
play {
|
||||||
|
serviceAccountCredentials = file("../.secret/gcp-key.json")
|
||||||
|
track = "alpha"
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
uhabits-android/src/main/play/
|
|
@ -1 +1,14 @@
|
|||||||
include ':uhabits-android', ':android-pickers'
|
pluginManagement {
|
||||||
|
repositories {
|
||||||
|
gradlePluginPortal()
|
||||||
|
jcenter()
|
||||||
|
google()
|
||||||
|
}
|
||||||
|
resolutionStrategy {
|
||||||
|
eachPlugin {
|
||||||
|
if (requested.id.id == "com.android.application") {
|
||||||
|
useModule("com.android.tools.build:gradle:${requested.version}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 585 B After Width: | Height: | Size: 585 B |
Before Width: | Height: | Size: 545 B After Width: | Height: | Size: 545 B |
Before Width: | Height: | Size: 583 B After Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |