Skip to content

Instantly share code, notes, and snippets.

View TarekBenDriss's full-sized avatar
🏠
Working from home

Tarek Ben Driss TarekBenDriss

🏠
Working from home
View GitHub Profile
@TarekBenDriss
TarekBenDriss / Android.yml
Last active December 29, 2019 18:10
Android's CI/CD file
name: Android Pull Request & Master CI
on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'
@TarekBenDriss
TarekBenDriss / android.yml
Created December 19, 2019 15:42
Default android.yml GitHub Actions file
name: Android CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:shortcutId="call"
android:enabled="true"
android:icon="@drawable/ic_phone"
android:shortcutShortLabel="@string/call_shortcut_short_label"
android:shortcutLongLabel="@string/call_shortcut_long_label"
android:shortcutDisabledMessage="@string/call_disabled_label">
<intent
android:action="android.intent.action.VIEW"
@TarekBenDriss
TarekBenDriss / AndroidManifest.xml
Last active December 8, 2019 21:53
AndroidManifest - Shortcuts app
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:dist="http://schemas.android.com/apk/distribution"
package="com.bendriss.shortcutsapp">
<uses-permission android:name="android.permission.CALL_PHONE" />
<dist:module dist:instant="true" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
package com.bendriss.mybeautifulcalendar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.bendriss.customcalendar.CustomCalendar;
import com.bendriss.customcalendar.DoubleCustomCalendar;
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".CustomCalendarActivity">
<com.bendriss.customcalendar.CustomCalendar