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

Add 2 lib!!!! #6

Open
pommedeterresautee opened this issue Jul 16, 2013 · 3 comments
Open

Add 2 lib!!!! #6

pommedeterresautee opened this issue Jul 16, 2013 · 3 comments

Comments

@pommedeterresautee
Copy link

Hi,

With your help I have switched two projects to Gradle, and I am very happy.

I have another one called OBackup (https://play.google.com/store/apps/details?id=com.pommedeterresautee.twoborange3) which uses LOOOOTSSS of libraries, around 20!

Most of them are Jar, so it will work with maven.

But 2 are not.

The first one is used to make an application compatible with an application called "Tasker" (https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en).

There is no repository to get the lib.

The source code is available in an archive (http://www.twofortyfouram.com/developer/toast.zip)

Inside there is a folder called locale-api , it is the lib. It includes resources, so no way to make a JAR.

There is no Gradle file.

The second lib is : https://github.com/tjerkw/Android-SlideExpandableListView?source=c

It s a popular lib to make the menu open like old version of Spotify.

Again, no Gradle file.

The request now: Would it possible to add these lib to your repository?

Thank you :-)

@Goddchen
Copy link
Owner

Hey,
I currently don't find the free time to include it myself. But any pull requests will gladly be merged :)

@pommedeterresautee
Copy link
Author

Hi, can you tell me how to do it? I really need these lib and I have no clue how to convert them to AAR format. Is there any documentation about it. Not found on Google :- ( Should I just create a working gradle.build file?

@Goddchen
Copy link
Owner

Goddchen commented Oct 2, 2013

This for example is the gradle build file that I used for the StickyListHeaders library:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.5.+'
    }
}
apply plugin: 'android-library'

apply plugin: 'maven'

uploadArchives {
    repositories.mavenDeployer {
        pom {
            artifactId = 'stickylistheaders'
        }
        repository(url: "file://Z:\\Temp\\mvn-repo\\")
    }
}

version = "1.0.0-SNAPSHOT"
group = "com.emilsjolander"

dependencies {
    //compile "com.android.support:support-v4:13.0.0"
}

android {
    compileSdkVersion 17
    buildToolsVersion "17"

    defaultConfig {
        minSdkVersion 5
        targetSdkVersion 8
    }
    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }

        instrumentTest.setRoot('tests')
    }
}

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

2 participants