See changes in Android Support Library sources between two versions - android

I want to clone repository for Android Support Library and see what has been changed between version 24.1.1 and 24.2.0.
I know that repository is located here but:
Its latest commits are dated by July 1 though latest support library release 24.2.0 was in August.
There are no tags like support library versions 24.1.1, 24.2.0, etc.
How can I just see what commits were made between versions 24.1.1 and 24.2.0?

There are tags (android/platform_frameworks_support/releases), but they are specific to the android/platform_frameworks_support repo.
The Support Library Revision History does mention 24.x.y revisions, and it says the v4 support librairies have been splitted in modules like support-compat.
You can see one of those modules in dandar3/android-support-compat which mentions being it based on ANDROID_SDK/extras/android/m2repository/com/android/support/support-compat/24.2.0/support-compat-24.2.0.aar
So we are talking about a completely different set of git repositories:
See dandar3/android-support-README.
So pick any of those support repos, and see what has changes between two tags.
You can do it directly on GitHub:
https://github.com/dandar3/android-support-v4/compare/24.1.1...24.2.0
The Book "Gradle for Android", from Kevin Pelgrims, mentions:
New Android projects have a dependency on the Android Support Library by default.
When installing the Google repositories using the SDK manager, two Maven repositories are created on your hard drive:
ANDROID_SDK/extras/google/m2repository
ANDROID_SDK/extras/android/m2repository
This is where Gradle gets the libraries provided by Google, such as the Android Support Library and Google Play Services.
Again, the sources (as Git repos) might not be available, but you still can get those projects through the SDK Manager.

Related

finding the latest available version of libraries

I'm trying to add support libraries to my Android studio project.
studio suggests to use "27.1.1" version of appcompat library but is not available in jcenter or google repository.
my questions:
1.How can I find the latest available version of libraries?
2.why jcenter does not include support libraries(http://jcenter.bintray.com/com/android/support/appcompat-v7/27.1.1 this page is not found)
thank U every one

Why does the Google maven repository exist and when should I use it?

So I found myself scratching my head as I was trying to update my build.gradle dependencies. The com.android.support:appcompat library version 26.0.2 didnt resolve. After a bit of searching I learned that I had to add Google's maven repository to the list of repositories in my project gradle file. So now both Google's maven repository and jcenter() is listed.
So why is Google now hosting their own maven repository and is there any reason not to use it? Its odd that libraries are hosted both places with different versions.
There are several repositories in play when building an Android app:
jcenter() is used for a multitude of open source libraries, including the Android Plugin for Gradle.
google() (a.k.a., maven.google.com) is used for the support libraries, Architecture Components, and so on. For the support libraries, you need to use this repository for 26.0.0 and higher.
The Android Repository, installed on your hard drive by the SDK Manager, is for the support libraries prior to the introduction of maven.google.com.
Many other hosted repositories (jitpack.io, my CWAC repository, etc.).
Its odd that libraries are hosted both places with different versions.
I don't know if maven.google.com also supports the library versions from the Android Repository. Otherwise, roughly speaking, maven.google.com is the new hosted version of what had been the Android Repository, for newer versions of the libraries going forward.
I'm also uncertain if the Google Repository installed by the SDK Manager for the Play Services dependencies is being supplanted by maven.google.com.
why is Google now hosting their own maven repository
You would have to ask Google. The Android Repository was OK for simple builds but got to be a pain in more complex scenarios (e.g., builds on a headless CI server). Using an ordinary hosted Maven repository should simplify those things.
The template project generated by Android Studio didnt add Google's maven repository
You are using Android Studio 2.3.3 or older. Android Studio 3.0 and higher's templates will add google() for you.

Android sdk manager I don't have Android Support Library

I do a Android training and I have to use Eclipse. I created a new project and I get the error
android.support cannot resolved.
I look for the android-support-*.jar.
This is my SDK manager
I don't have Android Support Library package in my SDK Manager. How can I install the package "Android Support Library" ?
You have already downloaded Android support Repository .
To add support library to project, go to android sdk location sdk\extras\android\support , you can find all support libraries there .Add what ever library you need as a dependency
i guess you have to add V7 appCompact
If you are using linux. Try doing this in the terminal, it worked for me at some point in time. Don't know if it still works:
:~$ android list sdk -a --extended|less
This will list all the packages plus the extra-androidm2-repository because of the --extended option. After this you can the type:
android update sdk --no-ui -a --filter "extra-android-m2repository"
This will proceed to download the extra support repository, and place it in the $ANDROID_HOME/extras/android/m2repository/.If that does not work try downloading the zip file here. This is still not the end of it because you still have to find a way to use it and
This is why you should move to Android studio
The structure of android support repository changed to the .aar format. This means you cannot import the library as you would have with earlier support versions. You have to use maven plugin in eclipse to manage the libraries.
Maven central does not have the latest android support libraries, hence you have to use maven android connector.
If you want to read more, on how to Mavenize your project and use maven for android libraries read this. I found it personally to be very hard compared to android studio where you just have to add a dependency in gradle. Good luck.

How add Android Support Repository Rev. 36 to Eclipse version Neon release 4.6.0?

Recently I've removed my old Eclipse and download/install new version Neon.
I know I have to download SDK from Android SDK Manager. So I've download some releases which I needed and for "Extra" part could find Android Support Library.
I've checked Obsolete and found it, but I want to use new version of appcompat (24.2.0) which is part of Android Support Repository and I've downloaded, but can not add it by normal way (I think).
So how to add appcompat 24.2.0 into Eclipse?
Note:
When I want to import Existing Android code Into Workplace and address it to the appcompat there isn't anything to add, because it's Maven:
C:\android-sdk-windows\extras\Android\m2repository\com\Android\support\appcompat-v7\24.2.0

How to set up automatic Google Support Repository update for Android project?

I'm trying to set up automatic Google Support Repository update for my Android project on Jenkins. I found two ways to do that- Jake Wharton's SDK Manager Plugin, or Android Emulator Plugin for Jenkins, but both of those solutions seem to be deprecated. The docs for SDK Manager Plugin point out that:
This plugin is deprecated and is no longer being developed. The Android tools team has committed to automatically downloading tools and dependencies in v2.2.0 and will be improving it in subsequent releases.
Where can I find any information on how to do that?
These are the release notes http://tools.android.com/tech-docs/new-build-system.
Basically that means that upgrading to use:
classpath 'com.android.tools.build:gradle:2.2.0-alpha4'
will make that gradle downloads automatically the missing dependencies if you add the experimental flag:
android.builder.sdkDownload=true to your gradle.properties file.
You can see the announcement here https://www.youtube.com/watch?v=csaXml4xtN8&index=23&list=PLWz5rJ2EKKc8jQTUYvIfqA9lMvSGQWtte 43:35

Categories

Resources