-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(plugin): plugin structure refactored (#251)
- Loading branch information
1 parent
275aeb8
commit 0e0294e
Showing
20 changed files
with
151 additions
and
56 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
pluto-plugins/base/lib/src/main/java/com/pluto/plugin/PluginGroup.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,5 @@ | ||
package com.pluto.plugin | ||
|
||
import com.pluto.utilities.list.ListItem | ||
|
||
class PluginGroup : ListItem() |
6 changes: 5 additions & 1 deletion
6
...b-no-op/src/main/java/com/pluto/plugins/datastore/pref/PlutoDatastorePreferencesPlugin.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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package com.pluto.plugins.datastore.pref | ||
|
||
@SuppressWarnings("UnusedPrivateMember") | ||
class PlutoDatastorePreferencesPlugin(identifier: String) | ||
class PlutoDatastorePreferencesPlugin @JvmOverloads constructor(identifier: String = ID) { | ||
companion object { | ||
const val ID = "datastore-preferences" | ||
} | ||
} |
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
6 changes: 5 additions & 1 deletion
6
pluto-plugins/plugins/demo/lib-no-op/src/main/java/com/demo/plugin/DemoPlugin.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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package com.demo.plugin | ||
|
||
@SuppressWarnings("UnusedPrivateMember") | ||
class DemoPlugin(devIdentifier: String) | ||
class DemoPlugin @JvmOverloads constructor(identifier: String = ID) { | ||
companion object { | ||
const val ID = "demo" | ||
} | ||
} |
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
6 changes: 5 additions & 1 deletion
6
.../exceptions/lib-no-op/src/main/java/com/pluto/plugins/exceptions/PlutoExceptionsPlugin.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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package com.pluto.plugins.exceptions | ||
|
||
@SuppressWarnings("UnusedPrivateMember") | ||
class PlutoExceptionsPlugin(identifier: String) | ||
class PlutoExceptionsPlugin @JvmOverloads constructor(identifier: String = ID) { | ||
companion object { | ||
const val ID = "exceptions" | ||
} | ||
} |
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
6 changes: 5 additions & 1 deletion
6
...r/lib-no-op/src/main/java/com/pluto/plugins/layoutinspector/PlutoLayoutInspectorPlugin.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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package com.pluto.plugins.layoutinspector | ||
|
||
@SuppressWarnings("UnusedPrivateMember") | ||
class PlutoLayoutInspectorPlugin(identifier: String) | ||
class PlutoLayoutInspectorPlugin @JvmOverloads constructor(identifier: String = ID) { | ||
companion object { | ||
const val ID = "layout-inspector" | ||
} | ||
} |
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
6 changes: 5 additions & 1 deletion
6
...gins/plugins/logger/lib-no-op/src/main/java/com/pluto/plugins/logger/PlutoLoggerPlugin.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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package com.pluto.plugins.logger | ||
|
||
@SuppressWarnings("UnusedPrivateMember") | ||
class PlutoLoggerPlugin(identifier: String) | ||
class PlutoLoggerPlugin @JvmOverloads constructor(identifier: String = ID) { | ||
companion object { | ||
const val ID = "logger" | ||
} | ||
} |
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
6 changes: 5 additions & 1 deletion
6
...s/plugins/network/lib-no-op/src/main/java/com/pluto/plugins/network/PlutoNetworkPlugin.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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package com.pluto.plugins.network | ||
|
||
@SuppressWarnings("UnusedPrivateMember") | ||
class PlutoNetworkPlugin(devIdentifier: String) | ||
class PlutoNetworkPlugin @JvmOverloads constructor(identifier: String = ID) { | ||
companion object { | ||
const val ID = "network" | ||
} | ||
} |
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
6 changes: 5 additions & 1 deletion
6
...s-database/lib-no-op/src/main/java/com/pluto/plugins/rooms/db/PlutoRoomsDatabasePlugin.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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package com.pluto.plugins.rooms.db | ||
|
||
@SuppressWarnings("UnusedPrivateMember") | ||
class PlutoRoomsDatabasePlugin(identifier: String) | ||
class PlutoRoomsDatabasePlugin @JvmOverloads constructor(identifier: String = ID) { | ||
companion object { | ||
const val ID = "rooms-database" | ||
} | ||
} |
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
6 changes: 5 additions & 1 deletion
6
...nces/lib-no-op/src/main/java/com/pluto/plugins/preferences/PlutoSharePreferencesPlugin.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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package com.pluto.plugins.preferences | ||
|
||
@SuppressWarnings("UnusedPrivateMember") | ||
class PlutoSharePreferencesPlugin(identifier: String) | ||
class PlutoSharePreferencesPlugin @JvmOverloads constructor(identifier: String = ID) { | ||
companion object { | ||
const val ID = "shared-preferences" | ||
} | ||
} |
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
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