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

Remove extraneous dependencies to slim down the app #6

Merged
merged 2 commits into from
Jun 24, 2016

Conversation

shankari
Copy link
Contributor

No description provided.

shankari added 2 commits June 23, 2016 14:05
Since we don't use it and it causes confusion about which google play service we use
It looks like the separated files for 8.1.0 are not available.
I do have 8.3.0 in my local SDK install, so let's switch to that instead.

To answer the question from
shankari/e-mission-data-collection@242cd2d

Contrary to the documentation,
https://developers.google.com/android/guides/setup#add_google_play_services_to_your_project
the local SDK install has separated files only from 8.3.0

```
bash-3.2$ ls /Users/shankari/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services/
3.1.36/                  4.4.52/                  7.8.0/
3.1.59/                  5.0.89/                  8.1.0/
3.2.25/                  6.1.11/                  8.3.0/
3.2.65/                  6.1.71/                  maven-metadata.xml
4.0.30/                  6.5.87/                  maven-metadata.xml.md5
4.1.32/                  7.0.0/                   maven-metadata.xml.sha1
4.2.42/                  7.3.0/
4.3.23/                  7.5.0/
```

```
bash-3.2$ ls /Users/shankari/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services-auth/
8.3.0                   maven-metadata.xml.md5
maven-metadata.xml      maven-metadata.xml.sha1
```
shankari added a commit to shankari/e-mission-phone that referenced this pull request Jun 24, 2016
But use the "lite" version so that we don't bloat up the apk again.

With this change, and the changes to only include the parts of the google play
API that we actually use,
e-mission/cordova-jwt-auth#6
e-mission/e-mission-data-collection#116

we're using the most recent version of the crosswalk
apk, while dropping 10MB off the size.

new crosswalk, all google play: won't compile, dex too large
old crosswalk, all google play: 33MB
new crosswalk, selected google play: 22MB
no crosswalk, selected google play: 23MB
@shankari shankari merged commit bceeb76 into e-mission:master Jun 24, 2016
@shankari shankari deleted the slim_down_app branch August 22, 2017 00:00
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

Successfully merging this pull request may close these issues.

1 participant