-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #374 from SuriyaaVijay/master
Added Weather App Java Android app
- Loading branch information
Showing
96 changed files
with
9,703 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+6.99 MB
...jects/Mobile Development/Android Application - Java/Weather Application/apk/app-debug.apk
Binary file not shown.
58 changes: 58 additions & 0 deletions
58
...ojects/Mobile Development/Android Application - Java/Weather Application/app/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
plugins { | ||
id 'com.android.application' | ||
} | ||
|
||
android { | ||
compileSdk 33 | ||
|
||
defaultConfig { | ||
applicationId "com.aniketjain.weatherapp" | ||
minSdk 19 | ||
targetSdk 33 | ||
versionCode 5 | ||
versionName "1.0.5" | ||
multiDexEnabled true | ||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled true | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
buildFeatures { viewBinding true } | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation 'androidx.appcompat:appcompat:1.6.1' | ||
implementation 'com.google.android.material:material:1.9.0' | ||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' | ||
testImplementation 'junit:junit:4.13.2' | ||
androidTestImplementation 'androidx.test.ext:junit:1.1.5' | ||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' | ||
|
||
//for getting json data | ||
implementation 'com.android.volley:volley:1.2.1' | ||
//location - lat, lon | ||
implementation 'com.google.android.gms:play-services-location:21.0.1' | ||
//custom toast | ||
implementation 'com.github.dev-aniketj:roasted-toast:1.0.2' | ||
//custom progress | ||
implementation 'com.github.ybq:Android-SpinKit:1.4.0' | ||
//swipe refresh | ||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' | ||
//App Auto Update Feature | ||
implementation 'com.google.android.play:core:1.10.3' | ||
//For Responsive screen size | ||
implementation 'com.intuit.sdp:sdp-android:1.1.0' | ||
//Lotti files | ||
implementation 'com.airbnb.android:lottie:5.2.0' | ||
// Multi Dex Enable | ||
implementation 'androidx.multidex:multidex:2.0.1' | ||
} |
21 changes: 21 additions & 0 deletions
21
.../Mobile Development/Android Application - Java/Weather Application/app/proguard-rules.pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 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 |
Binary file added
BIN
+4.25 MB
...le Development/Android Application - Java/Weather Application/app/release/app-release.aab
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
...plication/app/src/androidTest/java/com/aniketjain/weatherapp/ExampleInstrumentedTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.aniketjain.weatherapp; | ||
|
||
import android.content.Context; | ||
|
||
import androidx.test.platform.app.InstrumentationRegistry; | ||
import androidx.test.ext.junit.runners.AndroidJUnit4; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
*/ | ||
@RunWith(AndroidJUnit4.class) | ||
public class ExampleInstrumentedTest { | ||
@Test | ||
public void useAppContext() { | ||
// Context of the app under test. | ||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); | ||
assertEquals("com.aniketjain.weatherapp", appContext.getPackageName()); | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...velopment/Android Application - Java/Weather Application/app/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.aniketjain.weatherapp"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | ||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:hardwareAccelerated="true" | ||
android:icon="@mipmap/ic_main" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_main_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/Theme.WeatherApp"> | ||
<activity | ||
android:name=".SplashScreen" | ||
android:exported="true" | ||
android:screenOrientation="portrait" | ||
android:windowSoftInputMode="stateAlwaysHidden" | ||
tools:ignore="LockedOrientationActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".HomeActivity" | ||
android:exported="false" | ||
android:screenOrientation="portrait" | ||
android:windowSoftInputMode="stateAlwaysHidden" | ||
tools:ignore="LockedOrientationActivity" /> | ||
</application> | ||
|
||
</manifest> |
Binary file added
BIN
+67.7 KB
...d Application - Java/Weather Application/app/src/main/ic_launcher-playstore.png
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
BIN
+69.6 KB
...droid Application - Java/Weather Application/app/src/main/ic_main-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.