Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3.3.2' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
WonderCsabo committed Jul 9, 2015
2 parents c8a3985 + ef6b277 commit e228289
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private void extractAnnotations(AnnotationElementsHolder extractedModel, Set<Str
private void addAncestorsElements(Set<TypeElement> elements, TypeElement typeElement) {
TypeMirror ancestorTypeMirror = typeElement.getSuperclass();

if (!isRootObjectClass(ancestorTypeMirror) && ancestorTypeMirror instanceof DeclaredType) {
if (!isRootObjectClass(ancestorTypeMirror) && !isAndroidClass(ancestorTypeMirror) && ancestorTypeMirror instanceof DeclaredType) {
DeclaredType ancestorDeclaredType = (DeclaredType) ancestorTypeMirror;
Element ancestorElement = ancestorDeclaredType.asElement();
if (ancestorElement instanceof TypeElement) {
Expand All @@ -131,6 +131,10 @@ private boolean isRootObjectClass(TypeMirror typeMirror) {
return typeMirror.getKind() == TypeKind.NONE;
}

private boolean isAndroidClass(TypeMirror typeMirror) {
return typeMirror.toString().startsWith("android.");
}

private void extractRootElementsAnnotations(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv, AnnotationElementsHolder extractedModel) {
for (TypeElement annotation : annotations) {
extractedModel.putRootAnnotatedElements(annotation.getQualifiedName().toString(), roundEnv.getElementsAnnotatedWith(annotation));
Expand Down
4 changes: 2 additions & 2 deletions examples/HelloWorldEclipse/.factorypath
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<factorypath>
<factorypathentry kind="PLUGIN" id="org.eclipse.jst.ws.annotations.core" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/HelloWorldEclipse/compile-libs/androidannotations-3.3.1.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/HelloWorldEclipse/libs/androidannotations-api-3.3.1.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/HelloWorldEclipse/compile-libs/androidannotations-3.3.2.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/HelloWorldEclipse/libs/androidannotations-api-3.3.2.jar" enabled="true" runInBatchMode="false"/>
</factorypath>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions examples/RoboGuiceExample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
}
dependencies {
// replace with the current version of the Android plugin
classpath 'com.android.tools.build:gradle:1.2.2'
classpath 'com.android.tools.build:gradle:1.2.3'
// the latest version of the android-apt plugin
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}
Expand All @@ -16,8 +16,8 @@ repositories {
}

apply plugin: 'com.android.application'
apply plugin: 'android-apt'
def AAVersion = '4.0-SNAPSHOT' // change this to your desired version, for example the latest stable: 3.3.1
apply plugin: 'com.neenbedankt.android-apt'
def AAVersion = '4.0-SNAPSHOT' // change this to your desired version, for example the latest stable: 3.3.2

dependencies {
apt "org.androidannotations:androidannotations:$AAVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip
6 changes: 3 additions & 3 deletions examples/gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
}
dependencies {
// replace with the current version of the Android plugin
classpath 'com.android.tools.build:gradle:1.2.2'
classpath 'com.android.tools.build:gradle:1.2.3'
// the latest version of the android-apt plugin
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}
Expand All @@ -16,8 +16,8 @@ repositories {
}

apply plugin: 'com.android.application'
apply plugin: 'android-apt'
def AAVersion = '4.0-SNAPSHOT' // change this to your desired version, for example the latest stable: 3.3.1
apply plugin: 'com.neenbedankt.android-apt'
def AAVersion = '4.0-SNAPSHOT' // change this to your desired version, for example the latest stable: 3.3.2

dependencies {
apt "org.androidannotations:androidannotations:$AAVersion"
Expand Down
2 changes: 1 addition & 1 deletion examples/gradle/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip
5 changes: 3 additions & 2 deletions examples/maveneclipse/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<android.version>4.1.1.4</android.version>
<android.platform>16</android.platform>
<androidannotations.version>3.3.1</androidannotations.version>
<androidannotations.version>3.3.2</androidannotations.version>
<java.version>1.6</java.version>
</properties>

Expand Down Expand Up @@ -51,12 +51,13 @@
<plugin>
<groupId>com.simpligility.maven.plugins</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>4.2.0</version>
<version>4.3.0</version>
<configuration>
<sdk>
<platform>${android.platform}</platform>
</sdk>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
<disableConflictingDependenciesWarning>true</disableConflictingDependenciesWarning>
</configuration>
<extensions>true</extensions>
</plugin>
Expand Down

0 comments on commit e228289

Please sign in to comment.