Skip to content

Commit

Permalink
add google repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jintin committed Oct 1, 2017
1 parent e186b5e commit 0963887
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion andle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import andle.android
import andle.sdk

__version__ = "1.9.0"
__version__ = "2.0.0"


def update(path, dryrun, remote, gradle, interact):
Expand Down
9 changes: 6 additions & 3 deletions andle/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from xml.dom import minidom

JCENTER_URL = "https://jcenter.bintray.com/"
# MAVEN_URL = "https://repo1.maven.org/maven2/"
GOOGLE_URL = "https://maven.google.com/"


def load(name, url=JCENTER_URL):
Expand All @@ -19,5 +19,8 @@ def load(name, url=JCENTER_URL):
version = latest.childNodes[0].data
return version
except BaseException:
print("fail to get version : " + name)
return None
if url == JCENTER_URL:
return load(name, GOOGLE_URL)
else:
print("fail to get version : " + name)
return None

0 comments on commit 0963887

Please sign in to comment.