Provided are diaminopyrimidine compounds as shown in formula (I), and a pharmaceutical composition comprising the compounds or a crystal form, a pharmaceutically acceptable salt, a hydrate or solvate, a stereoisomer, a prodrug or an isotopic variant thereof. The diaminopyrimidine compounds and the composition comprising the compounds exhibit an excellent inhibitory effect against protein kinases. They also have better pharmacokinetic parameter characteristics, which allows increasing drug concentration of the compounds in an animal body and enhances drug efficacy and safety.La présente invention concerne des composés diaminopyrimidine tels que présentés dans la formule (I), et une composition pharmaceutique comprenant lesdits composés ou une forme cristalline, un sel pharmaceutiquement acceptable, un hydrate ou un solvate, un stéréo-isomère, un promédicament ou une variante isotopique de ceux-ci. Les composés diaminopyrimidine et la composition comprenant lesdits composés présentent un excellent effet inhibiteur contre les protéines kinases. Ils présentent également de meilleures caractéristiques de paramètres pharmacocinétiques, ce qui permet daugmenter la concentration en médicament des composés dans le corps dun animal et daméliorer lefficacité et la sécurité des médicaments.