Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c13cfdd1 authored by Nishant Dande's avatar Nishant Dande
Browse files

Added basic structure for local storage

parent 6a41fa87
Loading
Loading
Loading
Loading
Loading

modules/.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
/build
 No newline at end of file

modules/build.gradle

0 → 100644
+48 −0
Original line number Diff line number Diff line
plugins {
    id 'com.android.library'
    id 'org.jetbrains.kotlin.android'
}

ext {
    android_compile_sdk_version = 33
    android_target_sdk_version = 33
    core_version = '1.10.1'
}

android {
    namespace 'app.lounge'
    compileSdk android_compile_sdk_version

    defaultConfig {
        minSdk 24
        targetSdk android_target_sdk_version

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        consumerProguardFiles "consumer-rules.pro"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }
}

dependencies {

    implementation "androidx.core:core-ktx:$core_version"
    implementation 'androidx.appcompat:appcompat:1.6.1'

    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
    implementation "org.jetbrains.kotlin:kotlin-reflect:1.8.10"
}
 No newline at end of file
+0 −0

Empty file added.

+21 −0
Original line number Diff line number Diff line
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# 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
 No newline at end of file
+26 −0
Original line number Diff line number Diff line
package app.lounge

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import app.lounge.storage.cache.PersistedConfiguration

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
 * Instrumented test, which will execute on an Android device.
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {

    @Test
    fun useAppContext() {
        // Context of the app under test.
        val appContext = InstrumentationRegistry.getInstrumentation().targetContext
        assertEquals("app.lounge.test", appContext.packageName)
    }
}
 No newline at end of file
Loading