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
import android.util.Log | |
import androidx.test.platform.app.InstrumentationRegistry | |
import java.io.BufferedReader | |
import java.io.IOException | |
import java.io.InputStreamReader | |
object ResourcesHelper { | |
fun loadFileAsString(path: String): String? { | |
var bufferedReader: BufferedReader? = null | |
try { |
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
import android.content.Context | |
import com.apptualizer.fakeapi.helper.ResourcesHelper | |
import com.apptualizer.fakeapi.helper.ResponseHelper | |
import okhttp3.* | |
import java.io.IOException | |
class FakeInterceptor @JvmOverloads constructor(val context: Context) : Interceptor { | |
@Throws(IOException::class) | |
override fun intercept(chain: Interceptor.Chain): Response { |
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
@Provides | |
@Singleton | |
internal fun provideOkhttpClient( | |
cache: Cache, | |
networkMonitor:NetworkMonitor, | |
@ApplicationContext context: Context, | |
eventBus: RxEventBus, | |
deviceType: CurrentDeviceType): OkHttpClient { | |
val client = OkHttpClient.Builder() | |
.cache(cache) |
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
import okhttp3.Request | |
import okio.Buffer | |
object ResponseManager { | |
var next_match = true | |
var errorCode = 200 | |
private fun bodyToString(request: Request): String { |
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
# bash script to generate release not based on commit message | |
# commit message include the trello task id prefix as 'trello:<id>' | |
=$(git log --pretty="format: %s" master..HEAD | sed -e 's/$/|/'| tr -d '\n') | |
``` | |
The complete **release_notes_generator.sh** as below | |
```bash | |
#! /bin/bash |
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
#expose env variables to other steps | |
envman add --key version_code --value "${BITRISE_BUILD_NUMBER}" | |
envman add --key fabric_api_token --value "${FABRIC_API_TOKEN}" | |
envman add --key fabric_build_secret --value "${FABRIC_BUILD_SECRET}" | |
envman add --key change_log --value "$RELEASE_NOTE" |
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
sudo gem install badge |
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
#copy android licenses | |
mkdir -p "$ANDROID_HOME/licenses" | |
rsync -avhP ./android-licenses/ "$ANDROID_HOME/licenses/" |
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
#!/usr/bin/env bash | |
#copy android licences | |
mkdir -p "$ANDROID_HOME/licenses" | |
rsync -avhP ./android-licenses/ "$ANDROID_HOME/licenses/" | |
#expose env variables to other steps | |
envman add --key version_code --value "${BITRISE_BUILD_NUMBER}" | |
envman add --key fabric_api_token --value "${FABRIC_API_TOKEN}" | |
envman add --key fabric_build_secret --value "${FABRIC_BUILD_SECRET}" |
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
Fatal Exception: java.lang.IllegalStateException: View size is too small after padding | |
at maps.ce.i.b(Unknown Source) | |
at maps.dg.a.a(Unknown Source) | |
at maps.dg.a.a(Unknown Source) | |
at maps.ei.bl$4.a(Unknown Source) | |
at maps.dg.a.a(Unknown Source) | |
at maps.ei.bu.a(Unknown Source) | |
at com.google.android.gms.maps.internal.e$a.onTransact(:com.google.android.gms.alldynamite:83) | |
at android.os.Binder.transact(Binder.java:361) | |
at com.google.android.gms.maps.internal.IGoogleMapDelegate$zza$zza.moveCamera(Unknown Source) |
NewerOlder