The Wayback Machine - https://web.archive.org/web/20220509205048/https://github.com/mikepenz/Android-Iconics/pull/522
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 5.1.0 - main #522

Merged
merged 102 commits into from Oct 11, 2020
Merged

Release 5.1.0 - main #522

merged 102 commits into from Oct 11, 2020

Conversation

Copy link
Owner

@mikepenz mikepenz commented Oct 11, 2020

  • [release] v5.1.0
  • update all font addons to use jetpack app startup
implementation 'com.mikepenz:google-material-typeface:3.0.1.5.original-kotlin@aar'
implementation 'com.mikepenz:community-material-typeface:5.3.45.2-kotlin@aar'
implementation 'com.mikepenz:devicon-typeface:2.0.0.6-kotlin@aar'
implementation 'com.mikepenz:entypo-typeface:1.0.0.6-kotlin@aar'
implementation 'com.mikepenz:fontawesome-typeface:5.9.0.1-kotlin@aar'
implementation 'com.mikepenz:foundation-icons-typeface:3.0.0.6-kotlin@aar'
implementation 'com.mikepenz:ionicons-typeface:2.0.1.6-kotlin@aar'
implementation 'com.mikepenz:material-design-icons-dx-typeface:5.0.1.1-kotlin@aar'
implementation 'com.mikepenz:material-design-iconic-typeface:2.2.0.7-kotlin@aar'
implementation 'com.mikepenz:meteocons-typeface:1.1.0.6-kotlin@aar'
implementation 'com.mikepenz:octicons-typeface:3.2.0.7-kotlin@aar'
implementation 'com.mikepenz:pixeden-7-stroke-typeface:1.2.0.4-kotlin@aar'
implementation 'com.mikepenz:typeicons-typeface:2.0.7.6-kotlin@aar'
implementation 'com.mikepenz:weather-icons-typeface:2.0.10.6-kotlin@aar'
mikepenz and others added 30 commits Nov 3, 2019
Pass the value of attribute "ico_automirror" to the IconicsDrawable
* showcase databinding usage
  * FIX #462
* update to alpha of AboutLibraries for test purposes
  * split into 4 icon sets for each 1000 icons to not run into compile issues
  * FIX #482
* release new communit material icons library v4.7.95.3
- cleanup import
- use drawable for test purposes also in ImageView
- set minSdk to 16 again
…resources and the theme.

  - instead of needing a context, keep theme and resources which will be used to resolve colors / ...
  - this is the initial phase of this refactor, more cleanup is needed.
- move all producers to producer extensions
- add all convenient setters to the IconicsDrawableExtensions.kt
- introduce new optimized apply functions which will not invalidate while updating properties
- refactor all code to use new properties
- update to MaterialDrawer v8
- update to FastAdapter v5
- update to AboutLibraries v8
- fix and simplify array builder
- revert iconics brush back to original
- some more cleanup
- improve release script
  - implementation 'com.mikepenz:community-material-typeface:3.7.95.4-kotlin@aar'
# Conflicts:
#	app/src/main/java/com/mikepenz/iconics/sample/PlaygroundActivity.kt
- update material lib
- update aboutlibraries
- simplify code
- udpate to latest aboutlibraries
- fix drawer icon colors
android:textColor="@android:color/black"
android:padding="5dp"
android:layout_marginTop="8dp"
android:text="Button/IconicsButton Showcase" />
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "Button/IconicsButton Showcase", should use @string resource
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_weight="1"
android:text="{faw-adjust} Button" />
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "{faw-adjust} Button", should use @string resource
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_weight="1"
android:text="{fon-test2} Button" />
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "{fon-test2} Button", should use @string resource
android:layout_weight="1"
android:text="{fon-test2} Button" />

