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
| name: Deploy to Firebase | |
| on: | |
| push: | |
| branches: | |
| - development | |
| - master | |
| pull_request: | |
| branches: |
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.res.Resources; | |
| import android.graphics.Bitmap; | |
| import android.graphics.NinePatch; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.NinePatchDrawable; | |
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; | |
| /** |
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
| { | |
| "item": [ | |
| { | |
| "name": "Create", | |
| "request": { | |
| "url": { | |
| "raw": "{{base}}/user/reports/funnel-report-schedule/create?workspace_id=1&name=genel&period=1&property_id=261656317", | |
| "query": [ | |
| { | |
| "key": "workspace_id", |
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
| private fun checkNotificationPermission(): Boolean { | |
| val permissions = arrayOf( | |
| Manifest.permission.POST_NOTIFICATIONS, | |
| Manifest.permission.ACCESS_COARSE_LOCATION | |
| ) | |
| val isAllPermissionsGranted = permissions.all { | |
| this.checkSelfPermission(it) == PackageManager.PERMISSION_GRANTED | |
| } |
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
| <script language="JavaScript"> | |
| var now = new Date(); var yr = now.getYear(); var mName = now.getMonth() + 1; var dName = now.getDay()+2; | |
| var dayNr = (((now.getDate())<10) ? "" : "")+ (now.getDate()+1); | |
| if ( yr > 99 ) | |
| { | |
| yr_str =" "; | |
| if ( yr < 2000 ) yr += 1900; | |
| } |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <item | |
| android:gravity="center"> | |
| <shape android:shape="rectangle"> | |
| <size android:height="1dp" /> | |
| <solid android:color="@android:color/black" /> | |
| </shape> | |
| </item> |
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
| private const val STORE_NAME = "data_store_pref" | |
| private const val DARK_THEME = "is_dark_theme" | |
| class DataStorePrefManager constructor(private val context: Context) { | |
| companion object { | |
| private val Context.dataStore by preferencesDataStore(STORE_NAME) | |
| private val NIGHT_MODE_KEY = booleanPreferencesKey(DARK_THEME) | |
| } |
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
| class Repository @Inject constructor(private val source: GetPostSource) { | |
| suspend fun postRequest(paramsmap: HashMap<String, Any>) { | |
| when (val result = source.executePostService(paramsmap)) { | |
| is Resource.Success -> { | |
| val resBody = gson.toJson(result.data.result) | |
| val res = gson.fromJson(resBody, entity::class.java) // you entity class | |
| //..... | |
| } | |
| is Resource.Error -> errorMessage.postValue(result.message) |
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
| class MyBillingImpl(private val activity: Activity) : | |
| PurchasesUpdatedListener, ConsumeResponseListener, BillingProcessor.IBillingHandler { | |
| var billingClient: BillingClient = BillingClient.newBuilder(activity) | |
| .enablePendingPurchases() | |
| .setListener(this) | |
| .build() | |
| private var list: MutableList<SkuDetails>? = null | |
| init { |
NewerOlder