-
Notifications
You must be signed in to change notification settings - Fork 0
Android
alex [dot] kramer [at] g_m_a_i_l [dot] com edited this page Sep 18, 2018
·
16 revisions
~/Library/Android/sdk/tools/bin/uiautomatorviewer- Open Proxy > Proxy Settings
- Leave the port as default (
8888) and select “Enable transparent HTTP Proxying” - Open Proxy > SSL Proxy Settings
- Select “Enable SSL Proxying”
- Add a new entry
*in "Locations"
Via command line:
emulator -netdelay none -netspeed full -avd [EMULATOR NAME] -http-proxy [LOCAL IP]]:[PORT]-
EMULATOR NAME: List of emulators in~/.android/avd/e.g.Nexus_5X_API_25 -
LOCAL IP: IP of machine where Charles is running -
PORT: Default Charles port (should be8888)
Via emulator:
- Open Settings > Wireless & networks > ... More > Cellular networks > Access Point Names > T-Mobile US
- Change
Proxyto local IP where Charles is running - Change
Portto Charles default (should be8888)
- Visit
http://charlesproxy.com/getsslin the emulator browser
android {
...
defaultConfig {
...
consumerProguardFiles 'proguard-rules.pro'
}
}./gradlew clean assembleDebug~/Library/Android/sdk/platform-tools/adbadb install [path to .apk]
~/Library/Android/sdk/tools/emulator -avd Nexus_6_API_23 -netspeed full -netdelay none -http-proxy http://127.0.0.1:8888 -port 5554
Create local.properties at top level:
sdk.dir=/Users/alex/Library/Android/sdk
bintray.user=username
bintray.apikey=apikey
bintray.gpg.password=password
JCenter repo:
https://bintray.com/[user]/maven/[repo name]
- For details see: https://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en
- Bump
libraryVersion# inAndroidSDK/[app name]/build.gradle ./gradlew install- Look for
BUILD SUCCESSFUL ./gradlew bintrayUpload- Look for
BUILD SUCCESSFUL - Run with
--debugif anything goes wrong - Check the JCenter repo to make sure the upload worked.
Install the new version of the library from JCenter in a new app and test that Gradle can sync and that everything works.
- Make sure the JCenter repo is configured in the new project's
build.gradle:
allprojects {
repositories {
...
maven {
...
url 'https://dl.bintray.com/[username]/maven/'
}
}
}
- Make sure the package is configured in the new project's
app/build.gradle:
dependencies {
...
compile '[package]:[artifact]:[version, e.g. 0.1.2]'
}
rm -rf ~/.gradle/cachesrm -rf [ProjectRoot]/.gradle[ProjectRoot]/gradlew assemble
- Restart logcat (button on sidebar of Android Studio debugger panel)
- Change the log level to Debug (or anything else) and back to Verbose.
- Unplugging and plugging back in the device
- Running
adb kill-server && adb start-server - Close Android Studio and launch
ddmson the command line. - Restart Android Studio