Skip to content

Commit 442add5

Browse files
committed
update
1 parent 516e1a0 commit 442add5

File tree

218 files changed

+8441
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+8441
-0
lines changed

examples/boolean/.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx
15+
local.properties

examples/boolean/app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
plugins {
2+
alias(libs.plugins.android.application)
3+
}
4+
5+
android {
6+
namespace = "com.after_project.datastorejava.boolean1"
7+
compileSdk = 36
8+
9+
defaultConfig {
10+
applicationId = "com.after_project.datastorejava.boolean1"
11+
minSdk = 24
12+
targetSdk = 36
13+
versionCode = 1
14+
versionName = "1.0"
15+
16+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
17+
}
18+
19+
buildTypes {
20+
release {
21+
isMinifyEnabled = false
22+
proguardFiles(
23+
getDefaultProguardFile("proguard-android-optimize.txt"),
24+
"proguard-rules.pro"
25+
)
26+
}
27+
}
28+
compileOptions {
29+
sourceCompatibility = JavaVersion.VERSION_11
30+
targetCompatibility = JavaVersion.VERSION_11
31+
}
32+
buildToolsVersion = "36.0.0"
33+
}
34+
35+
dependencies {
36+
37+
implementation(libs.appcompat)
38+
implementation(libs.material)
39+
implementation(libs.activity)
40+
implementation(libs.constraintlayout)
41+
testImplementation(libs.junit)
42+
androidTestImplementation(libs.ext.junit)
43+
androidTestImplementation(libs.espresso.core)
44+
45+
// Preferences DataStore (SharedPreferences like APIs)
46+
// dependencies {
47+
implementation("androidx.datastore:datastore-preferences:1.1.7")
48+
49+
// optional - RxJava2 support
50+
implementation("androidx.datastore:datastore-preferences-rxjava2:1.1.7")
51+
52+
// optional - RxJava3 support
53+
implementation("androidx.datastore:datastore-preferences-rxjava3:1.1.7")
54+
// var annotationProcessor = libs.room.compiler
55+
// }
56+
57+
// var room_version = "2.6.1"
58+
59+
implementation("androidx.room:room-runtime:2.7.1")
60+
annotationProcessor("androidx.room:room-compiler:2.7.1")
61+
62+
// optional - RxJava2 support for Room
63+
implementation("androidx.room:room-rxjava2:2.7.1")
64+
65+
// optional - RxJava3 support for Room
66+
implementation("androidx.room:room-rxjava3:2.7.1")
67+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools">
4+
5+
<application
6+
android:allowBackup="true"
7+
android:dataExtractionRules="@xml/data_extraction_rules"
8+
android:fullBackupContent="@xml/backup_rules"
9+
android:icon="@mipmap/ic_launcher"
10+
android:label="@string/app_name"
11+
android:roundIcon="@mipmap/ic_launcher_round"
12+
android:supportsRtl="true"
13+
android:theme="@style/Theme.DataStoreJava">
14+
<activity
15+
android:name=".MainActivity"
16+
android:exported="true">
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN" />
19+
20+
<category android:name="android.intent.category.LAUNCHER" />
21+
</intent-filter>
22+
</activity>
23+
</application>
24+
25+
</manifest>

0 commit comments

Comments
 (0)