Skip to content

Commit

Permalink
feat: modularizing
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyMuse committed May 26, 2021
1 parent 2919ad2 commit 5728f5f
Show file tree
Hide file tree
Showing 137 changed files with 3,042 additions and 2,283 deletions.
2 changes: 1 addition & 1 deletion accesssibility/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dependencies {
implementation 'androidx.core:core-ktx:1.5.0'
implementation "androidx.core:core-ktx:$coreKTX"
}
1 change: 1 addition & 0 deletions activity/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
27 changes: 27 additions & 0 deletions activity/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Activity

[![](https://jitpack.io/v/FunkyMuse/KAHelpers.svg)](https://jitpack.io/#FunkyMuse/KAHelpers)


## Usage
1. Add JitPack to your project build.gradle

```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```

2. Add the dependency in the application build.gradle

```gradle
dependencies {
implementation "com.github.FunkyMuse.KAHelpers:activity:$utilsVersion"
}
```

6 changes: 6 additions & 0 deletions activity/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies {
implementation "androidx.activity:activity-ktx:$activity"
implementation "androidx.appcompat:appcompat:$appCompat"
implementation project(path: ':common')

}
Empty file added activity/consumer-rules.pro
Empty file.
21 changes: 21 additions & 0 deletions activity/proguard-rules.pro
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,24 @@
package com.crazylegend.activity

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.crazylegend.activity.test", appContext.packageName)
}
}
5 changes: 5 additions & 0 deletions activity/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.crazylegend.activity">

</manifest>
Loading

0 comments on commit 5728f5f

Please sign in to comment.