-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from DroidsOnRoids/chucker
Replace Chuck with Chucker
- Loading branch information
Showing
14 changed files
with
41 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
chuck_plugin/src/main/java/pl/droidsonroids/foqa/chuck/ChuckPlugin.kt
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<manifest package="pl.droidsonroids.foqa.chucker" /> |
27 changes: 27 additions & 0 deletions
27
chucker_plugin/src/main/java/pl/droidsonroids/foqa/chucker/ChuckerPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
chuck_plugin/src/main/res/values/values.xml → ...ker_plugin/src/main/res/values/values.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |