Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
Release: v2
Browse files Browse the repository at this point in the history
DawnImpulse committed Jul 15, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3e1605d commit f23c16a
Showing 27 changed files with 429 additions and 16 deletions.
8 changes: 8 additions & 0 deletions app/app.iml
Original file line number Diff line number Diff line change
@@ -131,10 +131,13 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/build-info" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/builds" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundle_dependency_report" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundle_manifest" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/check_manifest_result" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/compatible_screen_manifest" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/duplicate_classes_check" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/external_libs_dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-runtime-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-verifier" />
@@ -144,14 +147,18 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant_run_main_apk_resources" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant_run_merged_manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant_run_split_apk_resources" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/intermediary_bundle" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javac" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/linked_res_for_bundle" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint_jar" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifest-checker" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/merged_assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/merged_jni_libs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/merged_manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/merged_shaders" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/metadata_feature_manifest" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/metadata_library_dependencies_report" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/module_bundle" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/prebuild" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/processed_res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/reload-dex" />
@@ -165,6 +172,7 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/validate_signing_config" />
<excludeFolder url="file://$MODULE_DIR$/build/kotlin" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/reports" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 28 Platform" jdkType="Android SDK" />
21 changes: 14 additions & 7 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -13,9 +13,11 @@
<application
android:name=".App"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="Wallup"
android:largeHeap="true"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning,UnusedAttribute,MissingApplicationIcon">
@@ -50,13 +52,7 @@
<!--Homescreen-->
<activity
android:name=".ui.activities.HomescreenActivity"
android:theme="@style/AppTheme.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
android:theme="@style/AppTheme.Fullscreen" />

<!--Settings-->
<activity
@@ -83,6 +79,17 @@
<activity
android:name=".ui.activities.TagActivity"
android:theme="@style/AppTheme.Fullscreen" />

<!--Fullscreen activity-->
<activity
android:name=".ui.activities.SplashActivity"
android:theme="@style/AppTheme.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ import com.dawnimpulse.wallup.R
import com.dawnimpulse.wallup.utils.functions.F
import com.dawnimpulse.wallup.utils.functions.putAny
import com.dawnimpulse.wallup.utils.functions.remove
import com.dawnimpulse.wallup.utils.functions.toast
import com.dawnimpulse.wallup.utils.reusables.ANALYTICS
import com.dawnimpulse.wallup.utils.reusables.AUTO_WALLPAPER
import com.dawnimpulse.wallup.utils.reusables.CRASHLYTICS
@@ -58,9 +57,9 @@ class SettingsActivity : AppCompatActivity() {
setPreferencesFromResource(R.xml.preferences, rootKey)

// get preferences
wallStatus = findPreference("wallStatus")!!
wallInterval = findPreference("wallInterval")!!
wallWifi = findPreference("wallWifi")!!
//wallStatus = findPreference("wallStatus")!!
//wallInterval = findPreference("wallInterval")!!
//wallWifi = findPreference("wallWifi")!!
crashlytics = findPreference("crashlytics")!!
analytics = findPreference("analytics")!!
cache = findPreference("cache")!!
@@ -73,7 +72,7 @@ class SettingsActivity : AppCompatActivity() {
setCache()

// setting time interval

/*
val time = Prefs.getString("wallInterval", "1440")!!.toLong()
// interval naming
@@ -91,7 +90,7 @@ class SettingsActivity : AppCompatActivity() {
wallStatus.onPreferenceChangeListener = this
wallInterval.onPreferenceChangeListener = this
wallWifi.onPreferenceChangeListener = this
wallWifi.onPreferenceChangeListener = this*/

}

@@ -166,7 +165,6 @@ class SettingsActivity : AppCompatActivity() {
val isWifi = Prefs.getBoolean("wallWifi", true)


context!!.toast(time.toString())
val builder = Constraints.Builder()
.setRequiredNetworkType(if (isWifi) NetworkType.UNMETERED else NetworkType.CONNECTED)
.build()
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
ISC License
Copyright 2018-2019, Saksham (DawnImpulse)
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
OR PERFORMANCE OF THIS SOFTWARE.*/
package com.dawnimpulse.wallup.ui.activities

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.dawnimpulse.wallup.R
import com.dawnimpulse.wallup.utils.functions.openActivity
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch

/**
* @author Saksham
*
* @note Last Branch Update - master
* @note Created on 2019-07-15 by Saksham
*
* @note Updates :
*/
class SplashActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_splash)
}

