-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Use resource prefix for library resources #796
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
Use resource prefix for library resources #796
Conversation
@@ -52,9 +52,9 @@ public void setUp() throws Exception { | |||
context = mock(Context.class); | |||
array = mock(TypedArray.class); | |||
|
|||
when(array.getFloat(R.styleable.SpacedEditText_spacingProportion, 1)).thenReturn | |||
when(array.getFloat(R.styleable.fui_SpacedEditText_fui_spacingProportion, 1)).thenReturn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea why this one go a double fui
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's an effect of the build tools appending the two resource names together. I'll make sure it's reduced to SpacedEditText_fui_spacingProportion
, if that's okay.
@@ -27,21 +29,21 @@ | |||
public abstract class FirebaseListAdapter<T> extends BaseAdapter implements FirebaseAdapter<T> { | |||
private static final String TAG = "FirebaseListAdapter"; | |||
|
|||
protected final Activity mActivity; | |||
protected final Context mContext; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the DB changes since they aren't related to this PR? Otherwise LGTM! 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think those will be fixed after the merge conflicts are fixed, those changes have already been accepted in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samtstern yeah, once I saw the conflicts I realized this PR was built using personal commits instead of dev. Hopefully it won't be too tough to resolve them! 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm still learning how to use git. Will do.
@@ -38,7 +38,7 @@ | |||
private String[] sections; | |||
|
|||
public CountryListAdapter(Context context) { | |||
super(context, R.layout.dgts__country_row, android.R.id.text1); | |||
super(context, R.layout.fui_dgts__country_row, android.R.id.text1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're renaming, might as well remove that extra _
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do.
@TheCraftKid might I also suggest you try branching? 😂 Nah, I'm just kidding with you but you should always try starting a PR by checking out a fresh version of |
@TheCraftKid we're getting close to |
Yep, sorry about the delay; a Windows update messed up my desktop environment. On a side note, I learned how to use branches and remove the irrelevant code to this PR. Is there a way for me to add my commits to this PR, or will I have to make a new one? |
@TheCraftKid just commit again and push to the same branch, the PR will update like magic. |
Wow, that took way too long. That updated like magic, all right. I'm really sorry if there are some screwy commits or anything else in this PR. Final note: just to get the linter to stop complaining, I added |
@TheCraftKid glad you pulled through!!! 😀 I hate to be the bearer of bad news again, but the issue you're trying to resolve—#794—is about the string res names, not the layouts. We definitely should keep the layout name changes (thanks!), but the |
auth/src/main/res/values/config.xml
Outdated
@@ -1,4 +1,4 @@ | |||
<resources> | |||
<resources xmlns:tools="http://schemas.android.com/tools"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also ignore at root here.
Okay, that should solve the issues @SUPERCILEX brought up. |
@TheCraftKid we still have a ton of merge issues though, you need to merge the firebase |
@TheCraftKid most of these conflicts are my fault I will send a PR to your branch that will fix it. |
Change-Id: Ib9f64e94983cb39e70a03b526be9bb25ead888d1
Opened WillieCubed#1 which will fix it. Here's an issue though: because this adds the Since the major goal of @TheCraftKid what do you think? |
I'd be willing to keep v2.1.0 translation-based and move the resource name changes to v2.1.1 if that means we can push the essential v2.1.0 changes. |
@TheCraftKid thanks for your flexibility, I think that's the safest move. I definitely want to get your resource prefix change in ASAP after |
Fix merges for PR firebase#796
Woot no more conflicts! The build is failing now but that's working as intended since we have not answered the translation question yet. |
Change-Id: I7f7f848941c6482bf444dd743a05acc78aa0455c
Change-Id: I5dadda6cbe361ef756c4d3ba3525ca3eb76925d0
Change-Id: Iac2405e6a11ee35fb8d0c05afce35d8fa4315321
Change-Id: Ide75dce369798fd0b14ac58928123bba12bf762e
@TheCraftKid I opened WillieCubed#2 to fix the final issues. |
@TheCraftKid nice! This one is all set to merge, thanks for the hard work. |
This fixes #794.