Skip to content

Commit 2b5d877

Browse files
committed
feat(bing-wallpaper): initial commit
0 parents  commit 2b5d877

43 files changed

Lines changed: 1489 additions & 0 deletions

Some content is hidden

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

.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
*.apk
2+
*.aar
3+
*.ap_
4+
*.aab
5+
*.dex
6+
*.log
7+
*.iml
8+
*.hprof
9+
10+
.externalNativeBuild
11+
.cxx/
12+
.idea/workspace.xml
13+
.idea/tasks.xml
14+
.idea/gradle.xml
15+
.idea/assetWizardSettings.xml
16+
.idea/dictionaries
17+
.idea/libraries
18+
.idea/caches
19+
.idea/modules.xml
20+
.idea/navEditor.xml
21+
.navigation/
22+
.gradle/
23+
24+
bin/
25+
gen/
26+
out/
27+
build/
28+
progruard/
29+
captures/
30+
lint/intermediates/
31+
lint/generated/
32+
lint/outputs/
33+
lint/tmp/
34+
app/identifiers.txt
35+
36+
local.properties
37+
vcs.xml

.idea/AndroidProjectSystem.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deploymentTargetSelector.xml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# bing-wallpaper
2+
3+
Fetches the Bing wallpaper of the day and sets it as your phone wallpaper.

app/build.gradle

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
plugins {
2+
id 'com.android.application'
3+
}
4+
5+
android {
6+
namespace 'com.mrepol742.bingwallpaper'
7+
compileSdk 36
8+
9+
defaultConfig {
10+
applicationId "com.mrepol742.bingwallpaper"
11+
minSdk 21
12+
targetSdk 36
13+
versionCode 1
14+
versionName "1.0"
15+
}
16+
17+
buildTypes {
18+
release {
19+
minifyEnabled false
20+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21+
}
22+
}
23+
24+
compileOptions {
25+
sourceCompatibility JavaVersion.VERSION_1_8
26+
targetCompatibility JavaVersion.VERSION_1_8
27+
}
28+
29+
lint {
30+
abortOnError false
31+
checkReleaseBuilds false
32+
}
33+
34+
buildFeatures {
35+
buildConfig true
36+
viewBinding false
37+
}
38+
39+
dependenciesInfo {
40+
includeInApk false
41+
includeInBundle false
42+
}
43+
}

app/proguard-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Add project specific ProGuard rules here.

app/src/main/AndroidManifest.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<uses-permission android:name="android.permission.INTERNET" />
5+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
6+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
7+
<!-- Needed on Android 12+ to schedule exact alarms for the update cycle -->
8+
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
9+
<uses-permission android:name="android.permission.SET_WALLPAPER" />
10+
<uses-permission android:name="android.permission.WAKE_LOCK" />
11+
<!-- Needed on Android 13+ to show the update notification -->
12+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
13+
14+
<application
15+
android:allowBackup="true"
16+
android:icon="@mipmap/ic_launcher"
17+
android:label="@string/app_name"
18+
android:theme="@style/AppTheme"
19+
android:usesCleartextTraffic="false">
20+
21+
<activity
22+
android:name=".MainActivity"
23+
android:exported="true">
24+
<intent-filter>
25+
<action android:name="android.intent.action.MAIN" />
26+
<category android:name="android.intent.category.LAUNCHER" />
27+
</intent-filter>
28+
</activity>
29+
30+
<activity
31+
android:name=".SettingsActivity"
32+
android:exported="false"
33+
android:label="@string/settings_title" />
34+
35+
<receiver
36+
android:name=".BootReceiver"
37+
android:exported="true">
38+
<intent-filter>
39+
<action android:name="android.intent.action.BOOT_COMPLETED" />
40+
</intent-filter>
41+
</receiver>
42+
43+
<receiver
44+
android:name=".WallpaperAlarmReceiver"
45+
android:exported="false" />
46+
47+
<service
48+
android:name=".WallpaperUpdateService"
49+
android:exported="false" />
50+
51+
</application>
52+
</manifest>

0 commit comments

Comments
 (0)