override fun onResume() {
super.onResume()

GlobalScope.launch {
delay(2000)
openActivity(HomescreenActivity::class.java)
finish()
}
}
}
Binary file removed app/src/main/res/drawable/ic_dp.webp
Binary file not shown.
Binary file modified app/src/main/res/drawable/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions app/src/main/res/layout/activity_splash.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?><!--
ISC License
Copyright 2018-2019, Saksham (DawnImpulse)
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
OR PERFORMANCE OF THIS SOFTWARE.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.dawnimpulse.wallup.ui.activities.SplashActivity">

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black" />

<androidx.appcompat.widget.AppCompatImageView
android:layout_width="360dp"
android:layout_height="360dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:scaleType="centerCrop"
app:srcCompat="@drawable/ic_launcher" />
</RelativeLayout>
5 changes: 5 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
5 changes: 5 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Binary file added app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/src/main/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>
304 changes: 304 additions & 0 deletions app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,304 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<!--Auto Wallpaper-->
<!--<PreferenceCategory
android:title="Auto Wallpaper"
app:iconSpaceReserved="false">
&lt;!&ndash;Info&ndash;&gt;
<Preference
android:icon="@drawable/vd_info_black"
android:selectable="false"
android:summary="Allows to change android homescreen with random wallpaper automatically after a user provided interval."
app:allowDividerAbove="false"
app:allowDividerBelow="false" />
&lt;!&ndash;Status&ndash;&gt;
<SwitchPreference
android:defaultValue="false"
android:disableDependentsState="false"
android:key="wallStatus"
android:summaryOff="Service turned off"
android:summaryOn="Service working"
android:title="Status"
app:iconSpaceReserved="true" />
&lt;!&ndash;Interval&ndash;&gt;
<ListPreference
android:defaultValue="1440"
android:dependency="wallStatus"
android:dialogTitle="Select duration"
android:entries="@array/wallpaper_interval"
android:entryValues="@array/wallpaper_interval_values"
android:key="wallInterval"
android:summary="Change every 24 hours (tap to change)"
android:title="Wallpaper change interval"
app:iconSpaceReserved="true" />
&lt;!&ndash;Wifi&ndash;&gt;
<SwitchPreference
android:defaultValue="true"
android:dependency="wallStatus"
android:key="wallWifi"
android:summaryOff="Will use any network type to cache images for Auto Wallpaper"
android:summaryOn="Will use only WiFi to cache images for Auto Wallpaper"
android:title="Only WiFi"
app:iconSpaceReserved="true" />
&lt;!&ndash;Storage&ndash;&gt;
&lt;!&ndash;<SwitchPreference
android:defaultValue="false"
android:dependency="wallStatus"
android:key="wallStorage"
android:summaryOff="Not saving any wallpapers to storage"
android:summaryOn="Saving wallpapers to device storage"
android:title="Save Wallpaper" />&ndash;&gt;
&lt;!&ndash;<intent
android:action="android.intent.action.VIEW"
android:targetClass="com.package.name.ActivityName"
android:targetPackage="com.package.name" />&ndash;&gt;
</PreferenceCategory>-->

<!--Settings-->
<PreferenceCategory
android:title="Settings"
app:iconSpaceReserved="false">

<!--Download Quality-->
<!--<ListPreference
android:entries="@array/download_quality"
android:entryValues="@array/download_quality_values"
android:icon="@drawable/vd_download_black"
android:key="download"
android:persistent="false"
android:summary="Current is Ultra HD"
android:title="Download Quality" />-->

<!--Cache-->
<Preference
android:icon="@drawable/vd_image_off"
android:selectable="true"
android:key="cache"
android:title="Cache Size"/>

</PreferenceCategory>

<!--Services-->
<PreferenceCategory
android:title="Services"
app:iconSpaceReserved="false">

<!--Crashlytics-->
<SwitchPreference
android:defaultValue="true"
android:key="crashlytics"
android:summary="@string/crashlytics"
android:title="Crashlytics" />

<!--Analytics-->
<SwitchPreference
android:defaultValue="true"
android:key="analytics"
android:summary="@string/analytics"
android:title="Analytics" />
</PreferenceCategory>

<!--License-->
<PreferenceCategory
android:title="License"
app:iconSpaceReserved="false">

<!--Info-->
<Preference
android:icon="@drawable/vd_lib"
android:key="terms"
android:selectable="false"
android:summary="Various libraries &amp; icons used in this application with their license &amp; source links"
app:allowDividerAbove="false"
app:allowDividerBelow="false" />

<!--Libraries-->
<Preference
android:selectable="true"
android:summary="License for open source libraries used"
android:title="Libraries"
app:allowDividerAbove="false">

<intent
android:action="android.intent.action.VIEW"
android:data="https://wallup.sourcei.org/libraries" />
</Preference>

