This file contains 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
targetedShareIntent.setType("application/twitter"); | |
//I tried this too, targetedShareIntent.setType("image/*"); | |
targetedShareIntent.putExtra(Intent.EXTRA_SUBJECT, getResources().getString(R.string.app_name)); | |
targetedShareIntent.putExtra(Intent.EXTRA_STREAM, dataUri); | |
targetedShareIntent.putExtra(Intent.EXTRA_TEXT, shareTwitter); |
This file contains 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
TextView tvd = new TextView(this); | |
tvd.setBackgroundResource(R.drawable.annotation_discover); | |
tvd.setText(getString(R.string.ANNOTATION_DISCOVER_MESSAGE)); | |
tvd.setGravity(Gravity.CENTER_VERTICAL); | |
tvd.setTextColor(Color.WHITE); |
This file contains 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) |
This file contains 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 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 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 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 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 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 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) |
OlderNewer