-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Tue May 09 15:02:01 PKT 2023 | ||
gradle.version=8.0 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[](https://jitpack.io/#epegasus/PegasusUtils) | ||
# Pegasus-Utils | ||
|
||
Android Util classes | ||
|
||
This library contains numerous functions and extension functions designed to accelerate the coding process, and it will continue to expand with additional functions over time. | ||
|
||
## Getting Started | ||
|
||
### Step 1 | ||
|
||
Add maven repository in project level build.gradle or in latest project setting.gradle file | ||
``` | ||
repositories { | ||
google() | ||
mavenCentral() | ||
maven { url "https://jitpack.io" } | ||
} | ||
``` | ||
|
||
### Step 2 | ||
|
||
Add inappbilling dependencies in App level build.gradle. | ||
``` | ||
dependencies { | ||
implementation 'com.github.epegasus:PegasusUtils:1.0.0' | ||
} | ||
``` | ||
|
||
### Features | ||
|
||
1) PegasusBitmapUtils (bitmap utils) | ||
2) PegasusFileUtils (file utils) | ||
3) PegasusDateUtils (formating dates) | ||
4) PegasusHelperUtils (helpers) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
plugins { | ||
id 'com.android.application' | ||
id 'org.jetbrains.kotlin.android' | ||
id 'kotlin-kapt' | ||
} | ||
|
||
android { | ||
namespace 'dev.pegasus.utils.sample' | ||
compileSdk 33 | ||
|
||
defaultConfig { | ||
applicationId "dev.pegasus.utils.sample" | ||
minSdk 23 | ||
targetSdk 33 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_17 | ||
targetCompatibility JavaVersion.VERSION_17 | ||
} | ||
kotlinOptions { | ||
jvmTarget = '17' | ||
} | ||
buildFeatures { | ||
viewBinding true | ||
dataBinding true | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation project(path: ':pegutils') | ||
|
||
implementation 'androidx.core:core-ktx:1.10.0' | ||
implementation 'androidx.appcompat:appcompat:1.6.1' | ||
implementation 'com.google.android.material:material:1.8.0' | ||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' | ||
|
||
} |
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:dataExtractionRules="@xml/data_extraction_rules" | ||
android:fullBackupContent="@xml/backup_rules" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/Theme.PegasusUtils" | ||
tools:targetApi="31"> | ||
<activity | ||
android:name=".activity.BitmapActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".activity.DateActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".activity.FileActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".MainActivity" | ||
android:exported="true"> | ||
<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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package dev.pegasus.utils.sample | ||
|
||
import android.content.Intent | ||
import android.os.Bundle | ||
import androidx.appcompat.app.AppCompatActivity | ||
import dev.pegasus.utils.sample.activity.BitmapActivity | ||
import dev.pegasus.utils.sample.activity.DateActivity | ||
import dev.pegasus.utils.sample.activity.FileActivity | ||
import dev.pegasus.utils.sample.databinding.ActivityMainBinding | ||
|
||
class MainActivity : AppCompatActivity() { | ||
|
||
private val binding by lazy { ActivityMainBinding.inflate(layoutInflater) } | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(binding.root) | ||
|
||
binding.mbBitmapMain.setOnClickListener { startActivity(Intent(this, BitmapActivity::class.java)) } | ||
binding.mbDateMain.setOnClickListener { startActivity(Intent(this, DateActivity::class.java)) } | ||
binding.mbFileMain.setOnClickListener { startActivity(Intent(this, FileActivity::class.java)) } | ||
} | ||
} |