Skip to content

Commit

Permalink
Downgrade kotlinpoet
Browse files Browse the repository at this point in the history
  • Loading branch information
winfoozmnayef committed Nov 25, 2018
1 parent 1791fbc commit 8d8bd4a
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void onCreate() {
super.onCreate();

WinConfiguration configuration = WinConfiguration.builder()
.registerAdapter(new JavaMixpanelAdapter(this, "6ce26d515c8a1b3756be42feaeda4cb3"))
.registerAdapter(new JavaMixpanelAdapter(this, "token"))
.indexingClass(MyAnalyticsIndex.class)
.build();
WinAnalytics.init(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class KotlinMyApplication : Application() {

val configuration = WinConfiguration.builder()
.registerAdapter(
KotlinMixpanelAdapter(this, "6ce26d515c8a1b3756be42feaeda4cb3"))
KotlinMixpanelAdapter(this, "token"))
.build()
WinAnalytics.init(configuration)
}
Expand Down
2 changes: 1 addition & 1 deletion winanalytics-annotations/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POM_DESCRIPTION=Annotations for use in your project
POM_BINTRAY_NAME=com.winfooz:annotations
POM_ARTIFACT_ID=winanalytics-annotations
POM_PACKAGING=jar
POM_VERSION=1.0.0-RC
POM_VERSION=1.0.1-RC
4 changes: 2 additions & 2 deletions winanalytics-compiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ dependencies {
implementation project(':winanalytics-annotations')

// Code generation library for kotlin.
implementation 'com.squareup:kotlinpoet:1.0.0-RC2'
implementation 'com.squareup:kotlinpoet:0.6.0'

// Code generation library for java.
implementation 'com.squareup:javapoet:1.11.1'
implementation 'com.squareup:javapoet:1.9.0'

// AutoService library for auto generate javax.annotation.processing.Processor file
compileOnly 'com.google.auto.service:auto-service:1.0-rc4'
Expand Down
2 changes: 1 addition & 1 deletion winanalytics-compiler/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POM_DESCRIPTION=For process annotations and generate code
POM_BINTRAY_NAME=com.winfooz:compiler
POM_ARTIFACT_ID=winanalytics-compiler
POM_PACKAGING=jar
POM_VERSION=1.0.0-RC
POM_VERSION=1.0.1-RC
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class KotlinProcessor(
.addParameter(ParameterSpec.builder("target", ClassName(pkgName, className).asNullable()).build())
.addStatement("this.target = target")
.addModifiers(KModifier.PUBLIC)
implClass?.addProperty(PropertySpec.builder("target", ClassName(pkgName, className).asNullable(), KModifier.PRIVATE).mutable().build())
implClass?.addProperty(PropertySpec.builder("target", ClassName(pkgName, className).asNullable(), KModifier.PRIVATE).mutable(true).build())
fields?.forEach { it ->
it.analyticsElement?.pkgName?.let { pkgName ->
if (implClass?.build()?.propertySpecs?.map { it.name }?.contains(it.analyticsElement?.className?.toCamelCase()) != true) {
Expand All @@ -219,7 +219,7 @@ class KotlinProcessor(

private fun addClassMembers(implClass: TypeSpec.Builder?, fields: MutableList<EventWithClickElement>?) {
fields?.forEach {
implClass?.addProperty(PropertySpec.builder(it.methodName, VIEW_KOTLIN_CLASS_NAME.asNullable(), KModifier.PRIVATE).mutable().build())
implClass?.addProperty(PropertySpec.builder(it.methodName, VIEW_KOTLIN_CLASS_NAME.asNullable(), KModifier.PRIVATE).mutable(true).build())
}
}

Expand Down
2 changes: 1 addition & 1 deletion winanalytics-okhttp/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POM_DESCRIPTION=For support auto events when http request failed or success
POM_BINTRAY_NAME=com.winfooz:okhttp
POM_ARTIFACT_ID=winanalytics-okhttp
POM_PACKAGING=jar
POM_VERSION=1.0.0-RC
POM_VERSION=1.0.1-RC
2 changes: 1 addition & 1 deletion winanalytics/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POM_DESCRIPTION=For log analytics to firebase,fabric,mixpanel etc...
POM_BINTRAY_NAME=com.winfooz:winanalytics
POM_ARTIFACT_ID=winanalytics
POM_PACKAGING=jar
POM_VERSION=1.0.0-RC
POM_VERSION=1.0.1-RC

0 comments on commit 8d8bd4a

Please sign in to comment.