Skip to content

Commit

Permalink
Merge pull request #15 from DroidsOnRoids/chucker
Browse files Browse the repository at this point in the history
Replace Chuck with Chucker
  • Loading branch information
koral-- authored Aug 3, 2019
2 parents b0365f9 + 9f9ae92 commit c675d2f
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 40 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
versionsPlugin : '0.21.0',
hyperion : '0.9.27',
debugDb : '1.0.6',
chuck : '1.1.47',
chucker : '3.0.0-alpha2',
hyperionAppInfo : '1.1.0',
deviceNames : '1.1.9',
autoService : '1.0-rc6',
Expand Down Expand Up @@ -38,6 +38,7 @@ subprojects { subproject ->
google()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}

apply plugin: 'com.github.ben-manes.versions'
Expand Down
6 changes: 0 additions & 6 deletions chuck_plugin/build.gradle

This file was deleted.

1 change: 0 additions & 1 deletion chuck_plugin/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

File renamed without changes.
6 changes: 6 additions & 0 deletions chucker_plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
androidPublish.artifactId = "chucker"
description = "Hyperion plugin for menu item with Chuckuer - simple in-app HTTP inspector. Part of FoQA project."

dependencies {
implementation "com.github.ChuckerTeam.Chucker:library:$versions.chucker"
}
1 change: 1 addition & 0 deletions chucker_plugin/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<manifest package="pl.droidsonroids.foqa.chucker" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package pl.droidsonroids.foqa.chucker

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.chuckerteam.chucker.api.Chucker
import com.google.auto.service.AutoService
import com.willowtreeapps.hyperion.plugin.v1.Plugin
import com.willowtreeapps.hyperion.plugin.v1.PluginModule

@AutoService(Plugin::class)
class ChuckerPlugin : Plugin() {
override fun createPluginModule(): PluginModule = ChuckerModule()
}

internal class ChuckerModule : PluginModule() {

override fun createPluginView(layoutInflater: LayoutInflater, parent: ViewGroup): View {
val view = layoutInflater.inflate(R.layout.foqa_chucker_menu_item, parent, false)
view.setOnClickListener {
it.context.startActivity(Chucker.getLaunchIntent(it.context, Chucker.SCREEN_HTTP))
}
return view
}

override fun getName() = R.string.foqa_chucker_plugin_name
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
android:minHeight="131dp"
android:orientation="horizontal"
android:padding="@dimen/hype_plugin_padding"
android:text="@string/foqa_chuck_plugin_name"
android:text="@string/foqa_chucker_plugin_name"
android:textColor="@color/hype_plugin_color_selector"
android:textSize="16sp" />
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="foqa_chuck_plugin_name">Chuck</string>
<string name="foqa_chucker_plugin_name">Chucker</string>
</resources>
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ dependencies {

implementation project(':device_info_plugin')
implementation project(':font_scale_plugin')
implementation project(':chuck_plugin')
implementation project(':chucker_plugin')
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':library', ':device_info_plugin', ':font_scale_plugin', ':chuck_plugin', ':sample'
include ':library', ':device_info_plugin', ':font_scale_plugin', ':chucker_plugin', ':sample'
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Version of the produced binaries. This file is intended to be checked-in.
#It will be automatically bumped by release automation.
version=0.0.22
version=0.1.0
previousVersion=0.0.21

0 comments on commit c675d2f

Please sign in to comment.