<!--Icons-->
<Preference
android:selectable="true"
android:summary="The application uses icons provided by open source community materialdesignicons.com"
android:title="Icons"
app:allowDividerAbove="false">

<intent
android:action="android.intent.action.VIEW"
android:data="https://materialdesignicons.com" />

</Preference>

<!--Cloudvry-->
<Preference
android:selectable="true"
android:summary="The application is powered by cloudvry.com . Cloudvry is cloud content delivery Platform as a Service aiming to reduce friction between development &amp; production. Visit cloudvry.com for more details."
android:title="Powered By"
app:allowDividerAbove="false">

<intent
android:action="android.intent.action.VIEW"
android:data="https://cloudvry.com" />

</Preference>

</PreferenceCategory>

<!--Developer-->
<PreferenceCategory
android:title="Developer"
app:iconSpaceReserved="false">

<!--Me-->
<Preference
android:icon="@drawable/vd_account"
android:summary="Hii, I'm Saksham a full stack engineer with expertise in nodejs, android and html/css. Love to contribute to open source and hope you leave a good feedback if you love this application. Thanks"
android:title="Saksham Khurana" />

<!--Github-->
<Preference
android:icon="@drawable/vd_github"
android:selectable="true"
android:summary="View my open sourced projects"
android:title="Github">

<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/dawnimpulse" />
</Preference>

<!--Twitter-->
<Preference
android:icon="@drawable/vd_twitter"
android:selectable="true"
android:summary="Follow me / Get in touch"
android:title="Twitter">

<intent
android:action="android.intent.action.VIEW"
android:data="https://twitter.com/dawnimpulse" />
</Preference>

<!--Play Store-->
<!--<Preference
android:icon="@drawable/vd_play"
android:selectable="true"
android:summary="View other apps"
android:title="Twitter">
<intent
android:action="android.intent.action.VIEW"
android:data="" />
</Preference>-->

<!--Rate on Play-->
<Preference
android:icon="@drawable/vd_star_face"
android:selectable="true"
android:title="Give the application a positive feedback on play store">

<intent
android:action="android.intent.action.VIEW"
android:data="https://play.google.com/store/apps/details?id=com.dawnimpulse.wallup" />
</Preference>

</PreferenceCategory>

<!--Help-->
<PreferenceCategory
android:title="Help"
app:iconSpaceReserved="false">

<!--Previous-->
<Preference
android:icon="@drawable/vd_previous"
android:selectable="true"
android:summary="Looking for Wallup's v1 , you can still install it &amp; keep both apps side-by-side. Tap here to visit apk download page."
android:title="Wallup v1"
app:allowDividerAbove="false"
app:allowDividerBelow="false">

<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/DawnImpulse/wallup-android-deprecated" />
</Preference>

<!--Privacy-->
<Preference
android:icon="@drawable/vd_privacy"
android:key="privacy"
android:selectable="true"
android:summary="Review our app privacy policy"
android:title="Privacy"
app:allowDividerAbove="false"
app:allowDividerBelow="false">

<intent
android:action="android.intent.action.VIEW"
android:data="https://wallup.sourcei.org/privacy" />
</Preference>

<!--Tnc-->
<Preference
android:icon="@drawable/vd_terms"
android:key="terms"
android:selectable="true"
android:summary="Terms for app usage"
android:title="Terms &amp; Conditions"
app:allowDividerAbove="false"
app:allowDividerBelow="false">

<intent
android:action="android.intent.action.VIEW"
android:data="https://wallup.sourcei.org/tnc" />
</Preference>

<!--Contact-->
<Preference
android:icon="@drawable/vd_agent"
android:key="contact"
android:selectable="true"
android:summary="For any issue / suggestion send us a mail on dawnimpulse@gmail.com"
android:title="Contact"
app:allowDividerAbove="false"
app:allowDividerBelow="false">

<intent
android:action="android.intent.action.VIEW"
android:data="mailto:dawnimpulse@gmail.com">
<extra
android:name="android.intent.extra.TEXT"
android:value="What can I help you with?" />
<extra
android:name="android.intent.extra.SUBJECT"
android:value="Bug/Feedback for WallUp" />
</intent>

</Preference>

<!--Version-->
<Preference
android:key="version"
android:selectable="false"
android:title="Application Version"
app:allowDividerAbove="false"
app:allowDividerBelow="false" />
</PreferenceCategory>
</PreferenceScreen>
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@

buildscript {
ext.kotlin_version = '1.3.41'
ext.version_code = 13
ext.version_name = "2.0.0"
ext.version_code = 14
ext.version_name = "2.0.1"
repositories {
google()
jcenter()

0 comments on commit f23c16a

Please sign in to comment.