Skip to content

Commit 73938d9

Browse files
author
LeanBitLab
committed
Initial commit: Lwidget v1.0
0 parents  commit 73938d9

40 files changed

Lines changed: 2153 additions & 0 deletions

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Gradle files
2+
.gradle/
3+
build/
4+
5+
# Local configuration file (sdk user, etc)
6+
local.properties
7+
8+
# Secrets and Keys
9+
*.jks
10+
keystore.properties
11+
12+
# Log files
13+
*.log
14+
build_log.txt
15+
widget_logs.txt
16+
17+
# IntelliJ / Android Studio
18+
.idea/
19+
*.iml
20+
*.iws
21+
*.ipr
22+
.vscode/
23+
24+
# Build artifacts
25+
*.apk
26+
*.ap_
27+
*.aab
28+
29+
# OS specific
30+
.DS_Store
31+
Thumbs.db
32+
33+
# Private Docs
34+
Pdoc/

LICENSE

Lines changed: 675 additions & 0 deletions
Large diffs are not rendered by default.

app/build.gradle.kts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// app/build.gradle.kts
2+
import java.util.Properties
3+
4+
plugins {
5+
id("com.android.application")
6+
id("org.jetbrains.kotlin.android")
7+
}
8+
9+
android {
10+
namespace = "com.leanbitlab.lwidget"
11+
compileSdk = 34
12+
13+
defaultConfig {
14+
applicationId = "com.leanbitlab.lwidget"
15+
minSdk = 26
16+
targetSdk = 34
17+
versionCode = 1
18+
versionName = "1.0"
19+
}
20+
21+
signingConfigs {
22+
create("release") {
23+
val keystorePropertiesFile = rootProject.file("keystore.properties")
24+
val keystoreProperties = Properties().apply {
25+
load(keystorePropertiesFile.inputStream())
26+
}
27+
28+
storeFile = file(keystoreProperties.getProperty("storeFile"))
29+
storePassword = keystoreProperties.getProperty("storePassword")
30+
keyAlias = keystoreProperties.getProperty("keyAlias")
31+
keyPassword = keystoreProperties.getProperty("keyPassword")
32+
}
33+
}
34+
35+
buildTypes {
36+
release {
37+
isMinifyEnabled = true
38+
isShrinkResources = true
39+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
40+
signingConfig = signingConfigs.getByName("release")
41+
}
42+
}
43+
compileOptions {
44+
sourceCompatibility = JavaVersion.VERSION_17
45+
targetCompatibility = JavaVersion.VERSION_17
46+
}
47+
kotlinOptions {
48+
jvmTarget = "17"
49+
}
50+
}
51+
52+
dependencies {
53+
implementation("androidx.core:core-ktx:1.12.0")
54+
implementation("androidx.appcompat:appcompat:1.6.1")
55+
implementation("com.google.android.material:material:1.11.0")
56+
}

app/proguard-rules.pro

Whitespace-only changes.

app/src/main/AndroidManifest.xml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools">
3+
4+
<uses-permission android:name="android.permission.ALARM_LISTENER" />
5+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
6+
<uses-permission android:name="android.permission.READ_CALENDAR" />
7+
8+
<!-- Required for Android 11+ (API 30) to see these packages -->
9+
<queries>
10+
<!-- Clock Apps -->
11+
<package android:name="com.android.deskclock" />
12+
<package android:name="com.google.android.deskclock" />
13+
<package android:name="com.simplemobiletools.clock" />
14+
<package android:name="org.fossify.clock" />
15+
16+
<!-- Calendar Apps -->
17+
<package android:name="com.android.calendar" />
18+
<package android:name="com.google.android.calendar" />
19+
<package android:name="com.simplemobiletools.calendar" />
20+
<package android:name="org.fossify.calendar" />
21+
<intent>
22+
<action android:name="android.intent.action.MAIN" />
23+
<category android:name="android.intent.category.APP_CALENDAR" />
24+
</intent>
25+
<intent>
26+
<action android:name="android.intent.action.SHOW_ALARMS" />
27+
</intent>
28+
</queries>
29+
30+
<application
31+
android:allowBackup="true"
32+
android:icon="@mipmap/ic_launcher"
33+
android:label="@string/app_name"
34+
android:roundIcon="@mipmap/ic_launcher_round"
35+
android:supportsRtl="true"
36+
android:theme="@style/Theme.Lwidget">
37+
38+
<activity
39+
android:name=".MainActivity"
40+
android:exported="true"
41+
android:theme="@style/Theme.Lwidget">
42+
<intent-filter>
43+
<action android:name="android.intent.action.MAIN" />
44+
<category android:name="android.intent.category.LAUNCHER" />
45+
</intent-filter>
46+
</activity>
47+
48+
<receiver android:name=".AwidgetProvider"
49+
android:exported="true">
50+
<intent-filter>
51+
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
52+
<action android:name="com.leanbitlab.lwidget.ACTION_BATTERY_UPDATE" />
53+
</intent-filter>
54+
<meta-data
55+
android:name="android.appwidget.provider"
56+
android:resource="@xml/awidget_info" />
57+
</receiver>
58+
59+
</application>
60+
61+
</manifest>

0 commit comments

Comments
 (0)