polidea / cockpit Goto Github PK
View Code? Open in Web Editor NEWEasily define a set of parameters that can be accessed and changed by the developers via built-in compact UI at runtime.
License: Apache License 2.0
Easily define a set of parameters that can be accessed and changed by the developers via built-in compact UI at runtime.
License: Apache License 2.0
When the application's architecture doesn't give the access to context, it would be helpful to have something like Cockpit.getCockpitIntent() instead of just Cockpit.showCockpit(context: Context).
Describe the bug
The application fails to build with a message (the application uses legacy support packages, not the androidx yet)
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:10:5-237:19 to override.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Library version
Version of Cockpit the issue occurs in: 3.0.1
.
To reproduce
Expected behavior
I could use Cockpit in projects without the androidx
Actual behavior
Build failed.
Screenshots
n/a
Device details
Not a device issue.
Core dependencies:
'com.android.tools.build:gradle:3.2.1'
Android Support 28.0.0
Describe the bug
Library allows to pass a callback that will be invoked when a button in Cockpit menu is clicked. It's easy to create a memory leak with the current implementation.
Library version
Version of Cockpit the issue occurs in: 3.0.1
.
To reproduce
Add a callback:
// we're inside Activity's onCreate
Cockpit.addFooCallback {
// access Activity methods or fields
}
Such callback captures activity instance and is kept by Cockpit. If we rotate the device then we have a memory leak.
To avoid that we can do:
val fooCallback = ActionRequestCallback {
// access Activity methods or fields
}
// in onCreate
Cockpit.addFooCallback(fooCallback)
// in onDestroy
Cockpit.removeFooCallback(fooCallback)
Maybe it would be possible to automatically remove the callbacks when necessary? Or at least add a possibility to enable/disable automatic callback removal? I'm not 100% sure that we want to always remove them, it's a topic for discussion. Just wanted to leave it here.
Describe the bug
After Gradle sync and error occur ERROR: Failed to resolve: com.github.PolideaInternal:ColorPicker:1.0.0
. As far as I understand the ColorPicker is available in JitPack only. Either promote it to JCenter or add information to the Readme to add the JitPack repository.
Library version
Version of Cockpit the issue occurs in: 3.1.1
.
To reproduce
Configure project as readme describes
Expected behavior
Project compiles
Actual behavior
Error presented
Currently Cockpit doesn't support Gradle Task Caching which causes that build takes more time. I suggest to add support for task caching: https://docs.gradle.org/current/userguide/build_cache.html?_ga=2.219831121.973550216.1580802978-1949218979.1568871414#task_output_caching
For example:
Library version
Version of Cockpit the issue occurs in: 3.0.0
.
To reproduce
appVersion:
type: read_only
description: "Version"
group: "General"
Activity.onCreate
set the value like Cockpit.setAppVersion(BuildConfig.VERSION_NAME)
.Expected behavior
Values should not disappear when clicking refresh.
Actual behavior
Values disappear when clicking refresh.
Device details
Tested on Android 5.0, 8.0 and 9.0
Hex string in Cockpit dialog is read-only, whole item is clickable (not only color preview), after click, library's dialog is opened on custom-color tab
Related to #32
Describe the bug
As soon as the back key (software or hardware) is pressed the cockpit fragment is closed.
Library version
Version of Cockpit the issue occurs in: 3.1.2
.
To reproduce
group: "AAA/BBB
Expected behavior
Navigate back to cockpit home
Actual behavior
Cockpit closed
When value is either string, number or a boolean, param is always treated as simple, no matter of the actual yaml structure.
Continuation of #62
Create a view sliding from the bottom so the user can see both their app and Cockpit panel at the same time.
Hey :)
Is there any release plan for the library? What are the plans for future development/features? Anything in the pipeline?
Cockpit.showCockpit(supportFragmentManager)
requires a dependency .
Summary
NavigationBar on Samsung S8 can be hidden.
When NavigationBar is hidden, then Cockpit Action Bar is covered by StatusBar
Steps to reproduce
Expected result:
Cockpit should fit to the screen size
Actual result:
Cockpit ActionBar is covered by StatusBar
Samsung S8 (android 8.0)
version: 3.0.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.