Skip to content

Commit

Permalink
Encrypt databases
Browse files Browse the repository at this point in the history
  • Loading branch information
S1210 committed May 29, 2023
1 parent a87bc56 commit 6d0221d
Show file tree
Hide file tree
Showing 125 changed files with 2,688 additions and 1,117 deletions.
91 changes: 47 additions & 44 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ def loadExtraProperties(String fileName) {
loadExtraProperties("treetracker.keys.properties")

android {
compileSdkVersion 31
buildToolsVersion '30.0.3'
compileSdkVersion 33
buildToolsVersion '33.0.0'

defaultConfig {
applicationId "org.greenstand.android.TreeTracker"
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 33
versionCode 196
versionName "2.1.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand All @@ -44,11 +44,10 @@ android {
buildConfigField 'Boolean', 'BLUR_DETECTION_ENABLED', "false"
buildConfigField 'Boolean', 'USE_AWS_S3', "false"
buildConfigField 'Boolean', 'ORG_LINK', "false"


javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
buildConfigField "String", "CRYPTO_KEY", "\"THE_BEST_APP_IN_THE_WORLD\""
kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
}
}
}
Expand All @@ -59,20 +58,22 @@ android {
}

kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}

composeOptions {
kotlinCompilerExtensionVersion compose_version
kotlinCompilerExtensionVersion compose_compiler_version
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17

coreLibraryDesugaringEnabled = true
}

namespace 'org.greenstand.android.TreeTracker'

lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
Expand Down Expand Up @@ -174,7 +175,7 @@ android {

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}
}

Expand All @@ -190,20 +191,20 @@ dependencies {

// 2.0: https://docs.aws.amazon.com/sdk-for-java/v2/developer-guide/setup-project-gradle.html
// android s3 sdk does not support transfer acceleration
implementation 'com.amazonaws:aws-android-sdk-core:2.16.8'
implementation 'com.amazonaws:aws-android-sdk-s3:2.16.8'
implementation 'com.amazonaws:aws-android-sdk-core:2.69.0'
implementation 'com.amazonaws:aws-android-sdk-s3:2.69.0'

//koin dependencies
implementation "io.insert-koin:koin-android:$koin_version"
implementation "io.insert-koin:koin-androidx-compose:$koin_version"
testImplementation "io.insert-koin:koin-test:$koin_version"

implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.exifinterface:exifinterface:1.3.2'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
implementation "androidx.work:work-runtime-ktx:2.7.1"
implementation 'androidx.exifinterface:exifinterface:1.3.6'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
implementation "androidx.work:work-runtime-ktx:2.8.1"

// Compose
implementation "androidx.compose.runtime:runtime:$compose_version"
Expand All @@ -214,25 +215,27 @@ dependencies {
implementation "androidx.compose.ui:ui-tooling:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.animation:animation:$compose_version"
implementation "androidx.activity:activity-compose:1.3.0"
implementation "androidx.navigation:navigation-compose:2.4.1"
implementation "androidx.activity:activity-compose:1.7.2"
implementation "androidx.navigation:navigation-compose:2.5.3"

//Permissions management library for Jetpack Compose
implementation "com.google.accompanist:accompanist-permissions:0.21.1-beta"
implementation 'com.google.accompanist:accompanist-permissions:0.30.1'

// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0'
implementation 'org.jetbrains.kotlinx:kotlinx-datetime:0.3.2'
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.5")
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1'
implementation 'org.jetbrains.kotlinx:kotlinx-datetime:0.4.0'
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.3")

//Database
implementation 'androidx.room:room-runtime:2.4.0-beta01'
implementation 'androidx.room:room-ktx:2.4.0-beta01'
kapt "androidx.room:room-compiler:2.4.0-beta01"
implementation 'androidx.room:room-runtime:2.5.1'
implementation 'androidx.room:room-ktx:2.5.1'
kapt "androidx.room:room-compiler:2.5.1"

devImplementation 'com.amitshekhar.android:debug-db:1.0.6'
// Sqlcipher
implementation "net.zetetic:android-database-sqlcipher:4.5.4"
implementation "androidx.sqlite:sqlite-ktx:2.3.1"

api "com.squareup.retrofit2:converter-gson:${retrofit2Version}"
implementation "com.squareup.retrofit2:retrofit:${retrofit2Version}"
Expand All @@ -254,25 +257,25 @@ dependencies {
// If you to use Camera Extensions
implementation "androidx.camera:camera-extensions:$camerax_ext_version"

api 'com.jakewharton.timber:timber:4.7.1'
api 'com.jakewharton.timber:timber:5.0.1'
implementation "androidx.legacy:legacy-support-v4:${androidSupportVersion}"

implementation platform('com.google.firebase:firebase-bom:25.10.0')
implementation 'com.google.firebase:firebase-analytics:18.0.2'
implementation 'com.google.firebase:firebase-crashlytics-ktx:17.3.1'
implementation 'com.google.firebase:firebase-iid:21.0.1'
implementation platform('com.google.firebase:firebase-bom:32.0.0')
implementation 'com.google.firebase:firebase-analytics:21.2.2'
implementation 'com.google.firebase:firebase-crashlytics-ktx:18.3.7'
implementation 'com.google.firebase:firebase-iid:21.1.0'

testImplementation 'androidx.test:core-ktx:1.5.0'
testImplementation "io.mockk:mockk:1.10.0"
testImplementation "junit:junit:4.13.1"
testImplementation "androidx.room:room-testing:2.2.6"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.9"
testImplementation "androidx.arch.core:core-testing:2.1.0"
testImplementation 'io.mockk:mockk:1.13.5'
testImplementation "junit:junit:4.13.2"
testImplementation "androidx.room:room-testing:2.5.1"
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.1'
testImplementation "androidx.arch.core:core-testing:2.2.0"
androidTestImplementation "com.android.support.test:runner:1.0.2"
androidTestImplementation "com.android.support.test.espresso:espresso-core:3.0.2"
testImplementation "org.robolectric:robolectric:4.8.1"
androidTestImplementation "app.cash.turbine:turbine:0.12.1"
testImplementation "app.cash.turbine:turbine:0.12.1"
testImplementation 'org.robolectric:robolectric:4.10.3'
androidTestImplementation 'app.cash.turbine:turbine:0.13.0'
testImplementation 'app.cash.turbine:turbine:0.13.0'

}

Expand Down
Loading

0 comments on commit 6d0221d

Please sign in to comment.