This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ hermione.py test-3.0 | |
Deploying artifacts to hermetic repository... | |
Rictusempra com.aaa:bbb:1.0-test-3.0... | |
Prior Incantato com.ccc:ddd:1.0.0-test-3.0... | |
Point Me com.eee:fff:2.2-test-3.0... | |
Rictusempra com.ggg:hhh:0.8-test-3.0... | |
Engorgio com.iii:jjj:1.0-test-3.0... | |
Rictusempra com.kkk:lll:0.8.0-test-3.0... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rcdict import * | |
class User: pass | |
class Group(Model): | |
name = StringField() | |
admin = ForeignKey(User) | |
#users = ReverseForeignKey(User) generated automatically | |
class User(Model): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.actionbarsherlock.sample.stylenativetabs" | |
android:versionCode="1" | |
android:versionName="1.0.0"> | |
<uses-sdk android:minSdkVersion="4" /> | |
<application android:label="Styled Native Tabs" android:theme="@style/Theme.Sherlock"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Thing<T> { | |
T thing(); | |
} | |
class CharSequenceThing implements Thing<CharSequence> { | |
@Override public CharSequence thing() { | |
return "CharSequence!"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
sourceCompatibility = JavaVersion.VERSION_1_7 | |
targetCompatibility = JavaVersion.VERSION_1_7 | |
def logger = new com.android.build.gradle.internal.LoggerWrapper(project.logger) | |
def sdkHandler = new com.android.build.gradle.internal.SdkHandler(project, logger) | |
for (File file : sdkHandler.sdkLoader.repositories) { | |
project.repositories.maven { | |
url = file.toURI() |
Due to a bug in the packaging of Android OS "L", dependencies which reference Okio need to be repackaged.
For more information see square/okhttp#967
Usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TweetAdapter extends BaseAdapter { | |
// ... | |
public View getView(int position, View convertView, ViewGroup parent) { | |
TweetViewHolder vh = TweetViewHolder.get(convertView, parent); | |
Tweet item = getItem(position); | |
vh.user.setText(item.user); | |
vh.tweet.setText(item.tweet); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Thing { | |
Object thing(); | |
} | |
class CharSequenceThing implements Thing { | |
@Override public CharSequence thing() { | |
return "CharSequence!"; | |
} | |
} |