astuetz / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
139 stars 44 forks source link

Create Maven repository #25

Open vbauer opened 11 years ago

vbauer commented 11 years ago

Can you please create Maven repository on GitHub or deploy library in Maven Central Repository? It will be very useful for all developers. Many thanks!

sealskej commented 10 years ago

+1

MichaelEvans commented 10 years ago

+1

jeffdcamp commented 10 years ago

+1

Krylez-zz commented 10 years ago

+1

ghost commented 10 years ago

Deployed aar to Ark: https://github.com/ark/ark

repositories {
    maven {
        url 'https://raw.github.com/ark/ark/master/releases/'
    }
}
dependencies {
    compile 'com.astuetz:pagerslidingtabstrip:1.0.0'
}
jondwillis commented 10 years ago

@astuetz :+1: But could you also add support for plain Maven? I'm not ready to switch the the new gradle build system on all of my projects.

jondwillis commented 10 years ago

@astuetz if it helps at all... https://github.com/Citrrus/maven-artifacts/tree/master/releases/com/astuetz built from https://github.com/jondwillis/PagerSlidingTabStrip 1.0-SNAPSHOT with some changes to your pom.xml's.

Readme would contain something like:

<dependency>
   <groupId>com.astuetz.pagerslidingtabstrip</groupId>
   <artifactId>pagerslidingtabstrip</artifactId>
   <version>1.0-SNAPSHOT</version>
   <type>apklib</type>
</dependency>

after adding the correct repo.

bogdanzurac commented 10 years ago

Hello.

I've tried adding the library like above (compile 'com.astuetz:pagerslidingtabstrip:1.0.0', from ARK), but I get the below error, because android-support-v4.jar is included in the /libs folder of the library, instead of being compiled in build.gradle. Can you please check to see why it isn't getting the support library from the build.gradle file instead of a local jar ? I cannot currently use the library with Gradle because of this. Thanks.

Gradle: UNEXPECTED TOP-LEVEL EXCEPTION: Gradle: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl;

bogdanzurac commented 10 years ago

Hello again. Any info on the above matter ? Or should I file a separate bug ?

bogdanzurac commented 10 years ago

Is this library dead or wtf is going on ? Reminds me of bugs listed on Launchpad for Ubuntu. If you'd get lucky, you'd have someone contacting you after a year or so, lol.

Macarse commented 10 years ago

+1

Turnsole commented 10 years ago

astuetz seems to have wandered off from GitHub last spring. I wonder if he'll come back?

ghost commented 10 years ago

Worked on maven repo yesterday, will be available in the following days ;)

Turnsole commented 10 years ago

Awesome! :D Thanks.

ghost commented 10 years ago

Published 1.0.1 to Maven Central: http://search.maven.org/#artifactdetails%7Ccom.astuetz%7Cpagerslidingtabstrip%7C1.0.1%7Caar

bogdanzurac commented 10 years ago

Cannot resolve symbol PagerSlidingTabStrip. Does anyone else get this ?

esteluk commented 10 years ago

Did you read the updated readme/changelog? The library's namespace has been updated.

bogdanzurac commented 10 years ago

I didn't even need to read that, I've noticed it from the maven dep. That's not the point anyway.. I'm trying the autocomplete in AS and it doesn't suggest any class to import from the lib, so apparently it isn't recognized.

ghost commented 10 years ago

@bogdanzurac Have you tried Tools - Android - Sync Project with Gradle Files ?

bogdanzurac commented 10 years ago

The first thing I've done.

ghost commented 10 years ago

@bogdanzurac Which version of AS are you using? I just started a new project with 0.3.7 and everything worked as expected.

Turnsole commented 10 years ago

I'm using Android Studio 0.3.7, with a Gradle 1.8 wrapper, and had no issues.

ustav commented 10 years ago

@astuetz Could you add apklib for Maven users as well?

bogdanzurac commented 10 years ago

Apparently, after a re-import, the classes were present. Before the re-import, in the build/exploded-bundles/ComAstuetzPagerslidingtabstrip101.aar folder, the classes.jar file was not accessible for AS as the other dependencies in my project were. If you double clicked it in the project structure window in AS, nothing happened. If you double-clicked the other dependencies classes.jar file, it would open the archive. This problem was present on AS 0.4 and 0.4.2. Strange. Anyhow, thank you for releasing this on Maven Central, really appreciate it !

zoltanf commented 10 years ago

Had the same problem as @bogdanzurac . After banging my head to a wall, reimporting, syncing and god not know what, only upgrade to AS 0.4.3. helped.

rmcsc commented 10 years ago

That Tools - Android - Sync Project with Gradle Files thing you posted saved me! Thanks for that tip!