Skip to content

Commit ac8bce6

Browse files
AndroidDev-Auctionpurvesh-d
authored andcommitted
💥 UNT-T5677 Added various animation.
1 parent e9ba48a commit ac8bce6

Some content is hidden

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

43 files changed

+1519
-83
lines changed

Diff for: .gitignore

+72-83
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,74 @@
1-
# Built application files
2-
*.apk
3-
*.aar
4-
*.ap_
5-
*.aab
6-
7-
# Files for the ART/Dalvik VM
8-
*.dex
9-
10-
# Java class files
11-
*.class
12-
13-
# Generated files
14-
bin/
15-
gen/
16-
out/
17-
# Uncomment the following line in case you need and you don't have the release build type files in your app
18-
# release/
19-
20-
# Gradle files
21-
.gradle/
22-
build/
23-
24-
# Local configuration file (sdk path, etc)
25-
local.properties
26-
27-
# Proguard folder generated by Eclipse
28-
proguard/
29-
30-
# Log Files
31-
*.log
32-
33-
# Android Studio Navigation editor temp files
34-
.navigation/
35-
36-
# Android Studio captures folder
37-
captures/
38-
39-
# IntelliJ
401
*.iml
41-
.idea/workspace.xml
42-
.idea/tasks.xml
43-
.idea/gradle.xml
44-
.idea/assetWizardSettings.xml
45-
.idea/dictionaries
46-
.idea/libraries
47-
# Android Studio 3 in .gitignore file.
48-
.idea/caches
49-
.idea/modules.xml
50-
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
51-
.idea/navEditor.xml
52-
53-
# Keystore files
54-
# Uncomment the following lines if you do not want to check your keystore files in.
55-
#*.jks
56-
#*.keystore
57-
58-
# External native build folder generated in Android Studio 2.2 and later
2+
.gradle
3+
/.gradle/
4+
/local.properties
5+
/.idea/caches
6+
/.idea/codeStyles
7+
/.idea/inspectionProfiles
8+
/.idea/libraries
9+
/.idea/modules.xml
10+
/.idea/workspace.xml
11+
/.idea/compiler.xml
12+
/.idea/gradle.xml
13+
/.idea/jarRepositories.xml
14+
/.idea/misc.xml
15+
/.idea/vcs.xml
16+
/.idea/.name
17+
/.idea/navEditor.xml
18+
/.idea/assetWizardSettings.xml
19+
.DS_Store
20+
/build
21+
/*/build/
22+
/*/*/build
23+
/captures
5924
.externalNativeBuild
60-
.cxx/
61-
62-
# Google Services (e.g. APIs or Firebase)
63-
# google-services.json
64-
65-
# Freeline
66-
freeline.py
67-
freeline/
68-
freeline_project_description.json
69-
70-
# fastlane
71-
fastlane/report.xml
72-
fastlane/Preview.html
73-
fastlane/screenshots
74-
fastlane/test_output
75-
fastlane/readme.md
76-
77-
# Version control
78-
vcs.xml
79-
80-
# lint
81-
lint/intermediates/
82-
lint/generated/
83-
lint/outputs/
84-
lint/tmp/
85-
# lint/reports/
25+
.cxx
26+
github.properties
27+
28+
## FOLDERS
29+
/.sass-cache/
30+
/node_modules
31+
vendor/
32+
/.vscode/
33+
/logs
34+
/allure-results/
35+
36+
## FILES
37+
.DS_Store
38+
*.code-workspace
39+
# Custom environment for docker-compose (used by docker-compose.yml)
40+
/.env
41+
/tools/docker/compose-extras.yml
42+
/tools/docker/compose-volumes.yml
43+
/tools/docker/compose-volumes.built.yml
44+
# File for personal customiziations, if desired.
45+
/tools/docker/mu-plugins/0-sandbox.php
46+
.idea
47+
*.iml
48+
npm-debug.log
49+
*.unison.tmp
50+
.eslintcache
51+
.eslintignore-required
52+
.phpcs.xml
53+
.pnpm-debug.log
54+
phpcs.xml
55+
.phpunit.result.cache
56+
57+
## Things for docker-composer
58+
/tools/docker/data/*
59+
!/tools/docker/data/.gitkeep
60+
!/tools/docker/data/ssh.keys/
61+
/tools/docker/logs/*
62+
!/tools/docker/logs/.gitkeep
63+
# Custom environment for docker containers
64+
/tools/docker/.env
65+
/tools/docker/wordpress-develop/*
66+
!/tools/docker/wordpress-develop/.gitkeep
67+
/tools/docker/wordpress/*
68+
!/tools/docker/wordpress/.gitkeep
69+
70+
# Tunneling scripts
71+
/tools/jtuber.sh
72+
/tools/tunnel.sh
73+
/tools/jt/
74+
/tools/docker/bin/jt/

Diff for: app/build.gradle

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'kotlin-android'
4+
}
5+
6+
android {
7+
compileSdk 30
8+
buildToolsVersion "30.0.3"
9+
10+
defaultConfig {
11+
applicationId "com.simform.ssloadingbuttonandroid"
12+
minSdk 21
13+
targetSdk 30
14+
versionCode 1
15+
versionName "1.0"
16+
17+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18+
vectorDrawables {
19+
useSupportLibrary true
20+
}
21+
}
22+
23+
buildTypes {
24+
release {
25+
minifyEnabled false
26+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
27+
}
28+
}
29+
compileOptions {
30+
sourceCompatibility JavaVersion.VERSION_1_8
31+
targetCompatibility JavaVersion.VERSION_1_8
32+
}
33+
kotlinOptions {
34+
jvmTarget = '1.8'
35+
useIR = true
36+
}
37+
buildFeatures {
38+
compose true
39+
}
40+
composeOptions {
41+
kotlinCompilerExtensionVersion compose_version
42+
kotlinCompilerVersion '1.5.10'
43+
}
44+
}
45+
46+
dependencies {
47+
implementation 'androidx.core:core-ktx:1.5.0'
48+
implementation 'androidx.appcompat:appcompat:1.3.0'
49+
implementation 'com.google.android.material:material:1.3.0'
50+
implementation "androidx.compose.ui:ui:$compose_version"
51+
implementation "androidx.compose.material:material:$compose_version"
52+
implementation "androidx.compose.ui:ui-tooling:$compose_version"
53+
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0-alpha01'
54+
implementation 'androidx.activity:activity-compose:1.3.0-beta02'
55+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
56+
implementation "androidx.compose.runtime:runtime:1.0.0-beta09@aar"
57+
implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
58+
}

Diff for: app/proguard-rules.pro

+21
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

Diff for: app/src/main/AndroidManifest.xml

+25
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+
package="com.simform.ssloadingbuttonandroid">
4+
5+
<application
6+
android:allowBackup="true"
7+
android:icon="@mipmap/ic_launcher"
8+
android:label="@string/app_name"
9+
android:roundIcon="@mipmap/ic_launcher_round"
10+
android:supportsRtl="true"
11+
android:theme="@style/Theme.SSLoadingButtonAndroid">
12+
<activity
13+
android:name=".MainActivity"
14+
android:exported="true"
15+
android:label="@string/app_name"
16+
android:theme="@style/Theme.SSLoadingButtonAndroid.NoActionBar">
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>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.simform.ssloadingbuttonandroid
2+
3+
4+
enum class ButtonStateList {
5+
IDLE, LOADING, SUCCESS, FAILIURE
6+
}
7+
8+
enum class ButtonType {
9+
ROUNDED_PROGRESS, WHEEL, ZOOM_IN_OUT_PROGRESS, CLOCK, SPIRAL
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.simform.ssloadingbuttonandroid
2+
3+
import androidx.compose.runtime.Composable
4+
import androidx.compose.ui.tooling.preview.Preview
5+
6+
class JoinButton {
7+
@Composable
8+
fun JoinButton(onClick: (Boolean) -> Unit = {}) {
9+
10+
}
11+
12+
enum class JoinButtonState {
13+
IDLE,
14+
PRESSED
15+
}
16+
17+
@Preview
18+
@Composable
19+
fun JoinButtonPreview() {
20+
JoinButton(onClick = {})
21+
}
22+
23+
}

0 commit comments

Comments
 (0)