Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Add mirror for maven repository:
repositories {
//...
maven {
url = uri("https://effective-android.bytesafe.dev/maven/drawer/")
url = uri("https://repsy.io/mvn/effective/compose-debug-drawer/")
}
}
```
Expand All @@ -20,9 +20,9 @@ Add dependencies to `build.gradle.kts` of app:

```kotlin
dependencies{
debugImplementation("effective.band:drawer:$version")
debugImplementation("effective.band:drawer-modules:$version")
debugImplementation("effective.band:drawer-location:$version")
debugImplementation("band.effective:drawer:$version")
debugImplementation("band.effective:drawer-modules:$version")
debugImplementation("band.effective:drawer-location:$version")
}
```

Expand Down Expand Up @@ -282,7 +282,7 @@ DebugDrawerLayout(

Add publish credentials to `local.properties`:
```properties
myMavenRepoWriteUrl=https://effective-android.bytesafe.dev/maven/drawer/
myMavenRepoWriteUrl=https://repsy.io/mvn/effective/compose-debug-drawer/
username=username
password=password
```
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ android {
}

dependencies {
debugImplementation("effective.band:drawer-base:1.0.0")
debugImplementation("effective.band:drawer-modules:1.0.0")
debugImplementation("effective.band:drawer-location:1.0.0")
debugImplementation("band.effective:drawer-base:1.0.0")
debugImplementation("band.effective:drawer-modules:1.0.0")
debugImplementation("band.effective:drawer-location:1.0.0")

implementation(libs.androidx.compose.activity)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package effective.band.compose.drawer
package band.effective.compose.drawer

import android.app.Application
import effective.band.compose.drawer_modules.okhttp.HttpLogger
import effective.band.compose.drawer_modules.retrofit.DebugRetrofitConfig
import effective.band.compose.drawer_modules.retrofit.Endpoint
import band.effective.compose.drawer.network.GamesApi
import band.effective.compose.drawer.network.HttpConfiguration
import band.effective.compose.drawer.network.HttpConfiguration.API_URL
import band.effective.compose.drawer_modules.okhttp.HttpLogger
import band.effective.compose.drawer_modules.retrofit.DebugRetrofitConfig
import band.effective.compose.drawer_modules.retrofit.Endpoint
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import effective.band.compose.drawer.network.GamesApi
import effective.band.compose.drawer.network.HttpConfiguration
import effective.band.compose.drawer.network.HttpConfiguration.API_URL
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory
import retrofit2.mock.MockRetrofit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.compose.drawer
package band.effective.compose.drawer

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
Expand All @@ -8,23 +8,27 @@ import androidx.compose.material.LocalContentAlpha
import androidx.compose.material.MaterialTheme
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Settings
import androidx.compose.runtime.*
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.unit.dp
import band.effective.compose.drawer_modules.BuildModule
import band.effective.compose.drawer_modules.DeviceModule
import band.effective.compose.drawer_modules.design.DebugGridLayer
import band.effective.compose.drawer_modules.design.DebugGridStateConfig
import band.effective.compose.drawer_modules.design.DesignModule
import band.effective.compose.drawer_modules.leak.LeakCanaryModule
import band.effective.compose.drawer_modules.okhttp.OkHttpLoggerModule
import band.effective.compose.drawer_modules.retrofit.RetrofitModule
import band.effective.drawer_base.ActionsModule
import band.effective.drawer_base.DebugDrawerLayout
import band.effective.drawer_base.actions.ButtonAction
import band.effective.drawer_base.actions.SwitchAction
import band.effective.drawer_location.LocationModule
import effective.band.compose.drawer_modules.BuildModule
import effective.band.compose.drawer_modules.DeviceModule
import effective.band.compose.drawer_modules.design.DebugGridLayer
import effective.band.compose.drawer_modules.design.DebugGridStateConfig
import effective.band.compose.drawer_modules.design.DesignModule
import effective.band.compose.drawer_modules.leak.LeakCanaryModule
import effective.band.compose.drawer_modules.okhttp.OkHttpLoggerModule
import effective.band.compose.drawer_modules.retrofit.RetrofitModule
import effective.band.drawer_base.ActionsModule
import effective.band.drawer_base.DebugDrawerLayout
import effective.band.drawer_base.actions.ButtonAction
import effective.band.drawer_base.actions.SwitchAction

@Composable
fun ConfigureScreen(bodyContent: @Composable (isDrawerOpen: Boolean) -> Unit) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package effective.band.compose.drawer
package band.effective.compose.drawer

import effective.band.compose.drawer.domain.Game
import effective.band.compose.drawer.domain.GamesResponse
import effective.band.compose.drawer.domain.Image
import effective.band.compose.drawer.domain.Platform
import effective.band.compose.drawer.network.GamesApi
import band.effective.compose.drawer.domain.Game
import band.effective.compose.drawer.domain.GamesResponse
import band.effective.compose.drawer.domain.Image
import band.effective.compose.drawer.domain.Platform
import band.effective.compose.drawer.network.GamesApi
import retrofit2.mock.BehaviorDelegate
import retrofit2.mock.MockRetrofit

Expand Down
6 changes: 3 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="effective.band.compose.drawer">
package="band.effective.compose.drawer">

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
Expand All @@ -11,9 +11,9 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:name=".DrawerApplication">
android:name="band.effective.compose.drawer.DrawerApplication">
<activity
android:name=".MainActivity"
android:name="band.effective.compose.drawer.MainActivity"
android:exported="true"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.compose.drawer
package band.effective.compose.drawer

import android.app.Application
import timber.log.Timber
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.compose.drawer
package band.effective.compose.drawer

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
Expand All @@ -24,10 +24,10 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import band.effective.compose.drawer.domain.Game
import coil.compose.AsyncImage
import com.google.accompanist.swiperefresh.SwipeRefresh
import com.google.accompanist.swiperefresh.rememberSwipeRefreshState
import effective.band.compose.drawer.domain.Game

@Composable
fun GamesScreen() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package effective.band.compose.drawer
package band.effective.compose.drawer

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import effective.band.compose.drawer.domain.Game
import effective.band.compose.drawer.domain.GamesResponse
import effective.band.compose.drawer.network.GamesApi
import band.effective.compose.drawer.AppConfiguration
import band.effective.compose.drawer.domain.Game
import band.effective.compose.drawer.domain.GamesResponse
import band.effective.compose.drawer.network.GamesApi
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package effective.band.compose.drawer
package band.effective.compose.drawer

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import effective.band.compose.drawer.ui.ComposeDrawerTheme
import band.effective.compose.drawer.ui.ComposeDrawerTheme

class MainActivity : ComponentActivity() {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.compose.drawer.domain
package band.effective.compose.drawer.domain

data class GamesResponse(val results: List<Game>)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package effective.band.compose.drawer.network
package band.effective.compose.drawer.network

import effective.band.compose.drawer.domain.GamesResponse
import band.effective.compose.drawer.domain.GamesResponse
import retrofit2.http.GET

interface GamesApi {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.compose.drawer.network
package band.effective.compose.drawer.network

import okhttp3.HttpUrl
import okhttp3.Interceptor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.compose.drawer.ui
package band.effective.compose.drawer.ui

import androidx.compose.ui.graphics.Color

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.compose.drawer.ui
package band.effective.compose.drawer.ui

import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Shapes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.compose.drawer.ui
package band.effective.compose.drawer.ui

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.compose.drawer.ui
package band.effective.compose.drawer.ui

import androidx.compose.material.Typography
import androidx.compose.ui.text.TextStyle
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package effective.band.compose.drawer
package band.effective.compose.drawer

import android.app.Activity
import android.app.Application
import android.view.ViewGroup
import band.effective.compose.drawer.network.GamesApi
import band.effective.compose.drawer.network.HttpConfiguration
import band.effective.compose.drawer.network.HttpConfiguration.API_URL
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import effective.band.compose.drawer.network.GamesApi
import effective.band.compose.drawer.network.HttpConfiguration
import effective.band.compose.drawer.network.HttpConfiguration.API_URL
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.compose.drawer
package band.effective.compose.drawer

import androidx.compose.runtime.Composable

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/PublishConfig.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
object PublishConfig {
const val drawerVersion = "1.0.0"
const val groupId = "effective.band"
const val groupId = "band.effective"


object Drawer{
Expand Down
6 changes: 1 addition & 5 deletions drawer-base/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ android {

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)

}
}
compileOptions {
Expand Down
4 changes: 1 addition & 3 deletions drawer-base/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="effective.band.drawer_base">

</manifest>
<manifest package="band.effective.drawer_base"/>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base
package band.effective.drawer_base

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base
package band.effective.drawer_base

import androidx.compose.material.ContentAlpha
import androidx.compose.material.LocalContentAlpha
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base
package band.effective.drawer_base

import android.content.Context
import android.hardware.Sensor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base
package band.effective.drawer_base

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base
package band.effective.drawer_base

import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.Column
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base
package band.effective.drawer_base

import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.requiredHeight
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base
package band.effective.drawer_base

import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base
package band.effective.drawer_base

import androidx.compose.foundation.layout.*
import androidx.compose.material.ContentAlpha
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base
package band.effective.drawer_base

import android.hardware.Sensor
import android.hardware.SensorEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base.actions
package band.effective.drawer_base.actions

import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base.actions
package band.effective.drawer_base.actions

import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base.actions
package band.effective.drawer_base.actions

import androidx.compose.material.Icon
import androidx.compose.material.icons.Icons
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base.actions
package band.effective.drawer_base.actions

import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base.actions
package band.effective.drawer_base.actions

import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effective.band.drawer_base.actions
package band.effective.drawer_base.actions

import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
Expand Down
2 changes: 1 addition & 1 deletion drawer-location/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ publishing {
}

dependencies {
implementation("effective.band:drawer-base:1.0.0")
implementation("band.effective:drawer-base:1.0.0")

implementation(libs.androidx.compose.foundation)
implementation(libs.androidx.compose.foundation.layout)
Expand Down
Loading