Skip to content

Commit a5919ea

Browse files
committed
Convert to kotlin
1 parent 624dcfe commit a5919ea

File tree

4 files changed

+325
-307
lines changed

4 files changed

+325
-307
lines changed

plugins/src/main/java/com/google/firebase/gradle/plugins/report/ReportCommit.java renamed to plugins/src/main/java/com/google/firebase/gradle/plugins/report/ReportCommit.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
package com.google.firebase.gradle.plugins.report
1415

15-
package com.google.firebase.gradle.plugins.report;
16-
17-
public record ReportCommit(String sha, int pr) {}
16+
@JvmRecord data class ReportCommit(val sha: String, val pr: Int)

plugins/src/main/java/com/google/firebase/gradle/plugins/report/TestReport.java renamed to plugins/src/main/java/com/google/firebase/gradle/plugins/report/TestReport.kt

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,24 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
package com.google.firebase.gradle.plugins.report
1415

15-
package com.google.firebase.gradle.plugins.report;
16-
17-
public record TestReport(String name, Type type, Status status, String commit, String url) {
18-
19-
public enum Type {
16+
@JvmRecord
17+
data class TestReport(
18+
val name: String,
19+
val type: Type,
20+
val status: Status,
21+
val commit: String,
22+
val url: String,
23+
) {
24+
enum class Type {
2025
UNIT_TEST,
21-
INSTRUMENTATION_TEST
26+
INSTRUMENTATION_TEST,
2227
}
2328

24-
public enum Status {
29+
enum class Status {
2530
SUCCESS,
2631
FAILURE,
27-
OTHER
32+
OTHER,
2833
}
2934
}

plugins/src/main/java/com/google/firebase/gradle/plugins/report/UnitTestReport.java

Lines changed: 0 additions & 296 deletions
This file was deleted.

0 commit comments

Comments
 (0)