<ImageButton
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Missing contentDescription attribute on image
app:iiv_bottom_icon="gmd_add_circle_outline"
app:iiv_bottom_color="@color/md_blue_grey_300"
app:iiv_bottom_size="24dp"
android:text="IconicsButton with side-drawables"
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "IconicsButton with side-drawables", should use @string resource
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="ImageView Showcase" />
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "ImageView Showcase", should use @string resource
android:text="BottomNavigationView Showcase" />
android:orientation="horizontal">

<ImageView
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Missing contentDescription attribute on image
android:layout_width="48dp"
android:layout_height="48dp" />

<ImageView
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Missing contentDescription attribute on image
android:layout_width="48dp"
android:layout_height="48dp" />

<ImageView
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Missing contentDescription attribute on image
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="IconicsCheckBox Showcase" />
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "IconicsCheckBox Showcase", should use @string resource
<com.mikepenz.iconics.view.IconicsCheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="IconicsCheckBox"
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "IconicsCheckBox", should use @string resource
<com.mikepenz.iconics.view.IconicsCheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Iconics{fon-test1}CheckBox{faw-adjust}"
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "Iconics{fon-test1}CheckBox{faw-adjust}", should use @string resource
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="IconicsCheckableTextView Showcase" />
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "IconicsCheckableTextView Showcase", should use @string resource
<com.mikepenz.iconics.view.IconicsCheckableTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="IconicsCheckableTextViewStart"
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "IconicsCheckableTextViewStart", should use @string resource
<com.mikepenz.iconics.view.IconicsCheckableTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="IconicsCheckableTextViewTop"
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "IconicsCheckableTextViewTop", should use @string resource
<com.mikepenz.iconics.view.IconicsCheckableTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="IconicsCheckableTextViewEnd"
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "IconicsCheckableTextViewEnd", should use @string resource
<com.mikepenz.iconics.view.IconicsCheckableTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="IconicsCheckableTextViewBottom"
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "IconicsCheckableTextViewBottom", should use @string resource
<com.mikepenz.iconics.view.IconicsCheckableTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="IconicsCheckableTextView"
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "IconicsCheckableTextView", should use @string resource
app:itemIconTint="@color/color_states_bottom_navigation_icons"
app:menu="@menu/menu_navigation" />
android:layout_marginTop="8dp"
android:text="BottomNavigationView Showcase" />
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Hardcoded string "BottomNavigationView Showcase", should use @string resource
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
res.getColorStateList(colorRes, theme)
} else {
res.getColorStateList(colorRes)
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Use AppCompatResources.getColorStateList()
import android.content.Context
import com.mikepenz.iconics.typeface.utils.IconicsPreconditions

/**
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Do not place Android context classes in static fields (static reference to IconicsHolder which has field context pointing to Context); this is a memory leak
* @author pa.gulko zTrap (02.05.2020)
*/
object IconicsHolder {
private var context: Context? = null
Copy link

@github-actions github-actions bot Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Do not place Android context classes in static fields; this is a memory leak
@github-actions
Copy link

@github-actions github-actions bot commented Oct 11, 2020

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

android:layout_width="72dp"
android:layout_height="72dp"
android:padding="24dp"
app:tint="@color/accent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Must use app:tint instead of android:tint
android:layout_width="72dp"
android:layout_height="72dp"
android:padding="24dp"
app:tint="@color/accent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Must use app:tint instead of android:tint
<item name="colorPrimaryDark">@color/primary_dark</item>
<item name="colorAccent">@color/accent</item>

<!-- CAB :D -->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 android:windowTranslucentStatus requires API level 19 (current min is 16)

<!-- CAB :D -->
<item name="windowActionModeOverlay">true</item>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 android:statusBarColor requires API level 21 (current min is 16)
<!-- CAB :D -->
<item name="windowActionModeOverlay">true</item>

<item name="toolbarStyle">@style/CustomToolbarStyle</item>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 android:navigationBarColor requires API level 21 (current min is 16)
@mikepenz mikepenz merged commit e0a3364 into main Oct 11, 2020
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
10 participants