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

Push lib to Maven Central/jCenter #13

Open
davidvavra opened this issue Dec 25, 2014 · 25 comments
Open

Push lib to Maven Central/jCenter #13

davidvavra opened this issue Dec 25, 2014 · 25 comments

Comments

@davidvavra
Copy link

Now it's pain to include the library.

@Wolftein
Copy link

+1

@easyaspi314
Copy link

You should first change the minSdkVersion to 4, not 7. Then have a look at this
(I haven't tried it): Maven – Guide to uploading artifacts to the Central Repository

@davidvavra
Copy link
Author

I would vote for jcenter instead of Maven Central. It's so much easier.

@easyaspi314
Copy link

yeah i agree i have no idea how to use Maven Central. jCenter gives you an easy way to do that.

@oinegue
Copy link

oinegue commented Jan 19, 2015

How do I install the lib without maven? I'm using Android Studio

@easyaspi314
Copy link

How I did it:

  1. Copy the m2repository folder (do merge/replace) into

Windows: Open Explorer and type in the address bar:
%USERPROFILE%/.m2

Mac/Linux:
~/.m2

  • Linux: Make sure you show hidden folders.
  • Mac: You need to use the Menu Bar > Go > Go to folder... and type
    ~/.m2
  1. In your project build.gradle, find the second dependencies { }
    section (at the end) and add
    mavenLocal()
    After that, in your module's build.gradle, add to your dependencies:
    compile 'com.android.support:support-v4-preferencefragment:1.0.0'

How do I install the lib without maven? I'm using Android Studio

Reply to this email directly or view it on GitHub
#13 (comment)
.

@oinegue
Copy link

oinegue commented Jan 19, 2015

Thank you! I'm in Linux and I had to put the m2repository/com folder in ~/.m2/repository/
Now I can use the lib.

@pawelantczak
Copy link

Hello.
If you prefer or must use remote repo, feel free to use my nexus:

    repositories {
        mavenCentral()
        maven { url "http://nexus.antczak.org/content/repositories/thirdparty/" }
    }

then:

    compile 'com.android.support:support-v4-preferencefragment:1.0.0'

@easyaspi314
Copy link

Can someone set this to be compatible with Donut? I know it is a bit silly, but the title says v4 but the build files say v7.

On Jan 24, 2015, at 8:47 AM, Paweł Antczak [email protected] wrote:

maven { url "http://nexus.antczak.org/content/repositories/thirdparty/ http://nexus.antczak.org/content/repositories/thirdparty/" }

@pserwylo
Copy link

I'm also hoping that this can be uploaded to mavenCentral or jcenter at some point. We are using it for F-Droid, and while we have a submodule of this repo building correctly, I'd like to be able to get a copy of the binary from mavenCentral/jcenter too (much more convenient for the majority of contributors).

@matecode
Copy link

+1

1 similar comment
@slavafomin
Copy link

+1

@easyaspi314
Copy link

+1
@kolavar: Are you there?

@shkschneider
Copy link

Would like to propose a pull request for JitPack support once the pull request #11 will be merged.

@PaulWoitaschek
Copy link

+1 This would be very useful

@danpfe
Copy link

danpfe commented Apr 18, 2015

+1

4 similar comments
@msegers
Copy link

msegers commented Jun 11, 2015

+1

@DKMudrechenko
Copy link

+1

@codewing
Copy link

codewing commented Jul 3, 2015

+1

@ticofab
Copy link

ticofab commented Jul 6, 2015

+1

@mhousser
Copy link

+1. Really no reason I shouldn't be able to use this library with a single Gradle line within Android Studio, just like every other library. Right now this library is still one of those 'annoying ones that needs to have its own folder and committed files in source control etc.'

@mvdan
Copy link

mvdan commented Aug 19, 2015

Status of this? +1

@kolavar if you don't have time to work on this library, have you thought about letting someone else do the work for you?

@shkschneider
Copy link

I got tired of copying files, I updated the code (Gradle, dimens.xml from AOSP as of 5.1.1 etc) and pushed this to JitPack, if it could be useful for anyone: https://github.com/shkschneider/android_PreferenceFragmentCompat

@mvdan
Copy link

mvdan commented Oct 6, 2015

Reping @kolavar - there are also pending PRs that need attention. If you don't have time to maintain the library, have you thought of handing over the project to someone else?

@shkschneider
Copy link

shkschneider commented May 24, 2016

I'm done with this issue and this (abandonned) library -- won't publish into JitPack.
See https://github.com/shkschneider/android_PreferenceFragmentCompat/blob/master/README.md.

Use com.android.support:support-v7 and com.android.support:preference-v14.

  1. Use a android.support.v7.preference.PreferenceFragmentCompat as fragment.
  2. Set <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item> in your theme.
  3. Set colors preference_accent and preference_fallback_accent_color to accentColor.
  4. Create your layout with a Toolbar that includes something like:
    <fragment
    android:name="com.example.SettingsActivity$SettingsFragment"
    android:tag="SettingsActivity$SettingsFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

Source: https://github.com/Gericop/Android-Support-Preference-V7-Fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests