naver / android-pull-to-refresh

Pull To Refresh Views for Android! v3.2.3
Apache License 2.0
310 stars 82 forks source link

Please make sure this project is support with aar #5

Closed Zhouxuefei closed 10 years ago

Zhouxuefei commented 10 years ago

the version 3.2 in maven repo is type of apklib please change the packaging type in android-pull-to-refresh / library /pom.xml <packaging>apklib</packaging> to <packaging>aar</packaging> thanks a lot.

ncoolz commented 10 years ago

Hello, you can use an aar package in build.gradle as below,

dependencies {
    compile 'com.navercorp.pulltorefresh:library:3.2.0@aar'
}

Also you can download aar directly in maven central.

It builds both apklib and aar in the setting of pom.xml. This setting is based on actionbarsherlock's.

Zhouxuefei commented 10 years ago

actionbarsherlock can use aar, if your maven version is above 3.1.1 and android-maven-plugin is above 3.8.2

ncoolz commented 10 years ago

Hi, can you please tell me what the problem is? I don't know why I should change the packaging type in pom.xml.

The current pom.xml can make aar and apklib at once on a build. If you wonder about this, see the following code. The code is an additional build step for aar packaging. And it is included in pom.xml.

<!-- extracted from actionbarsherlock's pom -->
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>exec-maven-plugin</artifactId>
                    <version>1.2.1</version>
                    <inherited>false</inherited>
                    <executions>
                        <execution>
                            <phase>package</phase>
                            <goals>
                                <goal>exec</goal>
                            </goals>
                            <configuration>
                                <executable>gradle</executable>
                                <arguments>
                                    <argument>clean</argument>
                                    <argument>assemble</argument>
                                </arguments>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>

Thank you.

Zhouxuefei commented 10 years ago

I think many people want to use the latest version in maven repo,by using dependencies { compile 'com.navercorp.pulltorefresh:library:+' }

ncoolz commented 10 years ago

Yes. it already supports. The usage is written in my first comment and Quick Start Guide. If your problem is different from what i understood, please describe it in detail. Thanks.