Skip to content

Instantly share code, notes, and snippets.

View dakoctba's full-sized avatar
🇧🇷
"Simplicity is the ultimate sophistication" - Leonardo da Vinci

Jackson Teixeira dakoctba

🇧🇷
"Simplicity is the ultimate sophistication" - Leonardo da Vinci
View GitHub Profile
@dakoctba
dakoctba / my-component.spec.js
Created January 16, 2017 19:32 — forked from thevangelist/my-component.spec.js
The only React.js component test you'll ever need (Enzyme + Chai)
import React from 'react';
import { shallow } from 'enzyme';
import MyComponent from '../src/my-component';
const wrapper = shallow(<MyComponent/>);
describe('(Component) MyComponent', () => {
it('renders without exploding', () => {
expect(wrapper).to.have.length(1);
});
@dakoctba
dakoctba / release-android-debuggable.md
Created August 18, 2020 00:55 — forked from nstarke/release-android-debuggable.md
How to make a Release Android App debuggable

How to make a Release Android App debuggable

Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell and then run-as com.mypackage ( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs), but on a production release app downloaded from an app store you're most likely to see:

run-as: Package 'com.mypackage' is not debuggable