This file contains hidden or 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
fun Date.toCalendar(): Calendar = Calendar.getInstance().apply { this.time = this@toCalendar } | |
fun Calendar.addDayOfMonth(amount: Int): Calendar { | |
this.add(Calendar.DAY_OF_MONTH, amount) | |
return this | |
} | |
fun Calendar.formatTo(formatter: SimpleDateFormat): String { | |
return formatter.format(this.timeInMillis) | |
} |
This file contains hidden or 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
task javadoc(type: Javadoc, dependsOn: 'assembleRelease') { | |
source = android.sourceSets.main.java.srcDirs | |
classpath += configurations.compile | |
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | |
android.libraryVariants.all { variant -> | |
if (variant.name == 'release') { | |
owner.classpath += variant.javaCompile.classpath | |
} | |
} | |
} |
This file contains hidden or 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
/* | |
* Copyright (c) 2018. Xi'an iRain IOT Technology service CO., Ltd (ShenZhen). All Rights Reserved. | |
*/ | |
package com.parkingwang.iop.api.json | |
import com.google.gson.Gson | |
import com.google.gson.GsonBuilder | |
import com.google.gson.reflect.TypeToken | |
import com.parkingwang.iop.api.services.park.objects.Version |
This file contains hidden or 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
#!/bin/bash | |
cd `dirname $0`/../ | |
projectDir=`pwd` | |
buildDir="$projectDir/build" | |
# release Official apk | |
cd $buildDir | |
touch timestampFile | |
echo "Build release official apk" |
OlderNewer