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
# -*- coding: utf-8 -*- | |
# python | |
# script for multiple find/replace old android package with the ones of AndroidX new packaging. | |
import os,sys | |
from os import walk | |
inputDir = "../app/src/" | |
fileExtension = [".xml",".java",".kt"] |
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
global SPLIT_CHARACTER | |
if platform.system() == "Windows": | |
SPLIT_CHARACTER = '\\' | |
else: | |
SPLIT_CHARACTER = '/' | |
#Detect if your project is in an Eclipse structure | |
def isEclipseLegacy(directory): | |
hasRes=path.isdir(directory+SPLIT_CHARACTER+'res') | |
hasSrc=path.isdir(directory+SPLIT_CHARACTER+'src') |
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
implementation fileTree(include: ['*.jar'], dir: 'libs') | |
implementation "androidx.appcompat:appcompat:${androidxAppcompat_appcompat_Version}" | |
implementation "androidx.recyclerview:recyclerview:${androidxRecyclerview_recyclerview_Version}" | |
implementation "androidx.cardview:cardview:${androidxCardview_cardview_Version}" | |
implementation "com.google.android.material:material:${comGoogleAndroidMaterial_material_Version}" | |
implementation "androidx.room:room-runtime:${androidxRoom_roomRuntime_Version}" | |
implementation "androidx.constraintlayout:constraintlayout:${androidxConstraintlayout_constraintlayout_Version}" | |
annotationProcessor "androidx.room:room-compiler:${androidxRoom_roomCompiler_Version}" | |
kapt "androidx.room:room-compiler:${androidxRoom_roomCompiler_Version}" | |
implementation "androidx.lifecycle:lifecycle-extensions:${androidxLifecycle_lifecycleExtensions_Version}" |
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
//This is the list of the version of library you use | |
project.ext { | |
orgJetbrainsKotlinx_kotlinxCoroutinesCore_Version='1.3.0-M2' | |
orgJetbrainsKotlinx_kotlinxCoroutinesAndroid_Version='1.3.0-M2' | |
netDanlew_androidJoda_Version= '2.9.2' | |
orgMockito_mockitoAndroid_Version= '2.12.0'//1.10.19 | |
} |
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
project.ext{ | |
compileSdk = 28 | |
// min SDK is set to 18 | |
minSdk = 18 | |
targetSdk = 28 | |
//You have the definiton | |
//Please use the support library and use | |
useSupportLibVectorDrawable = true | |
//build var |
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
//Last version of Google Lib are listed below, to update run from_maven_to_version_uptodate.py and then your migration script | |
project.ext{ | |
comAndroidSupportConstraint_constraintLayoutSolver_Version = "1.1.3" | |
comAndroidSupportConstraint_constraintLayout_Version = "1.1.3" | |
comAndroidDatabinding_library_Version = "3.5.0-rc01" | |
comAndroidDatabinding_adapters_Version = "3.5.0-rc01" | |
comAndroidDatabinding_compiler_Version = "3.1.4" | |
comAndroidDatabinding_compilerCommon_Version = "3.1.4" | |
comAndroidDatabinding_baseLibrary_Version = "3.5.0-rc01" | |
comAndroidDatabinding_viewbindingSupport_Version = "3.6.0-alpha02" |
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
apply from: 'gradle/var_definition.gradle' | |
apply from: 'gradle/var_def_lib.gradle' | |
dependencies { | |
implementation fileTree(include: ['*.jar'], dir: 'libs') | |
implementation "androidx.appcompat:appcompat:${androidxAppcompat_appcompat_Version}" | |
implementation "androidx.recyclerview:recyclerview:${androidxRecyclerview_recyclerview_Version}" | |
implementation "androidx.cardview:cardview:${androidxCardview_cardview_Version}" | |
implementation "com.google.android.material:material:${comGoogleAndroidMaterial_material_Version}" | |
implementation "androidx.room:room-runtime:${androidxRoom_roomRuntime_Version}" | |
implementation "androidx.constraintlayout:constraintlayout:${androidxConstraintlayout_constraintlayout_Version}" |
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
# First create a Github instance: | |
g = Github(githubAccessToken) | |
actor = Actor(githubActorName, githubActorEMail) |
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
def isGitHubRepoExisting(name): | |
# Then play with your Github objects: | |
for repo in g.get_user().get_repos(): | |
if(repo.name in REPO_NAME): | |
return True | |
return False |
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 dependencies | |
from subprocess import call | |
from os import path | |
from ownStyle import GREEN,BLUE,BOLD,GREEN,RED,RESET,CYAN | |
#Push the new or update files | |
# call('git push origin master', shell = True) | |
#The command line will prompt you | |
def runGitPushInCommandLine(repository): | |
# print(repository) | |
absRepo=path.abspath(repository) |
OlderNewer