Skip to content

Commit e30d288

Browse files
committed
timerX
1 parent 617c044 commit e30d288

File tree

32 files changed

+109
-494
lines changed

32 files changed

+109
-494
lines changed

.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

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

.idea/other.xml

Lines changed: 0 additions & 329 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

LICENSE

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
MIT License
1+
Copyright 2024
22

3-
Copyright (c) 2024 TimerX
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
46

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
7+
http://www.apache.org/licenses/LICENSE-2.0
118

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

NOTICE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Apache CustomBadge
2+
Copyright 2024 The Apache Software Foundation
3+
4+
This product includes software developed at
5+
The Apache Software Foundation (http://www.apache.org/).

README.md

Lines changed: 49 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
1-
# Timer X
1+
# TimerX
22

3-
4-
![Library Logo](assets/timerxlogo.PNG)
5-
6-
## Overview
7-
8-
The **Timer X** library provides a collection of powerful and easy-to-use classes for managing time and performing various time-related operations such as countdown timers, formatting timestamps, and working with time zones. Whether you're building timers, formatting dates, or converting time between time zones, this library offers a simple and efficient solution for your time management needs.
9-
10-
## Demo
11-
12-
Here is a gif video that showcases the usage of this library in an Android project. The video covers how to implement timers, format time, and manage time zones effectively.
13-
14-
![Demo](assets/demo_timer_x.mp4)
15-
16-
## Installation
17-
18-
You can integrate this library into your Android project using Gradle:
19-
20-
dependencies {
21-
implementation 'com.example:mytimerx:1.0.0'
22-
}
3+
The **TimerX** library provides a collection of powerful and easy-to-use classes for managing time and performing various time-related operations such as countdown timers, formatting timestamps, and working with time zones. Whether you're building timers, formatting dates, or converting time between time zones, this library offers a simple and efficient solution for your time management needs.
234

245
## Features
256

@@ -36,9 +17,34 @@ implementation 'com.example:mytimerx:1.0.0'
3617
Convert time between different time zones seamlessly.
3718
- **Support for Multiple Time Formats**: Supports 12-hour and 24-hour time formats, along with customizable date and time formats.
3819

20+
## Step-by-Step Usage:
21+
22+
### 1. Dependency Addition
23+
24+
To use the TimerX, follow these steps to update your Gradle files.
25+
26+
#### Gradle Integration
3927

28+
##### Step A: Add Maven Repository
29+
In your **project-level** `build.gradle` or `settings.gradle` file, add the following repository:
4030

41-
## Getting Started
31+
```
32+
repositories {
33+
google()
34+
mavenCentral()
35+
maven { url "https://jitpack.io" }
36+
}
37+
```
38+
39+
### Step B: Add Dependencies
40+
41+
Include the TimerX library in your **app-level** `build.gradle` file. Replace `x.x.x` with the latest version:
42+
43+
```
44+
implementation 'com.github.hypersoftdev:TimerX:x.x.x'
45+
```
46+
47+
## Java/Kotlin Implementation
4248

4349
### **1. Simple Countdown Timer**
4450
```
@@ -122,14 +128,31 @@ Log.d("TIME_FORMAT", "Converted Time: $formattedMillis")
122128
- **isValidTimeFormat(time: String)**: Validates whether the provided time string matches the `HH:mm` format.
123129
124130
```
131+
## Demo
132+
133+
Here is a gif video that showcases the usage of this library in an Android project. The video covers how to implement timers, format time, and manage time zones effectively.
134+
135+
136+
# Acknowledgements
137+
138+
This work would not have been possible without the invaluable contributions of [Wajahat Ahmed](https://github.com/AghaTech883). His expertise, dedication, and unwavering support have been instrumental in bringing this project to fruition.
125139

126-
## Contributing
140+
![Profile](https://github.com/hypersoftdev/CyclicSeekbar/blob/master/screens/profile_image.jpg?raw=true)
127141

142+
We are deeply grateful for [Wajahat Ahmed](https://github.com/AghaTech883) involvement and his belief in the importance of this work. His contributions have made a significant impact, and we are honored to have had the opportunity to collaborate with him.
128143

129-
We welcome contributions to the TimerX project! Please review the [CONTRIBUTING](CONTRIBUTING.md) guide for instructions on how to get involved.
144+
# LICENSE
130145

146+
Copyright 2023 Hypersoft Inc
131147

148+
Licensed under the Apache License, Version 2.0 (the "License");
149+
you may not use this file except in compliance with the License.
150+
You may obtain a copy of the License at
132151

133-
## License
152+
http://www.apache.org/licenses/LICENSE-2.0
134153

135-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
154+
Unless required by applicable law or agreed to in writing, software
155+
distributed under the License is distributed on an "AS IS" BASIS,
156+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
157+
See the License for the specific language governing permissions and
158+
limitations under the License.

app/build.gradle.kts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ plugins {
44
}
55

66
android {
7-
namespace = "com.sample.example"
7+
namespace = "com.hypersoft.timer"
88
compileSdk = 34
99

1010
defaultConfig {
11-
applicationId = "com.sample.example"
11+
applicationId = "com.hypersoft.timer"
1212
minSdk = 24
1313
targetSdk = 34
1414
versionCode = 1
@@ -45,12 +45,9 @@ dependencies {
4545
implementation(libs.material)
4646
implementation(libs.androidx.activity)
4747
implementation(libs.androidx.constraintlayout)
48-
testImplementation(libs.junit)
49-
androidTestImplementation(libs.androidx.junit)
50-
androidTestImplementation(libs.androidx.espresso.core)
5148

5249
// timer X module
53-
implementation(project(":app:mytimerX"))
50+
implementation(project(":timerx"))
5451

5552
// Navigational Components
5653
implementation(libs.androidx.navigation.fragment.ktx)

app/mytimerX/src/androidTest/java/com/example/mytimerx/ExampleInstrumentedTest.kt

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/mytimerX/src/test/java/com/example/mytimerx/ExampleUnitTest.kt

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)