Skip to content

Commit

Permalink
Fixing jitpack build
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-itskovich committed Aug 15, 2018
1 parent a1afb19 commit 31c31d2
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 44 deletions.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions .idea/modules/rxrpc-apt-java.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions .idea/modules/sample/sample.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion rxrpc-apt-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ dependencies {
testImplementation project(path: ':rxrpc-apt', configuration: 'testOutput')
implementation "com.google.auto.service:auto-service:$autoServiceVer"
annotationProcessor "com.google.auto.service:auto-service:$autoServiceVer"
implementation "com.google.googlejavaformat:google-java-format:$javaFormatVer"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
*/
package com.slimgears.rxrpc.apt.java;

import com.google.googlejavaformat.java.Formatter;
import com.google.googlejavaformat.java.FormatterException;
import com.google.googlejavaformat.java.JavaFormatterOptions;
import com.slimgears.rxrpc.apt.data.TypeInfo;
import com.slimgears.rxrpc.apt.util.ImportTracker;
import com.slimgears.rxrpc.apt.util.LogUtils;
Expand Down Expand Up @@ -36,20 +33,6 @@ public static Consumer<String> fileWriter(ProcessingEnvironment environment, Typ
return code -> writeJavaFile(environment, targetClass, code);
}

public static Function<String, String> formatter() {
return code -> {
try {
return new Formatter(JavaFormatterOptions
.builder()
.style(JavaFormatterOptions.Style.AOSP)
.build())
.formatSource(code);
} catch (FormatterException e) {
throw new RuntimeException(e);
}
};
}

private static String addImports(ImportTracker importTracker, String code, Function<String, String> importSubstitutor) {
String importsStr = Stream.of(importTracker.imports())
.map(importSubstitutor)
Expand Down

0 comments on commit 31c31d2

Please sign in to comment.