Skip to content

Commit

Permalink
refactor: migrate to new package name and ktx
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyMuse committed Jan 18, 2024
1 parent 4ea491e commit 2fcb46d
Show file tree
Hide file tree
Showing 663 changed files with 3,170 additions and 3,942 deletions.
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
*.iml
.gradle
/local.properties
.idea
/.idea/caches
/.idea/libraries
/.idea/gradle.xml
/.idea/kotlinc.xml
/.idea/misc.xml
/.idea/inspectionProfiles
/.idea/modules.xml
/.idea/compiler.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
**/build
/captures
.externalNativeBuild
.cxx
local.properties
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 CraZyLegenD
Copyright (c) 2020 funkymuse

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
### Android extensions and helper classes for easier Kotlin development

[![](https://jitpack.io/v/FunkyMuse/KAHelpers.svg)](https://jitpack.io/#FunkyMuse/KAHelpers)
[![Kotlin](https://img.shields.io/badge/Kotlin-1.9.0-blue.svg)](https://kotlinlang.org) [![Platform](https://img.shields.io/badge/Platform-Android-green.svg)](https://developer.android.com/guide/) [![sad](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)]( https://twitter.com/intent/tweet?url=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Fhttps%3A%2F%2Fgithub.com%2FCraZyLegenD%2FSet-Of-Useful-Kotlin-Extensions-and-Helpers&text=Kotlin%20Extensions%20and%20Class%20Helpers)
[![Kotlin](https://img.shields.io/badge/Kotlin-1.9.0-blue.svg)](https://kotlinlang.org) [![Platform](https://img.shields.io/badge/Platform-Android-green.svg)](https://developer.android.com/guide/) [![sad](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)]( https://twitter.com/intent/tweet?url=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Fhttps%3A%2F%2Fgithub.com%2Ffunkymuse%2FSet-Of-Useful-Kotlin-Extensions-and-Helpers&text=Kotlin%20Extensions%20and%20Class%20Helpers)
![API](https://img.shields.io/badge/Min%20API-23-green)
![API](https://img.shields.io/badge/Compiled%20API-33-green)

Expand Down
7 changes: 0 additions & 7 deletions accessibility/build.gradle

This file was deleted.

6 changes: 6 additions & 0 deletions accessibility/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
plugins {
id(libs.plugins.convention.library.get().pluginId)
}
dependencies {
implementation(libs.androidx.core.ktx)
}

This file was deleted.

2 changes: 1 addition & 1 deletion accessibility/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>

</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.crazylegend.accessibility
package com.funkymuse.accessibility

import android.accessibilityservice.AccessibilityService
import android.content.ComponentName
Expand All @@ -11,10 +11,6 @@ import android.view.accessibility.AccessibilityNodeInfo
import androidx.core.content.getSystemService
import androidx.core.os.bundleOf

/**
* Created by crazy on 10/20/20 to long live and prosper !
*/

/**
* Based on {@link com.android.settingslib.accessibility.AccessibilityUtils#getEnabledServicesFromSettings(Context,int)}
* @see <a href="https://github.com/android/platform_frameworks_base/blob/d48e0d44f6676de6fd54fd8a017332edd6a9f096/packages/SettingsLib/src/com/android/settingslib/accessibility/AccessibilityUtils.java#L55">AccessibilityUtils</a>
Expand Down Expand Up @@ -65,6 +61,6 @@ fun logViewHierarchy(nodeInfo: AccessibilityNodeInfo, depth: Int = 0,
callback(spacerString, nodeInfo)

for (i in 0 until nodeInfo.childCount) {
logViewHierarchy(nodeInfo.getChild(i), depth + 1, callback)
com.funkymuse.accessibility.logViewHierarchy(nodeInfo.getChild(i), depth + 1, callback)
}
}

This file was deleted.

10 changes: 0 additions & 10 deletions activity/build.gradle

This file was deleted.

8 changes: 8 additions & 0 deletions activity/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
id(libs.plugins.convention.library.get().pluginId)
}
dependencies {
implementation(libs.androidx.activity.ktx)
implementation(libs.androidx.appcompat)
implementation(projects.common)
}

This file was deleted.

2 changes: 1 addition & 1 deletion activity/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>

</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.crazylegend.activity
package com.funkymuse.activity

import android.Manifest.permission.WRITE_SETTINGS
import android.annotation.SuppressLint
Expand All @@ -11,18 +11,31 @@ import android.content.ContextWrapper
import android.content.Intent
import android.content.pm.ActivityInfo
import android.content.res.Configuration
import android.graphics.*
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Point
import android.graphics.Rect
import android.graphics.drawable.ColorDrawable
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.provider.Settings
import android.util.DisplayMetrics
import android.view.*
import android.view.PixelCopy
import android.view.View
import android.view.View.GONE
import android.view.Window
import android.view.WindowManager
import android.view.inputmethod.InputMethodManager
import androidx.annotation.*
import androidx.annotation.ColorInt
import androidx.annotation.DrawableRes
import androidx.annotation.RequiresApi
import androidx.annotation.RequiresPermission
import androidx.annotation.StringRes
import androidx.annotation.UiThread
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.content.res.AppCompatResources
Expand All @@ -32,10 +45,6 @@ import androidx.core.content.getSystemService
import androidx.fragment.app.FragmentActivity


/**
* Created by hristijan on 2/22/19 to long live and prosper !
*/

/**
* Hide keyboard for an activity.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.crazylegend.activity
package com.funkymuse.activity

import android.app.Activity
import android.content.Context
Expand All @@ -15,9 +15,7 @@ import androidx.annotation.DrawableRes
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.FragmentActivity

/**
* Created by crazy on 9/7/20 to long live and prosper !
*/


fun AppCompatActivity.showBackButton() {
this.supportActionBar?.setDisplayHomeAsUpEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.crazylegend.activity
package com.funkymuse.activity

import android.annotation.SuppressLint
import android.app.Activity
Expand All @@ -11,9 +11,7 @@ import android.view.View
import android.view.WindowManager


/**
* Created by hristijan on 3/29/19 to long live and prosper !
*/


fun Activity.enableImmersiveMode() {
val window = window
Expand Down
17 changes: 0 additions & 17 deletions activity/src/test/java/com/crazylegend/activity/ExampleUnitTest.kt

This file was deleted.

12 changes: 0 additions & 12 deletions animations/build.gradle

This file was deleted.

11 changes: 11 additions & 0 deletions animations/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins {
id(libs.plugins.convention.library.get().pluginId)
}

dependencies {
implementation(projects.view)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.interpolator)
implementation(libs.androidx.transition)
implementation(libs.androidx.recyclerview)
}

This file was deleted.

2 changes: 1 addition & 1 deletion animations/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>

</manifest>
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.crazylegend.animations
package com.funkymuse.animations

import android.animation.AnimatorSet
import android.animation.TimeInterpolator
import android.view.animation.AccelerateInterpolator


/**
* Created by hristijan on 10/7/19 to long live and prosper !
*/


const val ANIM_translationY_CONST = "translationY"
const val ANIM_translationX_CONST = "translationX"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.crazylegend.animations
package com.funkymuse.animations

import android.animation.Animator
import android.animation.AnimatorListenerAdapter
Expand All @@ -16,12 +16,10 @@ import androidx.annotation.ColorRes
import androidx.interpolator.view.animation.FastOutLinearInInterpolator
import androidx.interpolator.view.animation.FastOutSlowInInterpolator
import androidx.interpolator.view.animation.LinearOutSlowInInterpolator
import com.crazylegend.view.dp
import com.funkymuse.view.dp
import kotlin.math.hypot

/**
* Created by crazy on 1/16/20 to long live and prosper !
*/

object AnimationConstants {
const val LICKETY_SPLIT = 150L
const val SHORT = 250L
Expand Down
Loading

0 comments on commit 2fcb46d

Please sign in to comment.